Difference between revisions of "LGUI2:LS1:lgui2button"

From Lavish Software Wiki
Jump to navigation Jump to search
(Created page with "{{ObjectType-Vitals|lgui2button|LavishGUI 2|lgui2contentbase|lgui2button|none|no|void *}} A lgui2button object provides access to a LGUI2...")
 
Line 6: Line 6:
  
 
== Members ==
 
== Members ==
None
+
* [[ObjectType:bool|bool]] '''Pressed''': TRUE if the button is currently pressed
  
 
== Methods ==
 
== Methods ==
None
+
* '''SetPressed['''TRUE/FALSE''']''':  Sets a new pressed state
 +
* '''TogglePressed''': Toggles the pressed state
  
 
== Examples ==
 
== Examples ==

Revision as of 03:48, 11 July 2018

Object Type Vitals
lgui2button
Defined By LavishGUI 2
Inherits lgui2contentbase
Reduces To lgui2button
Variable Object Type none
Uses Sub-Types no
C/C++ Type void *

A lgui2button object provides access to a button element, and inherits from lgui2contentbase.

lgui2button provides no additional Members or Methods.

Members

  • bool Pressed: TRUE if the button is currently pressed

Methods

  • SetPressed[TRUE/FALSE]: Sets a new pressed state
  • TogglePressed: Toggles the pressed state

Examples

LavishGUI 2 Element Types

LavishGUI 2 LavishScript Object Types

Core API (see Using LavishGUI 2 from LavishScript)
lgui2 - lgui2animateargs - lgui2animationtype - lgui2elementref - lgui2eventargs - lgui2eventhandler - lgui2elementtype - lgui2itemviewgeneratorargs - lgui2inputbinding - lgui2layer - lgui2skin - lgui2trigger
Enums
elgui2animationframestate - elgui2dpad - elgui2edge - elgui2fontflags - elgui2horizontalalignment - elgui2imageorientation - elgui2progresstext - elgui2scrollbar - elgui2sizetocontent - elgui2verticalignment - elgui2visibility
Element Components
lgui2animation - lgui2brush - lgui2fontstyle - lgui2margins - lgui2item - lgui2property - lgui2radialitem - lgui2radialgaugeneedle
Element Base Types
lgui2element - lgui2bordered - lgui2contentbase - lgui2headeredcontentbase - lgui2itemlist
Elements