프로퍼티 | 타입 | 설명 | |
---|---|---|---|
bounds | |||
isEnabled | bool | ||
isMouseOver | bool | ||
parent | Consoles.ControlsConsole | ||
position | Point |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
AfterDeserialized | void |
메소드 | 설명 | |
---|---|---|
Compose ( ) : void |
Redraw the lastest appearance of the control. This method is implemented by each derived control. |
|
Compose ( bool force ) : void |
Redraw the latest appearance of the control if IsDirty is set to true.
|
|
ControlBase ( int width, int height ) : System.Runtime.Serialization |
Default constructor of the control.
|
|
DetermineAppearance ( ) : void |
Sets the appropriate theme for the control based on the current state of the control. Called by the control as the mouse state changes, like when the mouse is clicked on top of the control or leaves the area of the control. This method is implemented by each derived control. |
|
FocusLost ( ) : void |
Called when the control loses focus. Calls DetermineAppearance.
|
|
Focused ( ) : void |
Called when the control is focused. Calls DetermineAppearance.
|
|
ProcessKeyboard ( |
Called when the keyboard is used on this control.
|
|
ProcessMouse ( Input info ) : bool |
Checks if the mouse is the control and calls the appropriate mouse methods.
|
|
Update ( ) : void |
Update the control. Calls Compose() and then updates each cell effect if needed.
|
메소드 | 설명 | |
---|---|---|
OnLeftMouseClicked ( Input info ) : void |
Called when the left mouse button is clicked. Raises the MouseButtonClicked event and calls the DetermineAppearance method.
|
|
OnMouseEnter ( Input info ) : void |
Called when the mouse first enters the control. Raises the MouseEnter event and calls the DetermineAppearance method.
|
|
OnMouseExit ( Input info ) : void |
Called when the mouse exits the area of the control. Raises the MouseExit event and calls the DetermineAppearance method.
|
|
OnMouseIn ( Input info ) : void |
Called as the mouse moves around the control area. Raises the MouseMove event and calls the DetermineAppearance method.
|
|
OnParentChanged ( ) : void |
Called when the parent property is changed.
|
|
OnPositionChanged ( ) : void |
Called when the control changes position.
|
|
OnRightMouseClicked ( Input info ) : void |
Called when the right mouse button is clicked. Raises the MouseButtonClicked event and calls the DetermineAppearance method.
|
|
TransformConsolePositionByControlPosition ( Input info ) : Point |
Helper method that returns the mouse x,y position for the control.
|
메소드 | 설명 | |
---|---|---|
AfterDeserialized ( |
public Compose ( bool force ) : void | ||
force | bool | Force the draw to happen by setting IsDirty as true. |
리턴 | void |
public ControlBase ( int width, int height ) : System.Runtime.Serialization | ||
width | int | |
height | int | |
리턴 | System.Runtime.Serialization |
protected OnLeftMouseClicked ( Input info ) : void | ||
info | Input | The current mouse data |
리턴 | void |
protected OnMouseEnter ( Input info ) : void | ||
info | Input | The current mouse data |
리턴 | void |
protected OnMouseExit ( Input info ) : void | ||
info | Input | The current mouse data |
리턴 | void |
protected OnMouseIn ( Input info ) : void | ||
info | Input | The current mouse data |
리턴 | void |
protected OnRightMouseClicked ( Input info ) : void | ||
info | Input | The current mouse data |
리턴 | void |
public ProcessKeyboard ( |
||
info | The state of the keyboard. | |
리턴 | bool |
public ProcessMouse ( Input info ) : bool | ||
info | Input | Mouse information. |
리턴 | bool |
protected TransformConsolePositionByControlPosition ( Input info ) : Point | ||
info | Input | The mouse information as used by a mouse event. |
리턴 | Point |
protected Rectangle,Microsoft.Xna.Framework bounds | ||
리턴 |