diff --git a/haxe/ui/backend/ComponentBase.hx b/haxe/ui/backend/ComponentBase.hx index e9d86d37e..74c8d97fc 100644 --- a/haxe/ui/backend/ComponentBase.hx +++ b/haxe/ui/backend/ComponentBase.hx @@ -49,10 +49,8 @@ class ComponentBase extends ComponentSurface implements IClonable @:clonable @:behaviour(ComponentTextBehaviour) public var text:String; /** - * The text displayed inside the label. - * * `value` is used as a universal way to access the "core" value a component is based on. - * in this case, its the component's text. + * For example, in a label component, it will be the text. */ @:clonable @:behaviour(ComponentValueBehaviour) public var value:Dynamic; diff --git a/haxe/ui/core/Component.hx b/haxe/ui/core/Component.hx index c191d9d69..0abe0c6c6 100644 --- a/haxe/ui/core/Component.hx +++ b/haxe/ui/core/Component.hx @@ -1667,7 +1667,7 @@ class Component extends ComponentImpl implements IValidating { // Styles //*********************************************************************************************************** #if !(haxeui_flixel || haxeui_heaps) - /** A color to tint the object with **/ @:style public var color:Null; + /** The color of the text **/ @:style public var color:Null; #end @:style public var backgroundColor:Null; @:style public var backgroundColorEnd:Null; @@ -1676,22 +1676,22 @@ class Component extends ComponentImpl implements IValidating { /** The size of the border, in pixels **/ @:style public var borderSize:Null; /** The amount of rounding to apply to the border **/ @:style public var borderRadius:Null; - /** The gap between the container's children, on all sides **/ @:style(layout) public var padding:Null; - /** The gap between the container's children, on their top **/ @:style(layout) public var paddingLeft:Null; - /** The gap between the container's children, on their left side **/ @:style(layout) public var paddingRight:Null; - /** The gap between the container's children, on their right side **/ @:style(layout) public var paddingTop:Null; - /** The gap between the container's children, on their bottom **/ @:style(layout) public var paddingBottom:Null; + /** The gap between the component and its children, on all sides **/ @:style(layout) public var padding:Null; + /** The gap between the component and its children, on the top **/ @:style(layout) public var paddingLeft:Null; + /** The gap between the component and its children, on the left side **/ @:style(layout) public var paddingRight:Null; + /** The gap between the component and its children, on the right side **/ @:style(layout) public var paddingTop:Null; + /** The gap between the component and its children, on the bottom **/ @:style(layout) public var paddingBottom:Null; - /** The amount of offseting to apply for text from the top in pixels **/ @:style public var marginLeft:Null; - /** The amount of offseting to apply for text from the left in pixels **/ @:style public var marginRight:Null; - /** The amount of offseting to apply for text from the right in pixels **/ @:style public var marginTop:Null; - /** The amount of offseting to apply for text from the bottom in pixels **/ @:style public var marginBottom:Null; - @:style public var clip:Null; + /** The amount of left offsetting to apply to the calculated position **/ @:style public var marginLeft:Null; + /** The amount of right offsetting to apply to the calculated position**/ @:style public var marginRight:Null; + /** The amount of top offsetting to apply to the calculated position **/ @:style public var marginTop:Null; + /** The amount of bottom offsetting to apply to the calculated position **/ @:style public var marginBottom:Null; + /** Whether the children are clipped (cut) to the the component boundings **/ @:style public var clip:Null; /** A value between 0 and 1, deciding the transparency of this object **/ @:style public var opacity:Null; - /** The anount of spacing between children horizontally, in pixels **/ @:style(layoutparent) public var horizontalAlign:String; - /** The anount of spacing between children vertically, in pixels **/ @:style(layoutparent) public var verticalAlign:String; + /** How the component is aligned to the parent: center, left, right **/ @:style(layoutparent) public var horizontalAlign:String; + /** How the component is aligned to the parent: center, top, bottom **/ @:style(layoutparent) public var verticalAlign:String; //*********************************************************************************************************** // Script related