C# Класс Axiom.Samples.Widget

Abstract base class for all widgets.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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