C# 클래스 Nez.UI.Button

상속: Table, IInputListener, IGamepadFocusable
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
buttonBoundaryThreshold float
programmaticChangeEvents bool

보호된 프로퍼티들

프로퍼티 타입 설명
_isChecked bool
_isDisabled bool
_mouseOver bool

공개 메소드들

메소드 설명
Button ( ButtonStyle style ) : System
Button ( IDrawable up ) : System
Button ( IDrawable up, IDrawable down ) : System
Button ( IDrawable up, IDrawable down, IDrawable checked_ ) : System
Button ( Skin skin, string styleName = null ) : System
IGamepadFocusable ( ) : void
IGamepadFocusable ( Direction direction ) : void
IInputListener ( ) : void
IInputListener ( Vector2 mousePos ) : void
ToString ( ) : string
draw ( Graphics graphics, float parentAlpha ) : void
enableExplicitFocusableControl ( IGamepadFocusable upEle, IGamepadFocusable downEle, IGamepadFocusable leftEle, IGamepadFocusable rightEle ) : void
getButtonGroup ( ) : ButtonGroup

May be null

getDisabled ( ) : bool
getStyle ( ) : ButtonStyle

Returns the button's style. Modifying the returned style may not have an effect until {@link #setStyle(ButtonStyle)} is called.

setChecked ( bool isChecked, bool fireEvent ) : void
setDisabled ( bool disabled ) : void
setStyle ( ButtonStyle style ) : void
toggle ( ) : void

Toggles the checked state. This method changes the checked state, which fires a {@link onChangedEvent} (if programmatic change events are enabled), so can be used to simulate a button click.

보호된 메소드들

메소드 설명
onActionButtonPressed ( ) : void
onActionButtonReleased ( ) : void
onFocused ( ) : void
onUnfocused ( ) : void

비공개 메소드들

메소드 설명
IInputListener ( Vector2 mousePos ) : bool
IInputListener ( int mouseWheelDelta ) : bool

메소드 상세

Button() 공개 메소드

public Button ( ButtonStyle style ) : System
style ButtonStyle
리턴 System

Button() 공개 메소드

public Button ( IDrawable up ) : System
up IDrawable
리턴 System

Button() 공개 메소드

public Button ( IDrawable up, IDrawable down ) : System
up IDrawable
down IDrawable
리턴 System

Button() 공개 메소드

public Button ( IDrawable up, IDrawable down, IDrawable checked_ ) : System
up IDrawable
down IDrawable
checked_ IDrawable
리턴 System

Button() 공개 메소드

public Button ( Skin skin, string styleName = null ) : System
skin Skin
styleName string
리턴 System

IGamepadFocusable() 공개 메소드

public IGamepadFocusable ( ) : void
리턴 void

IGamepadFocusable() 공개 메소드

public IGamepadFocusable ( Direction direction ) : void
direction Direction
리턴 void

IInputListener() 공개 메소드

public IInputListener ( ) : void
리턴 void

IInputListener() 공개 메소드

public IInputListener ( Vector2 mousePos ) : void
mousePos Vector2
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

draw() 공개 메소드

public draw ( Graphics graphics, float parentAlpha ) : void
graphics Graphics
parentAlpha float
리턴 void

enableExplicitFocusableControl() 공개 메소드

public enableExplicitFocusableControl ( IGamepadFocusable upEle, IGamepadFocusable downEle, IGamepadFocusable leftEle, IGamepadFocusable rightEle ) : void
upEle IGamepadFocusable
downEle IGamepadFocusable
leftEle IGamepadFocusable
rightEle IGamepadFocusable
리턴 void

getButtonGroup() 공개 메소드

May be null
public getButtonGroup ( ) : ButtonGroup
리턴 ButtonGroup

getDisabled() 공개 메소드

public getDisabled ( ) : bool
리턴 bool

getStyle() 공개 메소드

Returns the button's style. Modifying the returned style may not have an effect until {@link #setStyle(ButtonStyle)} is called.
public getStyle ( ) : ButtonStyle
리턴 ButtonStyle

onActionButtonPressed() 보호된 메소드

protected onActionButtonPressed ( ) : void
리턴 void

onActionButtonReleased() 보호된 메소드

protected onActionButtonReleased ( ) : void
리턴 void

onFocused() 보호된 메소드

protected onFocused ( ) : void
리턴 void

onUnfocused() 보호된 메소드

protected onUnfocused ( ) : void
리턴 void

setChecked() 공개 메소드

public setChecked ( bool isChecked, bool fireEvent ) : void
isChecked bool
fireEvent bool
리턴 void

setDisabled() 공개 메소드

public setDisabled ( bool disabled ) : void
disabled bool
리턴 void

setStyle() 공개 메소드

public setStyle ( ButtonStyle style ) : void
style ButtonStyle
리턴 void

toggle() 공개 메소드

Toggles the checked state. This method changes the checked state, which fires a {@link onChangedEvent} (if programmatic change events are enabled), so can be used to simulate a button click.
public toggle ( ) : void
리턴 void

프로퍼티 상세

_isChecked 보호되어 있는 프로퍼티

protected bool _isChecked
리턴 bool

_isDisabled 보호되어 있는 프로퍼티

protected bool _isDisabled
리턴 bool

_mouseOver 보호되어 있는 프로퍼티

protected bool _mouseOver
리턴 bool

buttonBoundaryThreshold 공개적으로 프로퍼티

the maximum distance outside the button the mouse can move when pressing it to cause it to be unfocused
public float buttonBoundaryThreshold
리턴 float

programmaticChangeEvents 공개적으로 프로퍼티

public bool programmaticChangeEvents
리턴 bool