Widget_Button
The widget_text is a special module use to show text dynamically.
How to Initialize any Widgets?
To add a widgets call AddWidget function from GUIs members that own this function.
Class Details
Main Functions
Initialization & Main Functions
Name |
Arguments |
Return |
Description |
Init |
|
VOID |
This function Initialized every part of the viewer : HMTL, CSS, Data, Events, etc... It will be generated in the defined ID and all HTML IDs used for this will start by the RegistryName defined in arguments. It will also call the parent Init() and finish by adding event with the function: InitEvents. |
InitEvents |
|
VOID |
Initialize all button events. |
.Launch |
|
VOID |
Launch all systems required by the this and will call all children launch. |
Button Functions
Name |
Arguments |
Return |
Description |
SetOnClicked |
|
THIS |
Setup the function called when the button is pressed. |
Overrides / Inherited Functions:
Setters Functions
Name |
Arguments |
Return |
Description |
AddLayout |
|
Same as parent. |
|
AddWidget |
|
Same as parent. |
|
Destroy |
|
None |
Same as parent. |
Clear |
|
None |
Same as parent. |
Design functions
Positions and general design:
Name |
Arguments |
Return |
Description |
Visible |
|
This |
Same as parent. |
SetSizePosition |
|
This |
Same as parent. |
GetPosition |
|
@CSS String |
Same as parent. |
GetSize |
|
Class:
|
Same as parent. |
SetPadding |
|
This |
Same as parent. |
SetMargin |
|
This |
Same as parent. |
AddVerticalOverflow |
|
This |
Same as parent. |
AddHorizontalOverflow |
|
This |
Same as parent. |
SetRotation |
|
This |
Same as parent. |
Style:
Name |
Arguments |
Return |
Description |
SetBackgroundColor |
|
This |
Same as parent but in 3 step to set all 3 button conditions |
SetBackgroundImage |
|
VOID |
Same as parent but in 3 step to set all 3 button conditions |
SetBGImageRepeat |
|
This |
Same as parent. |
SetBGImageSizeAndPosition |
|
This |
Same as parent. |
SetOpacity |
|
This |
Same as parent but in 3 step to set all 3 button conditions |
Contour:
Name |
Arguments |
Return |
Description |
SetBorder |
|
This |
Same as parent but you can choose the condition you apply to |
RemoveOutline |
|
This |
Same as parent. |
Font:
Name |
Arguments |
Return |
Description |
SetFontSize |
|
This |
Same as parent. |
Interaction:
Name |
Arguments |
Return |
Description |
ForceInteraction |
|
This |
Same as parent. |
AddHoveredEvent |
|
VOID |
Same as parent. |
AddPressedEvent |
|
VOID |
Same as parent. |
Movable |
|
VOID |
Same as parent. |
trigger |
|
VOID |
Same as parent. |
Private Details
All private details are usable but its recommended to not use any of those. It might modify the proper functioning of the class.
Variables (Members):
Main Members
Name |
Type |
Default Value |
Description |
parent |
undefined |
Parent class of this widget |
|
id |
String |
undefined |
Global HMTL Id of the viewer (# + name). |
registryName |
String |
undefined |
Name of this widget. |
basedId |
String |
undefined |
Where it is located is the existing DOM (its parent). |
widgetType |
Hold the type of this widget. |
||
layout |
null |
Hold this widget layout (if created). |
Information
Name |
Type |
Default Value |
Description |
statusCss |
Status[] |
Hold the condition Status for updating the CSS |
|
onClicked |
Function |
null |
Hold the on clicked function. |
onClickedArgs |
Lang |
null |
Hold the on clicked function arguments. |
functions:
Name |
Arguments |
Return |
Description |
ChangeCSS |
|
None |
This function is called by button events to update all the CSS. |
Overrides / Inherited functions:
Name |
Arguments |
Return |
Description |
Shift |
|
None |
Same as parent. |
Compatibility
LANGUAGE CLASS: Not compatible.
Created with the Personal Edition of HelpNDoc: Easily create iPhone documentation