vegUI version 2.1.1 Button |
vegui. button. class.jsSummary
VUI_BUTTONvegUI element type for VegUIButton VegUIButtonSummary
Hierachyextends VegUINode Inherits properties and functions from: VegUINode VegUINode The button widget disable_button
Similar to VegUINode::disable_node only that this method also prohibits the mouse cursor from changing to a pointer when hovering over the button element if the button is disabled Aliasdisable() Parameters
See also ExamplesmyButton.disable(true); // events will no longer be captured hevent_button
Similar to VegUINode::hevent_node only that this function also handles the focus status of the button, giving it active focus when it is clicked and taking the focus when the mouse button is released again private function Aliashevent() Parameters
See alsoset_button
sets the most common template properties for the button Aliasset() Parameters
See alsoExample
|
Constructor
function VegUIButton( refName, Parent, Manager )
Builds the button element
this.build = this.build_button = function( toNode )
Similar to VegUINode::disable_node only that this method also prohibits the mouse cursor from changing to a pointer when hovering over the button element if the button is disabled
this.disable = this.disable_button = function( b )
Toggles the VUI_DISABLED flag on this element
this.disable = this.disable_node = function( b )
Similar to VegUINode::hevent_node only that this function also handles the focus status of the button, giving it active focus when it is clicked and taking the focus when the mouse button is released again
this.hevent = this.hevent_button = function ( eventType, mEvent )
private function
this.hevent = this.hevent_node = function( eventType, mEvent )
sets the most common template properties for the button
this.set = this.set_button = function( x, y, w, h, cssNormal, cssMDown, c )
function VegUINode( refName, Parent, Manager )
build a HTML node from the template properties of this element.
this.build = this.build_node = function( toNode, takeNode )
Template Function
this.set = this.set_node = function( nodeType, w, h, x, y, pos, z )