Widget_Text
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. |
Launch |
|
VOID |
Launch all systems required by the this and will call all children launch. |
Text Functions
Name |
Arguments |
Return |
Description |
AddLang |
THIS |
Assign a Lang class to this widgets to make the function SetText usable. |
|
SetText |
|
THIS |
Set the text of this widgets (will not work if no Lang is set). |
AddText |
|
THIS |
Add a text to the widget |
ClearText |
|
THIS |
Will clear the text. |
TextAlign |
|
THIS |
Change text alignment. Note: when used before launch the functionality might not work properly don't hesitate to relaunch the text. |
Replace |
|
THIS |
Replace a specified text in the widget. |
Font Functions
Name |
Arguments |
Return |
Description |
SetFontFamily |
|
THIS |
Change text font family. |
SetFontColor |
|
THIS |
Change the font color. |
SetBold |
|
THIS |
Add or remove the bold property of the text. |
SetItalic |
|
THIS |
Add or remove the italic property of the text. |
AddAnimatedGradient |
|
THIS |
This function will create, launch, and apply to the text a AnimatedGradient but inside the letters. |
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. |
SetBackgroundImage |
|
VOID |
Same as parent. |
SetBGImageRepeat |
|
This |
Same as parent. |
SetBGImageSizeAndPosition |
|
This |
Same as parent. |
SetOpacity |
|
None |
Same as parent. |
Contour:
Name |
Arguments |
Return |
Description |
SetBorder |
|
This |
Same as parent. |
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. |
||
divID |
String |
undefined |
Hold the text ("p") id. |
layout |
null |
Hold this widget layout (if created). |
Information
Name |
Type |
Default Value |
Description |
verticalAlign |
String |
"top" |
Hold the actual text align set for the vertical. |
horizontalAlign |
String |
"left" |
Hold the actual text align set for the horizontal. |
lang |
null |
Hold the Lang class used for the text. |
|
gradient |
null |
Hold the actual gradient animation if called. |
Overrides / Inherited functions:
Name |
Arguments |
Return |
Description |
Shift |
|
None |
Same as parent. |
Compatibility
LANGUAGE CLASS: Compatible.
Created with the Personal Edition of HelpNDoc: Easily create PDF Help documents