C# 클래스 Axiom.Samples.Widget

Abstract base class for all widgets.
파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
element Axiom.Overlays.OverlayElement
listener ISdkTrayListener
trayLoc TrayLocation

공개 메소드들

메소드 설명
Cleanup ( ) : void

CursorOffset ( OverlayElement element, Vector2 cursorPos ) : Vector2

Static utility method used to get the cursor's offset from the center

of an overlay element in pixels.

FitCaptionToArea ( String caption, TextArea area, Real maxWidth ) : void

Static utility method to cut off a string to fit in a text area.

GetCaptionWidth ( String caption, TextArea area ) : Real

Static utility method used to get the width of a caption in a text area.

Hide ( ) : void

IsCursorOver ( OverlayElement element, Vector2 cursorPos ) : bool

Static utility method to check if the cursor is over an overlay element.

IsCursorOver ( OverlayElement element, Vector2 cursorPos, Real voidBorder ) : bool

NukeOverlayElement ( OverlayElement element ) : void

Static utility method to recursively delete an overlay element plus

all of its children from the system.

OnCursorMoved ( Vector2 cursorPos ) : void

Raises the CursorMoved event.

OnCursorPressed ( Vector2 cursorPos ) : void

Raises the CursorPressed event.

OnCursorReleased ( Vector2 cursorPos ) : void

Raises the CursorReleased event.

OnLostFocus ( ) : void

Raises raises the LostFocus event.

Show ( ) : void

Widget ( ) : System

메소드 상세

Cleanup() 공개 메소드

public Cleanup ( ) : void
리턴 void

CursorOffset() 공개 정적인 메소드

Static utility method used to get the cursor's offset from the center

of an overlay element in pixels.
public static CursorOffset ( OverlayElement element, Vector2 cursorPos ) : Vector2
element Axiom.Overlays.OverlayElement
cursorPos Vector2
리턴 Vector2

FitCaptionToArea() 공개 정적인 메소드

Static utility method to cut off a string to fit in a text area.
public static FitCaptionToArea ( String caption, TextArea area, Real maxWidth ) : void
caption String
area Axiom.Overlays.Elements.TextArea
maxWidth Real
리턴 void

GetCaptionWidth() 공개 정적인 메소드

Static utility method used to get the width of a caption in a text area.
public static GetCaptionWidth ( String caption, TextArea area ) : Real
caption String
area Axiom.Overlays.Elements.TextArea
리턴 Real

Hide() 공개 메소드

public Hide ( ) : void
리턴 void

IsCursorOver() 공개 정적인 메소드

Static utility method to check if the cursor is over an overlay element.
public static IsCursorOver ( OverlayElement element, Vector2 cursorPos ) : bool
element Axiom.Overlays.OverlayElement
cursorPos Vector2
리턴 bool

IsCursorOver() 공개 정적인 메소드

public static IsCursorOver ( OverlayElement element, Vector2 cursorPos, Real voidBorder ) : bool
element Axiom.Overlays.OverlayElement
cursorPos Vector2
voidBorder Real
리턴 bool

NukeOverlayElement() 공개 정적인 메소드

Static utility method to recursively delete an overlay element plus

all of its children from the system.
public static NukeOverlayElement ( OverlayElement element ) : void
element Axiom.Overlays.OverlayElement
리턴 void

OnCursorMoved() 공개 메소드

Raises the CursorMoved event.
public OnCursorMoved ( Vector2 cursorPos ) : void
cursorPos Vector2 current cursor position
리턴 void

OnCursorPressed() 공개 메소드

Raises the CursorPressed event.
public OnCursorPressed ( Vector2 cursorPos ) : void
cursorPos Vector2 current cursor position
리턴 void

OnCursorReleased() 공개 메소드

Raises the CursorReleased event.
public OnCursorReleased ( Vector2 cursorPos ) : void
cursorPos Vector2 current cursor position
리턴 void

OnLostFocus() 공개 메소드

Raises raises the LostFocus event.
public OnLostFocus ( ) : void
리턴 void

Show() 공개 메소드

public Show ( ) : void
리턴 void

Widget() 공개 메소드

public Widget ( ) : System
리턴 System

프로퍼티 상세

element 보호되어 있는 프로퍼티

protected OverlayElement,Axiom.Overlays element
리턴 Axiom.Overlays.OverlayElement

listener 보호되어 있는 프로퍼티

protected ISdkTrayListener listener
리턴 ISdkTrayListener

trayLoc 보호되어 있는 프로퍼티

protected TrayLocation trayLoc
리턴 TrayLocation