Difference between revisions of "LGUI2:LS1:lgui2button"

From Lavish Software Wiki
Jump to: navigation, search
(Created page with "{{ObjectType-Vitals|lgui2button|LavishGUI 2|lgui2contentbase|lgui2button|none|no|void *}} A lgui2button object provides access to a LGUI2...")
 
 
(One intermediate revision by one user not shown)
Line 2: Line 2:
  
 
A lgui2button object provides access to a [[LGUI2:button|button]] element, and inherits from [[LGUI2:LS1:lgui2contentbase|lgui2contentbase]].  
 
A lgui2button object provides access to a [[LGUI2:button|button]] element, and inherits from [[LGUI2:LS1:lgui2contentbase|lgui2contentbase]].  
 
lgui2button provides no additional Members or Methods.
 
  
 
== 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 ==

Latest revision as of 13:46, 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.

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 - lgui2eventargs - lgui2eventhandler - lgui2elementtype - lgui2itemviewgeneratorargs - lgui2inputbinding - lgui2layer - lgui2skin
Enums
elgui2dpad - elgui2edge - elgui2fontflags - elgui2horizontalalignment - elgui2imageorientation - elgui2progresstext - elgui2scrollbar - elgui2verticalignment
Element Components
lgui2brush - lgui2fontstyle - lgui2margins - lgui2item
Element Base Types
lgui2element - lgui2bordered - lgui2contentbase - lgui2headeredcontentbase - lgui2itemlist
Elements