C# Class Axiom.Samples.TextBox

Scrollable text box widget.
Inheritance: Widget
Exibir arquivo Open project: WolfgangSt/axiom Class Usage Examples

Protected Properties

Property Type Description
captionBar Axiom.Overlays.Elements.BorderPanel
captionTextArea Axiom.Overlays.Elements.TextArea
dragOffset Real
isDragging bool
lines List
padding Real
scrollHandle Axiom.Overlays.Elements.Panel
scrollPercentage Real
scrollTrack Axiom.Overlays.Elements.BorderPanel
startingLine int
text String
textArea Axiom.Overlays.Elements.TextArea

Public Methods

Method Description
AppendText ( String text ) : void

ClearText ( ) : void

OnCursorMoved ( Vector2 cursorPos ) : void

OnCursorPressed ( Vector2 cursorPos ) : void

OnCursorReleased ( Vector2 cursorPos ) : void

OnLostFocus ( ) : void

RefitContents ( ) : void

Makes adjustments based on new padding, size, or alignment info.

TextBox ( String name, String caption, Real width, Real height ) : System

Do not instantiate any widgets directly. Use SdkTrayManager.

Protected Methods

Method Description
FilterLines ( ) : void

Decides which lines to show.

Method Details

AppendText() public method

public AppendText ( String text ) : void
text String
return void

ClearText() public method

public ClearText ( ) : void
return void

FilterLines() protected method

Decides which lines to show.
protected FilterLines ( ) : void
return void

OnCursorMoved() public method

public OnCursorMoved ( Vector2 cursorPos ) : void
cursorPos Vector2
return void

OnCursorPressed() public method

public OnCursorPressed ( Vector2 cursorPos ) : void
cursorPos Vector2
return void

OnCursorReleased() public method

public OnCursorReleased ( Vector2 cursorPos ) : void
cursorPos Vector2
return void

OnLostFocus() public method

public OnLostFocus ( ) : void
return void

RefitContents() public method

Makes adjustments based on new padding, size, or alignment info.
public RefitContents ( ) : void
return void

TextBox() public method

Do not instantiate any widgets directly. Use SdkTrayManager.
public TextBox ( String name, String caption, Real width, Real height ) : System
name String
caption String
width Real
height Real
return System

Property Details

captionBar protected_oe property

protected BorderPanel,Axiom.Overlays.Elements captionBar
return Axiom.Overlays.Elements.BorderPanel

captionTextArea protected_oe property

protected TextArea,Axiom.Overlays.Elements captionTextArea
return Axiom.Overlays.Elements.TextArea

dragOffset protected_oe property

protected Real dragOffset
return Real

isDragging protected_oe property

protected bool isDragging
return bool

lines protected_oe property

protected List lines
return List

padding protected_oe property

protected Real padding
return Real

scrollHandle protected_oe property

protected Panel,Axiom.Overlays.Elements scrollHandle
return Axiom.Overlays.Elements.Panel

scrollPercentage protected_oe property

protected Real scrollPercentage
return Real

scrollTrack protected_oe property

protected BorderPanel,Axiom.Overlays.Elements scrollTrack
return Axiom.Overlays.Elements.BorderPanel

startingLine protected_oe property

protected int startingLine
return int

text protected_oe property

protected String text
return String

textArea protected_oe property

protected TextArea,Axiom.Overlays.Elements textArea
return Axiom.Overlays.Elements.TextArea