From c09b9c488fcc423d58ed26447b6e2614b106afdb Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Mon, 13 Jan 2020 23:08:42 +0100 Subject: Complete documentation of some more classes --- doc/classes/BaseButton.xml | 1 + doc/classes/CollisionObject2D.xml | 2 ++ doc/classes/ColorPickerButton.xml | 2 ++ doc/classes/MainLoop.xml | 1 + doc/classes/NinePatchRect.xml | 2 ++ doc/classes/PoolByteArray.xml | 5 +++++ doc/classes/ShaderMaterial.xml | 2 ++ doc/classes/SpriteFrames.xml | 1 + doc/classes/StyleBox.xml | 8 +++++++- doc/classes/Thread.xml | 3 +++ 10 files changed, 26 insertions(+), 1 deletion(-) (limited to 'doc/classes') diff --git a/doc/classes/BaseButton.xml b/doc/classes/BaseButton.xml index 21f46efe84..0128e7b220 100644 --- a/doc/classes/BaseButton.xml +++ b/doc/classes/BaseButton.xml @@ -112,6 +112,7 @@ The state of buttons are disabled. + The state of buttons are both hovered and pressed. Require just a press to consider the button clicked. diff --git a/doc/classes/CollisionObject2D.xml b/doc/classes/CollisionObject2D.xml index b9ec9480cf..bbc2e44dc0 100644 --- a/doc/classes/CollisionObject2D.xml +++ b/doc/classes/CollisionObject2D.xml @@ -44,6 +44,7 @@ + Returns the [code]one_way_collision_margin[/code] of the shape owner identified by given [code]owner_id[/code]. @@ -199,6 +200,7 @@ + Sets the [code]one_way_collision_margin[/code] of the shape owner identified by given [code]owner_id[/code] to [code]margin[/code] pixels. diff --git a/doc/classes/ColorPickerButton.xml b/doc/classes/ColorPickerButton.xml index e8c78fb6bf..37116b096a 100644 --- a/doc/classes/ColorPickerButton.xml +++ b/doc/classes/ColorPickerButton.xml @@ -43,10 +43,12 @@ + Emitted when the [ColorPicker] is created (the button is pressed for the first time). + Emitted when the [ColorPicker] is closed. diff --git a/doc/classes/MainLoop.xml b/doc/classes/MainLoop.xml index d5ca39e09a..606c898a35 100644 --- a/doc/classes/MainLoop.xml +++ b/doc/classes/MainLoop.xml @@ -69,6 +69,7 @@ + Called when the user performs an action in the system global menu (e.g. the Mac OS menu bar). diff --git a/doc/classes/NinePatchRect.xml b/doc/classes/NinePatchRect.xml index 8935ac9d94..7a7973684d 100644 --- a/doc/classes/NinePatchRect.xml +++ b/doc/classes/NinePatchRect.xml @@ -15,6 +15,7 @@ + Returns the size of the margin identified by the given [enum Margin] constant. @@ -25,6 +26,7 @@ + Sets the size of the margin identified by the given [enum Margin] constant to [code]value[/code] in pixels. diff --git a/doc/classes/PoolByteArray.xml b/doc/classes/PoolByteArray.xml index 867f042cd2..83c348f6be 100644 --- a/doc/classes/PoolByteArray.xml +++ b/doc/classes/PoolByteArray.xml @@ -78,6 +78,11 @@ + Returns a hexadecimal representation of this array as a [String]. + [codeblock] + var array = PoolByteArray([11, 46, 255]) + print(array.hex_encode()) # Prints: 0b2eff + [/codeblock] diff --git a/doc/classes/ShaderMaterial.xml b/doc/classes/ShaderMaterial.xml index ef355c4417..0f39b703ca 100644 --- a/doc/classes/ShaderMaterial.xml +++ b/doc/classes/ShaderMaterial.xml @@ -25,6 +25,7 @@ + Returns [code]true[/code] if the property identified by [code]name[/code] can be reverted to a default value. @@ -33,6 +34,7 @@ + Returns the default value of the material property with given [code]name[/code]. diff --git a/doc/classes/SpriteFrames.xml b/doc/classes/SpriteFrames.xml index f28192519e..2f2075074c 100644 --- a/doc/classes/SpriteFrames.xml +++ b/doc/classes/SpriteFrames.xml @@ -170,6 +170,7 @@ + Compatibility property, always equals to an empty array. diff --git a/doc/classes/StyleBox.xml b/doc/classes/StyleBox.xml index 1d873ef0b1..1a11904792 100644 --- a/doc/classes/StyleBox.xml +++ b/doc/classes/StyleBox.xml @@ -17,18 +17,22 @@ + Draws this stylebox using a [CanvasItem] with given [RID]. + You can get a [RID] value using [method Object.get_instance_id] on a [CanvasItem]-derived node. + Returns the size of this [StyleBox] without the margins. + Returns the [CanvasItem] that handles its [constant CanvasItem.NOTIFICATION_DRAW] or [method CanvasItem._draw] callback at this moment. @@ -37,6 +41,7 @@ + Returns the default value of the specified [enum Margin]. @@ -45,7 +50,7 @@ - Returns the content margin offset for the specified margin. + Returns the content margin offset for the specified [enum Margin]. Positive values reduce size inwards, unlike [Control]'s margin values. @@ -71,6 +76,7 @@ + Sets the default value of the specified [enum Margin] to given [code]offset[/code] in pixels. diff --git a/doc/classes/Thread.xml b/doc/classes/Thread.xml index 25e40d4c1f..e56ea2325e 100644 --- a/doc/classes/Thread.xml +++ b/doc/classes/Thread.xml @@ -50,10 +50,13 @@ + A thread running with lower priority than normally. + A thread with a standard priority. + A thread running with higher priority than normally. -- cgit v1.2.3