C# Class AntTweakBar.Button

An AntTweakBar button, which can be clicked.
Inheritance: Variable
显示文件 Open project: TomCrypto/AntTweakBar.NET Class Usage Examples

Public Methods

Method Description
Button ( Bar bar, EventHandler clicked = null, String def = null ) : System

Creates a new button in a given bar.

OnClicked ( EventArgs e ) : void

Raises the Clicked event.

ToString ( ) : String

Private Methods

Method Description
Callback ( IntPtr clientData ) : void

Called by AntTweakBar when the user clicks on the button.

InitButton ( Variable var, String id ) : void

Initialization delegate, which creates the button.

Method Details

Button() public method

Creates a new button in a given bar.
public Button ( Bar bar, EventHandler clicked = null, String def = null ) : System
bar Bar The bar to create the button in.
clicked EventHandler A handler to call when the button is clicked.
def String An optional definition string for the new button.
return System

OnClicked() public method

Raises the Clicked event.
public OnClicked ( EventArgs e ) : void
e System.EventArgs
return void

ToString() public method

public ToString ( ) : String
return String