C# Class Axiom.Samples.TextBox

Scrollable text box widget.
Inheritance: Widget
Show file 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 property

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

captionTextArea protected property

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

dragOffset protected property

protected Real dragOffset
return Real

isDragging protected property

protected bool isDragging
return bool

lines protected property

protected List lines
return List

padding protected property

protected Real padding
return Real

scrollHandle protected property

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

scrollPercentage protected property

protected Real scrollPercentage
return Real

scrollTrack protected property

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

startingLine protected property

protected int startingLine
return int

text protected property

protected String text
return String

textArea protected property

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