Method | Description | |
---|---|---|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Call Dispose when you are finished using the CyrusBuilt.MonoPi.Components.Button.ButtonBase. The Dispose method leaves the CyrusBuilt.MonoPi.Components.Button.ButtonBase in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.Button.ButtonBase so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.Button.ButtonBase was occupying. |
|
IsState ( ButtonState state ) : System.Boolean |
Determines whether this button's state is the specified state.
|
Method | Description | |
---|---|---|
ButtonBase ( ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.Components.Button.ButtonBase class. This is the default constructor.
|
|
OnHold ( |
Raises the ButtonBase.Hold event.
|
|
OnPressed ( |
Raises the ButtonBase.Pressed event.
|
|
OnReleased ( |
Raises the ButtonBase.Released event.
|
|
OnStateChanged ( |
Raises the state changed event.
|
Method | Description | |
---|---|---|
HoldTimer_Elapsed ( Object sender, System.Timers.ElapsedEventArgs e ) : void |
Handles the button hold timer elapsed event.
|
public IsState ( ButtonState state ) : System.Boolean | ||
state | ButtonState | /// The state to check. /// |
return | System.Boolean |
protected OnHold ( |
||
e | /// The event arguments. /// | |
return | void |
protected OnPressed ( |
||
e | /// The event arguments. /// | |
return | void |
protected OnReleased ( |
||
e | /// The event arguments. /// | |
return | void |
protected OnStateChanged ( |
||
e | /// The button event arguments. /// | |
return | void |