C# Class Flood.GUI.Controls.Control

Base control class.
Inheritance: IDisposable
Mostra file Open project: FloodProject/flood Class Usage Examples

Protected Properties

Property Type Description
m_InnerPanel Control

Private Properties

Property Type Description
DefaultAcceleratorHandler void
DoRender void
HandleAccelerator bool
InputChar bool
InputCopy void
InputCut void
InputKeyPressed bool
InputMouseClickedLeft void
InputMouseClickedRight void
InputMouseDoubleClickedLeft void
InputMouseDoubleClickedRight void
InputMouseEntered void
InputMouseLeft void
InputMouseMoved void
InputMouseWheeled bool
InputPaste void
InputSelectAll void

Public Methods

Method Description
AddAccelerator ( String accelerator ) : void

Adds keyboard accelerator with a default handler.

AddAccelerator ( String accelerator, GwenEventHandler handler ) : void

Adds keyboard accelerator.

AddChild ( Control child ) : void

Attaches specified control as a child of this one.

If InnerPanel is not null, it will become the parent.

Anim_HeightIn ( float length, float delay, float ease ) : void
Anim_HeightOut ( float length, bool hide, float delay, float ease ) : void
Anim_WidthIn ( float length, float delay = 0.0f, float ease = 1.0f ) : void
Anim_WidthOut ( float length, bool hide, float delay, float ease ) : void
Blur ( ) : void

Unfocuses the control.

BringNextToControl ( Control child, bool behind ) : void
BringToFront ( ) : void

Brings the control to the top of paren't visibility stack.

CanvasPosToLocal ( Vector2i pnt ) : Vector2i

Converts canvas coordinates to local coordinates.

CloseMenus ( ) : void

Closes all menus recursively.

Control ( Control parent ) : System

Initializes a new instance of the Control class.

DelayedDelete ( ) : void

Detaches the control from canvas and adds to the deletion queue (processed in Canvas.DoThink).

DeleteAllChildren ( ) : void

Removes all children (and disposes them).

Disable ( ) : void

Disables the control.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

DragAndDrop_CanAcceptPackage ( DragDrop p ) : bool
DragAndDrop_Draggable ( ) : bool
DragAndDrop_EndDragging ( bool success, int x, int y ) : void
DragAndDrop_GetPackage ( int x, int y ) : DragDrop.Package
DragAndDrop_HandleDrop ( DragDrop p, int x, int y ) : bool
DragAndDrop_Hover ( DragDrop p, int x, int y ) : void
DragAndDrop_HoverEnter ( DragDrop p, int x, int y ) : void
DragAndDrop_HoverLeave ( DragDrop p ) : void
DragAndDrop_SetPackage ( bool draggable, String name = "", object userData = null ) : void
DragAndDrop_ShouldStartDrag ( ) : bool
DragAndDrop_StartDragging ( DragDrop package, int x, int y ) : void
Enable ( ) : void

Enables the control.

FindChildByName ( String name, bool recursive = false ) : Control

Finds a child by name.

Focus ( ) : void

Focuses the control.

GetCanvas ( ) : Canvas

Gets the canvas (root parent) of the control.

GetChildrenSize ( ) : Vector2i

Returns the total width and height of all children.

Default implementation returns maximum size of children since the layout is unknown. Implement this in derived compound controls to properly return their size.

GetControlAt ( int x, int y ) : Control

Gets a child by its coordinates.

Hide ( ) : void

Hides the control.

Invalidate ( ) : void

Invalidates the control.

Causes layout, repaint, invalidates cached texture.

InvalidateParent ( ) : void

Invalidates control's parent.

IsChild ( Control child ) : bool

Checks if the given control is a child of this instance.

LocalPosToCanvas ( Vector2i pnt ) : Vector2i

Converts local coordinates to canvas coordinates.

MoveBy ( int x, int y ) : void

Moves the control by a specific amount.

MoveTo ( float x, float y ) : void

Moves the control to a specific point.

MoveTo ( int x, int y ) : void

Moves the control to a specific point, clamping on paren't bounds if RestrictToParent is set.

Position ( Pos pos, int xpadding, int ypadding ) : void

Positions the control inside its parent.

Redraw ( ) : void

Re-renders the control, invalidates cached texture.

RemoveChild ( Control child, bool dispose ) : void

Detaches specified control from this one.

SendToBack ( ) : void

Sends the control to the bottom of paren't visibility stack.

SetBounds ( Rectangle bounds ) : bool

Sets the control bounds.

SetBounds ( float x, float y, float width, float height ) : bool

Sets the control bounds.

SetBounds ( int x, int y, int width, int height ) : bool

Sets the control bounds.

SetPosition ( float x, float y ) : void

Sets the control position.

SetPosition ( int x, int y ) : void

Sets the control position.

SetSize ( int width, int height ) : bool

Sets the control size.

SetSkin ( Skins skin, bool doChildren = false ) : void

Sets the control's skin.

SetToolTipText ( String text ) : void

Creates a tooltip for the control.

Show ( ) : void

Shows the control.

SizeToChildren ( bool width = true, bool height = true ) : bool

Resizes the control to fit its children.

Think ( ) : void

Called during rendering.

ToString ( ) : string
Touch ( ) : void

Control has been clicked - invoked by input system. Windows use it to propagate activation.

UpdateColors ( ) : void

Updates control colors.

Used in composite controls like lists to differentiate row colors etc.

UpdateCursor ( ) : void

Sets mouse cursor to current cursor.

Protected Methods

Method Description
DoCacheRender ( Skins skin, Control master ) : void

Renders the control to a cache using specified skin.

InvalidateChildren ( bool recursive = false ) : void

Invalidates the control's children (relayout/repaint).

Layout ( Skins skin ) : void

Lays out the control's interior according to alignment, padding, dock etc.

OnAccelerator ( ) : void

Default accelerator handler.

OnBoundsChanged ( Rectangle oldBounds ) : void

Handler invoked when control's bounds change.

OnChar ( Char chr ) : bool

Handler for character input event.

OnChildAdded ( Control child ) : void

Handler invoked when a child is added.

OnChildBoundsChanged ( Rectangle oldChildBounds, Control child ) : void

Handler invoked when control children's bounds change.

OnChildRemoved ( Control child ) : void

Handler invoked when a child is removed.

OnChildTouched ( Control control ) : void
OnCopy ( Control from ) : void

Handler for Copy event.

OnCut ( Control from ) : void

Handler for Cut event.

OnKeyBackspace ( bool down ) : bool

Handler for Backspace keyboard event.

OnKeyDelete ( bool down ) : bool

Handler for Delete keyboard event.

OnKeyDown ( bool down ) : bool

Handler for Down Arrow keyboard event.

OnKeyEnd ( bool down ) : bool

Handler for End keyboard event.

OnKeyEscape ( bool down ) : bool

Handler for Escape keyboard event.

OnKeyHome ( bool down ) : bool

Handler for Home keyboard event.

OnKeyLeft ( bool down ) : bool

Handler for Left Arrow keyboard event.

OnKeyPressed ( Keys key, bool down = true ) : bool

Handler for keyboard events.

OnKeyReleaseed ( Keys key ) : bool

Handler for keyboard events.

OnKeyReturn ( bool down ) : bool

Handler for Return keyboard event.

OnKeyRight ( bool down ) : bool

Handler for Right Arrow keyboard event.

OnKeySpace ( bool down ) : bool

Handler for Space keyboard event.

OnKeyTab ( bool down ) : bool

Handler for Tab keyboard event.

OnKeyUp ( bool down ) : bool

Handler for Up Arrow keyboard event.

OnKeyboardFocus ( ) : void

Handler for gaining keyboard focus.

OnLostKeyboardFocus ( ) : void

Handler for losing keyboard focus.

OnMouseClickedLeft ( int x, int y, bool down ) : void

Handler invoked on mouse click (left) event.

OnMouseClickedRight ( int x, int y, bool down ) : void

Handler invoked on mouse click (right) event.

OnMouseDoubleClickedLeft ( int x, int y ) : void

Handler invoked on mouse double click (left) event.

OnMouseDoubleClickedRight ( int x, int y ) : void

Handler invoked on mouse double click (right) event.

OnMouseEntered ( ) : void

Handler invoked on mouse cursor entering control's bounds.

OnMouseLeft ( ) : void

Handler invoked on mouse cursor leaving control's bounds.

OnMouseMoved ( int x, int y, int dx, int dy ) : void

Handler invoked on mouse moved event.

OnMouseWheeled ( int delta ) : bool

Handler invoked on mouse wheel event.

OnPaste ( Control from ) : void

Handler for Paste event.

OnScaleChanged ( ) : void

Handler invoked when control's scale changes.

OnSelectAll ( Control from ) : void

Handler for Select All event.

OnSkinChanged ( Skins newSkin ) : void

Handler invoked when control's skin changes.

PostLayout ( Skins skin ) : void

Function invoked after layout.

RecurseLayout ( Skins skin ) : void

Recursively lays out the control's interior according to alignment, margin, padding, dock etc.

Render ( Skins skin ) : void

Renders the control using specified skin.

RenderFocus ( Skins skin ) : void

Renders the focus overlay.

RenderOver ( Skins skin ) : void

Renders over the actual control (overlays).

RenderRecursive ( Skins skin, Rectangle clipRect ) : void

Recursive rendering logic.

RenderUnder ( Skins skin ) : void

Renders under the actual control (shadows etc).

UpdateRenderBounds ( ) : void

Copies Bounds to RenderBounds.

Private Methods

Method Description
DefaultAcceleratorHandler ( Control control ) : void

Default accelerator handler.

DoRender ( Skins skin ) : void

Rendering logic implementation.

HandleAccelerator ( String accelerator ) : bool

Handles keyboard accelerator.

InputChar ( Char chr ) : bool
InputCopy ( Control from ) : void
InputCut ( Control from ) : void
InputKeyPressed ( Keys key, bool down = true ) : bool

Invokes key press event (used by input system).

InputMouseClickedLeft ( int x, int y, bool down ) : void

Invokes left mouse click event (used by input system).

InputMouseClickedRight ( int x, int y, bool down ) : void

Invokes right mouse click event (used by input system).

InputMouseDoubleClickedLeft ( int x, int y ) : void

Invokes left double mouse click event (used by input system).

InputMouseDoubleClickedRight ( int x, int y ) : void

Invokes right double mouse click event (used by input system).

InputMouseEntered ( ) : void

Invokes mouse enter event (used by input system).

InputMouseLeft ( ) : void

Invokes mouse leave event (used by input system).

InputMouseMoved ( int x, int y, int dx, int dy ) : void

Invokes mouse moved event (used by input system).

InputMouseWheeled ( int delta ) : bool

Invokes mouse wheeled event (used by input system).

InputPaste ( Control from ) : void
InputSelectAll ( Control from ) : void

Method Details

AddAccelerator() public method

Adds keyboard accelerator with a default handler.
public AddAccelerator ( String accelerator ) : void
accelerator String Accelerator text.
return void

AddAccelerator() public method

Adds keyboard accelerator.
public AddAccelerator ( String accelerator, GwenEventHandler handler ) : void
accelerator String Accelerator text.
handler GwenEventHandler Handler.
return void

AddChild() public method

Attaches specified control as a child of this one.
If InnerPanel is not null, it will become the parent.
public AddChild ( Control child ) : void
child Control Control to be added as a child.
return void

Anim_HeightIn() public method

public Anim_HeightIn ( float length, float delay, float ease ) : void
length float
delay float
ease float
return void

Anim_HeightOut() public method

public Anim_HeightOut ( float length, bool hide, float delay, float ease ) : void
length float
hide bool
delay float
ease float
return void

Anim_WidthIn() public method

public Anim_WidthIn ( float length, float delay = 0.0f, float ease = 1.0f ) : void
length float
delay float
ease float
return void

Anim_WidthOut() public method

public Anim_WidthOut ( float length, bool hide, float delay, float ease ) : void
length float
hide bool
delay float
ease float
return void

Blur() public method

Unfocuses the control.
public Blur ( ) : void
return void

BringNextToControl() public method

public BringNextToControl ( Control child, bool behind ) : void
child Control
behind bool
return void

BringToFront() public method

Brings the control to the top of paren't visibility stack.
public BringToFront ( ) : void
return void

CanvasPosToLocal() public method

Converts canvas coordinates to local coordinates.
public CanvasPosToLocal ( Vector2i pnt ) : Vector2i
pnt Vector2i Canvas coordinates.
return Vector2i

CloseMenus() public method

Closes all menus recursively.
public CloseMenus ( ) : void
return void

Control() public method

Initializes a new instance of the Control class.
public Control ( Control parent ) : System
parent Control Parent control.
return System

DelayedDelete() public method

Detaches the control from canvas and adds to the deletion queue (processed in Canvas.DoThink).
public DelayedDelete ( ) : void
return void

DeleteAllChildren() public method

Removes all children (and disposes them).
public DeleteAllChildren ( ) : void
return void

Disable() public method

Disables the control.
public Disable ( ) : void
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

DoCacheRender() protected method

Renders the control to a cache using specified skin.
protected DoCacheRender ( Skins skin, Control master ) : void
skin Skins Skin to use.
master Control Root parent.
return void

DragAndDrop_CanAcceptPackage() public method

public DragAndDrop_CanAcceptPackage ( DragDrop p ) : bool
p DragDrop
return bool

DragAndDrop_Draggable() public method

public DragAndDrop_Draggable ( ) : bool
return bool

DragAndDrop_EndDragging() public method

public DragAndDrop_EndDragging ( bool success, int x, int y ) : void
success bool
x int
y int
return void

DragAndDrop_GetPackage() public method

public DragAndDrop_GetPackage ( int x, int y ) : DragDrop.Package
x int
y int
return DragDrop.Package

DragAndDrop_HandleDrop() public method

public DragAndDrop_HandleDrop ( DragDrop p, int x, int y ) : bool
p DragDrop
x int
y int
return bool

DragAndDrop_Hover() public method

public DragAndDrop_Hover ( DragDrop p, int x, int y ) : void
p DragDrop
x int
y int
return void

DragAndDrop_HoverEnter() public method

public DragAndDrop_HoverEnter ( DragDrop p, int x, int y ) : void
p DragDrop
x int
y int
return void

DragAndDrop_HoverLeave() public method

public DragAndDrop_HoverLeave ( DragDrop p ) : void
p DragDrop
return void

DragAndDrop_SetPackage() public method

public DragAndDrop_SetPackage ( bool draggable, String name = "", object userData = null ) : void
draggable bool
name String
userData object
return void

DragAndDrop_ShouldStartDrag() public method

public DragAndDrop_ShouldStartDrag ( ) : bool
return bool

DragAndDrop_StartDragging() public method

public DragAndDrop_StartDragging ( DragDrop package, int x, int y ) : void
package DragDrop
x int
y int
return void

Enable() public method

Enables the control.
public Enable ( ) : void
return void

FindChildByName() public method

Finds a child by name.
public FindChildByName ( String name, bool recursive = false ) : Control
name String Child name.
recursive bool Determines whether the search should be recursive.
return Control

Focus() public method

Focuses the control.
public Focus ( ) : void
return void

GetCanvas() public method

Gets the canvas (root parent) of the control.
public GetCanvas ( ) : Canvas
return Canvas

GetChildrenSize() public method

Returns the total width and height of all children.
Default implementation returns maximum size of children since the layout is unknown. Implement this in derived compound controls to properly return their size.
public GetChildrenSize ( ) : Vector2i
return Vector2i

GetControlAt() public method

Gets a child by its coordinates.
public GetControlAt ( int x, int y ) : Control
x int Child X.
y int Child Y.
return Control

Hide() public method

Hides the control.
public Hide ( ) : void
return void

Invalidate() public method

Invalidates the control.
Causes layout, repaint, invalidates cached texture.
public Invalidate ( ) : void
return void

InvalidateChildren() protected method

Invalidates the control's children (relayout/repaint).
protected InvalidateChildren ( bool recursive = false ) : void
recursive bool Determines whether the operation should be carried recursively.
return void

InvalidateParent() public method

Invalidates control's parent.
public InvalidateParent ( ) : void
return void

IsChild() public method

Checks if the given control is a child of this instance.
public IsChild ( Control child ) : bool
child Control Control to examine.
return bool

Layout() protected method

Lays out the control's interior according to alignment, padding, dock etc.
protected Layout ( Skins skin ) : void
skin Skins Skin to use.
return void

LocalPosToCanvas() public method

Converts local coordinates to canvas coordinates.
public LocalPosToCanvas ( Vector2i pnt ) : Vector2i
pnt Vector2i Local coordinates.
return Vector2i

MoveBy() public method

Moves the control by a specific amount.
public MoveBy ( int x, int y ) : void
x int X-axis movement.
y int Y-axis movement.
return void

MoveTo() public method

Moves the control to a specific point.
public MoveTo ( float x, float y ) : void
x float Target x coordinate.
y float Target y coordinate.
return void

MoveTo() public method

Moves the control to a specific point, clamping on paren't bounds if RestrictToParent is set.
public MoveTo ( int x, int y ) : void
x int Target x coordinate.
y int Target y coordinate.
return void

OnAccelerator() protected method

Default accelerator handler.
protected OnAccelerator ( ) : void
return void

OnBoundsChanged() protected method

Handler invoked when control's bounds change.
protected OnBoundsChanged ( Rectangle oldBounds ) : void
oldBounds System.Drawing.Rectangle Old bounds.
return void

OnChar() protected method

Handler for character input event.
protected OnChar ( Char chr ) : bool
chr Char Character typed.
return bool

OnChildAdded() protected method

Handler invoked when a child is added.
protected OnChildAdded ( Control child ) : void
child Control Child added.
return void

OnChildBoundsChanged() protected method

Handler invoked when control children's bounds change.
protected OnChildBoundsChanged ( Rectangle oldChildBounds, Control child ) : void
oldChildBounds System.Drawing.Rectangle
child Control
return void

OnChildRemoved() protected method

Handler invoked when a child is removed.
protected OnChildRemoved ( Control child ) : void
child Control Child removed.
return void

OnChildTouched() protected method

protected OnChildTouched ( Control control ) : void
control Control
return void

OnCopy() protected method

Handler for Copy event.
protected OnCopy ( Control from ) : void
from Control Source control.
return void

OnCut() protected method

Handler for Cut event.
protected OnCut ( Control from ) : void
from Control Source control.
return void

OnKeyBackspace() protected method

Handler for Backspace keyboard event.
protected OnKeyBackspace ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
return bool

OnKeyDelete() protected method

Handler for Delete keyboard event.
protected OnKeyDelete ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
return bool

OnKeyDown() protected method

Handler for Down Arrow keyboard event.
protected OnKeyDown ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
return bool

OnKeyEnd() protected method

Handler for End keyboard event.
protected OnKeyEnd ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
return bool

OnKeyEscape() protected method

Handler for Escape keyboard event.
protected OnKeyEscape ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
return bool

OnKeyHome() protected method

Handler for Home keyboard event.
protected OnKeyHome ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
return bool

OnKeyLeft() protected method

Handler for Left Arrow keyboard event.
protected OnKeyLeft ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
return bool

OnKeyPressed() protected method

Handler for keyboard events.
protected OnKeyPressed ( Keys key, bool down = true ) : bool
key Keys Key pressed.
down bool Indicates whether the key was pressed or released.
return bool

OnKeyReleaseed() protected method

Handler for keyboard events.
protected OnKeyReleaseed ( Keys key ) : bool
key Keys Key pressed.
return bool

OnKeyReturn() protected method

Handler for Return keyboard event.
protected OnKeyReturn ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
return bool

OnKeyRight() protected method

Handler for Right Arrow keyboard event.
protected OnKeyRight ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
return bool

OnKeySpace() protected method

Handler for Space keyboard event.
protected OnKeySpace ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
return bool

OnKeyTab() protected method

Handler for Tab keyboard event.
protected OnKeyTab ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
return bool

OnKeyUp() protected method

Handler for Up Arrow keyboard event.
protected OnKeyUp ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
return bool

OnKeyboardFocus() protected method

Handler for gaining keyboard focus.
protected OnKeyboardFocus ( ) : void
return void

OnLostKeyboardFocus() protected method

Handler for losing keyboard focus.
protected OnLostKeyboardFocus ( ) : void
return void

OnMouseClickedLeft() protected method

Handler invoked on mouse click (left) event.
protected OnMouseClickedLeft ( int x, int y, bool down ) : void
x int X coordinate.
y int Y coordinate.
down bool If set to true mouse button is down.
return void

OnMouseClickedRight() protected method

Handler invoked on mouse click (right) event.
protected OnMouseClickedRight ( int x, int y, bool down ) : void
x int X coordinate.
y int Y coordinate.
down bool If set to true mouse button is down.
return void

OnMouseDoubleClickedLeft() protected method

Handler invoked on mouse double click (left) event.
protected OnMouseDoubleClickedLeft ( int x, int y ) : void
x int X coordinate.
y int Y coordinate.
return void

OnMouseDoubleClickedRight() protected method

Handler invoked on mouse double click (right) event.
protected OnMouseDoubleClickedRight ( int x, int y ) : void
x int X coordinate.
y int Y coordinate.
return void

OnMouseEntered() protected method

Handler invoked on mouse cursor entering control's bounds.
protected OnMouseEntered ( ) : void
return void

OnMouseLeft() protected method

Handler invoked on mouse cursor leaving control's bounds.
protected OnMouseLeft ( ) : void
return void

OnMouseMoved() protected method

Handler invoked on mouse moved event.
protected OnMouseMoved ( int x, int y, int dx, int dy ) : void
x int X coordinate.
y int Y coordinate.
dx int X change.
dy int Y change.
return void

OnMouseWheeled() protected method

Handler invoked on mouse wheel event.
protected OnMouseWheeled ( int delta ) : bool
delta int Scroll delta.
return bool

OnPaste() protected method

Handler for Paste event.
protected OnPaste ( Control from ) : void
from Control Source control.
return void

OnScaleChanged() protected method

Handler invoked when control's scale changes.
protected OnScaleChanged ( ) : void
return void

OnSelectAll() protected method

Handler for Select All event.
protected OnSelectAll ( Control from ) : void
from Control Source control.
return void

OnSkinChanged() protected method

Handler invoked when control's skin changes.
protected OnSkinChanged ( Skins newSkin ) : void
newSkin Skins New skin.
return void

Position() public method

Positions the control inside its parent.
public Position ( Pos pos, int xpadding, int ypadding ) : void
pos Pos Target position.
xpadding int X padding.
ypadding int Y padding.
return void

PostLayout() protected method

Function invoked after layout.
protected PostLayout ( Skins skin ) : void
skin Skins Skin to use.
return void

RecurseLayout() protected method

Recursively lays out the control's interior according to alignment, margin, padding, dock etc.
protected RecurseLayout ( Skins skin ) : void
skin Skins Skin to use.
return void

Redraw() public method

Re-renders the control, invalidates cached texture.
public Redraw ( ) : void
return void

RemoveChild() public method

Detaches specified control from this one.
public RemoveChild ( Control child, bool dispose ) : void
child Control Child to be removed.
dispose bool Determines whether the child should be disposed (added to delayed delete queue).
return void

Render() protected method

Renders the control using specified skin.
protected Render ( Skins skin ) : void
skin Skins Skin to use.
return void

RenderFocus() protected method

Renders the focus overlay.
protected RenderFocus ( Skins skin ) : void
skin Skins Skin to use.
return void

RenderOver() protected method

Renders over the actual control (overlays).
protected RenderOver ( Skins skin ) : void
skin Skins Skin to use.
return void

RenderRecursive() protected method

Recursive rendering logic.
protected RenderRecursive ( Skins skin, Rectangle clipRect ) : void
skin Skins Skin to use.
clipRect Rectangle Clipping rectangle.
return void

RenderUnder() protected method

Renders under the actual control (shadows etc).
protected RenderUnder ( Skins skin ) : void
skin Skins Skin to use.
return void

SendToBack() public method

Sends the control to the bottom of paren't visibility stack.
public SendToBack ( ) : void
return void

SetBounds() public method

Sets the control bounds.
public SetBounds ( Rectangle bounds ) : bool
bounds Rectangle New bounds.
return bool

SetBounds() public method

Sets the control bounds.
public SetBounds ( float x, float y, float width, float height ) : bool
x float X.
y float Y.
width float Width.
height float Height.
return bool

SetBounds() public method

Sets the control bounds.
public SetBounds ( int x, int y, int width, int height ) : bool
x int X position.
y int Y position.
width int Width.
height int Height.
return bool

SetPosition() public method

Sets the control position.
public SetPosition ( float x, float y ) : void
x float Target x coordinate.
y float Target y coordinate.
return void

SetPosition() public method

Sets the control position.
public SetPosition ( int x, int y ) : void
x int Target x coordinate.
y int Target y coordinate.
return void

SetSize() public method

Sets the control size.
public SetSize ( int width, int height ) : bool
width int New width.
height int New height.
return bool

SetSkin() public method

Sets the control's skin.
public SetSkin ( Skins skin, bool doChildren = false ) : void
skin Skins New skin.
doChildren bool Deterines whether to change children skin.
return void

SetToolTipText() public method

Creates a tooltip for the control.
public SetToolTipText ( String text ) : void
text String Tooltip text.
return void

Show() public method

Shows the control.
public Show ( ) : void
return void

SizeToChildren() public method

Resizes the control to fit its children.
public SizeToChildren ( bool width = true, bool height = true ) : bool
width bool Determines whether to change control's width.
height bool Determines whether to change control's height.
return bool

Think() public method

Called during rendering.
public Think ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

Touch() public method

Control has been clicked - invoked by input system. Windows use it to propagate activation.
public Touch ( ) : void
return void

UpdateColors() public method

Updates control colors.
Used in composite controls like lists to differentiate row colors etc.
public UpdateColors ( ) : void
return void

UpdateCursor() public method

Sets mouse cursor to current cursor.
public UpdateCursor ( ) : void
return void

UpdateRenderBounds() protected method

Copies Bounds to RenderBounds.
protected UpdateRenderBounds ( ) : void
return void

Property Details

m_InnerPanel protected_oe property

If the innerpanel exists our children will automatically become children of that instead of us - allowing us to move them all around by moving that panel (useful for scrolling etc).
protected Control m_InnerPanel
return Control