C# 클래스 CyrusBuilt.MonoPi.Components.Button.ButtonBase

Base class for button device abstraction components.
상속: ComponentBase, IButton
파일 보기 프로젝트 열기: cyrusbuilt/MonoPi

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
ButtonBase ( ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Button.ButtonBase class. This is the default constructor.

OnHold ( ButtonEventArgs e ) : void

Raises the ButtonBase.Hold event.

OnPressed ( ButtonEventArgs e ) : void

Raises the ButtonBase.Pressed event.

OnReleased ( ButtonEventArgs e ) : void

Raises the ButtonBase.Released event.

OnStateChanged ( ButtonEventArgs e ) : void

Raises the state changed event.

비공개 메소드들

메소드 설명
HoldTimer_Elapsed ( Object sender, System.Timers.ElapsedEventArgs e ) : void

Handles the button hold timer elapsed event.

메소드 상세

ButtonBase() 보호된 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Button.ButtonBase class. This is the default constructor.
protected ButtonBase ( ) : System
리턴 System

Dispose() 공개 메소드

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.
public Dispose ( ) : void
리턴 void

IsState() 공개 메소드

Determines whether this button's state is the specified state.
public IsState ( ButtonState state ) : System.Boolean
state ButtonState /// The state to check. ///
리턴 System.Boolean

OnHold() 보호된 메소드

Raises the ButtonBase.Hold event.
protected OnHold ( ButtonEventArgs e ) : void
e ButtonEventArgs /// The event arguments. ///
리턴 void

OnPressed() 보호된 메소드

Raises the ButtonBase.Pressed event.
protected OnPressed ( ButtonEventArgs e ) : void
e ButtonEventArgs /// The event arguments. ///
리턴 void

OnReleased() 보호된 메소드

Raises the ButtonBase.Released event.
protected OnReleased ( ButtonEventArgs e ) : void
e ButtonEventArgs /// The event arguments. ///
리턴 void

OnStateChanged() 보호된 메소드

Raises the state changed event.
protected OnStateChanged ( ButtonEventArgs e ) : void
e ButtonEventArgs /// The button event arguments. ///
리턴 void