#include <guiControl_ScriptBinding.h>
Inherits SimGroup.
Inherited by GuiButtonCtrl, GuiCanvas, GuiChainCtrl, GuiColorPickerCtrl, GuiColorPopupCtrl, GuiDragAndDropCtrl, GuiDropDownCtrl, GuiExpandCtrl, GuiFrameSetCtrl, GuiGridCtrl, GuiListBoxCtrl, GuiMenuBarCtrl, GuiPanelCtrl, GuiParticleGraphInspector, GuiProgressCtrl, GuiScrollCtrl, GuiTextEditCtrl, GuiWindowCtrl, and SceneWindow.
|
void | addGuiControl (int controlId) |
|
Integer | findHitControl (int x, int y) |
|
String | getCenter () |
|
String | getExtent (...) |
|
String | getGlobalCenter () |
|
String | getGlobalPosition () |
|
String | getMinExtent () |
|
Integer | getParent () |
|
String | getPosition () |
|
String | getText () |
|
Boolean | getTextExtend () |
|
Boolean | getTextWrap () |
|
String | getValue () |
|
Boolean | isActive () |
|
Boolean | isAwake () |
|
Boolean | isVisible () |
|
void | makeFirstResponder (isFirst) |
|
void | performClick () |
|
Boolean | pointInControl (int x, int y) |
|
void | reorderChild (child1, child2) |
|
void | resize (int x, int y, int w, int h) |
|
void | setActive (isActive) |
|
void | setCanSave (bool canSave) |
|
void | setCenter (int x, int y) |
|
void | setExtent (int width, int height) |
|
void | setFirstResponder () |
|
void | setPosition (int x, int y) |
|
void | setPositionGlobal (int x, int y) |
|
void | setProfile (GuiControlProfile p) |
|
void | setText (text) |
|
void | setTextExtend (setting) |
|
void | setTextID (id) |
|
void | setTextWrap (setting) |
|
void | setValue (value) |
|
void | setVisible (isVisible) |
|
◆ addGuiControl()
void addGuiControl |
( |
int |
controlId | ) |
|
Adds the gui control
- Parameters
-
controlId | integer ID of the control to add |
- Returns
- No Return value
◆ findHitControl()
Integer findHitControl |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
Searches for the control at the given point
- Returns
- Returns the Id of the control at the point
◆ getCenter()
- Returns
- Returns center of control, as space seperated ints
◆ getExtent()
Get the width and height of the control.
- Returns
- The height and width as a string with space-separated integers
◆ getGlobalCenter()
- Returns
- Returns center of control, as space seperated ints
◆ getGlobalPosition()
- Returns
- Returns the control's position converted to global coordinates (position as space-separted integers)
◆ getMinExtent()
Get the minimum allowed size of the control.
- Returns
- Returns the minimum extent as a string with space separated point values <width> <height>
◆ getParent()
- Returns
- Returns the Id of the parent control
◆ getPosition()
- Returns
- A string set up as <pos.x> <pos.y>\
◆ getText()
returns the text of the control.
◆ getTextExtend()
Returns if text extend is on.
- Returns
- Returns the state of text extend.
◆ getTextWrap()
Returns if text wrap is on.
- Returns
- Returns the state of text wrap.
◆ getValue()
Use the getValue method to get the control-specific 'value' for this control.
- Returns
- Returns a control-specific specific value. Varies by control
◆ isActive()
Use the isActive method to determine if this control is active. An inactive control may be visible, but will not accept inputs. It will also normally re-shade or re-skin itself to reflect its inactive state
- Returns
- Returns true if this control is active.
◆ isAwake()
Use the isAwake method to determine if this control is awake.
- Returns
- Returns true if this control is awake and ready to display
◆ isVisible()
Use the isVisible method to determine if this control is visible. This can return true, even if the entire control covered by another. This merely means that the control will render if not covered
- Returns
- Returns true if the control is visible.
◆ makeFirstResponder()
void makeFirstResponder |
( |
isFirst |
| ) |
|
Use the makeFirstResponder method to force this control to become the first responder.
- Parameters
-
isFirst | A boolean value. If true, then this control become first reponder and at captures inputs before all other controls, excluding dialogs above this control. |
- Returns
- No return value
◆ performClick()
Simulates a click on the control.
◆ pointInControl()
Boolean pointInControl |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
Check if point id in the control
- Parameters
-
x | Point x coordinate in parent coords |
y | Point y coordinate in parent coords |
- Returns
- Returns true if the point is in the control, false otherwise
◆ reorderChild()
void reorderChild |
( |
child1 |
, |
|
|
child2 |
|
|
) |
| |
uses simset reorder to push child 1 after child 2 - both must already be child controls of this control
◆ resize()
void resize |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
Resizes the control to the given dimensions
◆ setActive()
Use the setActive method to (de)activate this control. Once active, a control can accept inputs. Controls automatically re-shade/skin themselves to reflect their active/inactive state.
- Parameters
-
isActive | A boolean value. If isActive is true, this control is activated, else it is set to inactive. |
- Returns
- No return value
◆ setCanSave()
void setCanSave |
( |
bool |
canSave | ) |
|
Sets whether this control can serialize itself to the hard disk
- Parameters
-
- Returns
- No Return Value
◆ setCenter()
void setCenter |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
Sets control position, by center - coords are local not global
- Returns
- No Return value.
◆ setExtent()
void setExtent |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
Sets the width & height of the control.
- Returns
- No Return Value.
◆ setFirstResponder()
void setFirstResponder |
( |
| ) |
|
Sets this control as the first responder
◆ setPosition()
void setPosition |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
Sets the current control position in local space
- Returns
- No Return Value.
◆ setPositionGlobal()
void setPositionGlobal |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
Sets the control's position in global space
- Returns
- No return value
◆ setProfile()
void setProfile |
( |
GuiControlProfile |
p | ) |
|
Sets the currently used from for the GuiControl
- Parameters
-
p | The profile you wish to set the control to use |
- Returns
- No return value
◆ setText()
Sets the text of the control to the string.
◆ setTextExtend()
void setTextExtend |
( |
setting |
| ) |
|
Turns on or off text Extend.
- Parameters
-
setting | True turns on text extend. |
- Returns
- No return value
◆ setTextID()
Sets the text of the control to the localized string.
◆ setTextWrap()
void setTextWrap |
( |
setting |
| ) |
|
Turns on or off text wrap.
- Parameters
-
setting | True turns on text wrap. |
- Returns
- No return value
◆ setValue()
Use the setValue method to set the control specific value to value. Purpose and type varies by control type.
- Parameters
-
value | Some control specific value. |
- Returns
- No return value
◆ setVisible()
Use the setVisible method to (un)hide this control.
- Parameters
-
isVisible | A boolean value. If true, the control will be made visible, otherwise the control will be hidden. |
- Returns
- No return value