C# Class Flood.GUI.Controls.Control

Base control class.
Inheritance: IDisposable
Afficher le fichier Open project: FloodProject/flood Class Usage Examples

Protected Properties

Свойство Type Description
m_InnerPanel Control

Private Properties

Свойство 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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

AddAccelerator() public méthode

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

AddChild() public méthode

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.
Résultat void

Anim_HeightIn() public méthode

public Anim_HeightIn ( float length, float delay, float ease ) : void
length float
delay float
ease float
Résultat void

Anim_HeightOut() public méthode

public Anim_HeightOut ( float length, bool hide, float delay, float ease ) : void
length float
hide bool
delay float
ease float
Résultat void

Anim_WidthIn() public méthode

public Anim_WidthIn ( float length, float delay = 0.0f, float ease = 1.0f ) : void
length float
delay float
ease float
Résultat void

Anim_WidthOut() public méthode

public Anim_WidthOut ( float length, bool hide, float delay, float ease ) : void
length float
hide bool
delay float
ease float
Résultat void

Blur() public méthode

Unfocuses the control.
public Blur ( ) : void
Résultat void

BringNextToControl() public méthode

public BringNextToControl ( Control child, bool behind ) : void
child Control
behind bool
Résultat void

BringToFront() public méthode

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

CanvasPosToLocal() public méthode

Converts canvas coordinates to local coordinates.
public CanvasPosToLocal ( Vector2i pnt ) : Vector2i
pnt Vector2i Canvas coordinates.
Résultat Vector2i

CloseMenus() public méthode

Closes all menus recursively.
public CloseMenus ( ) : void
Résultat void

Control() public méthode

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

DelayedDelete() public méthode

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

DeleteAllChildren() public méthode

Removes all children (and disposes them).
public DeleteAllChildren ( ) : void
Résultat void

Disable() public méthode

Disables the control.
public Disable ( ) : void
Résultat void

Dispose() public méthode

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

DoCacheRender() protected méthode

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.
Résultat void

DragAndDrop_CanAcceptPackage() public méthode

public DragAndDrop_CanAcceptPackage ( DragDrop p ) : bool
p DragDrop
Résultat bool

DragAndDrop_Draggable() public méthode

public DragAndDrop_Draggable ( ) : bool
Résultat bool

DragAndDrop_EndDragging() public méthode

public DragAndDrop_EndDragging ( bool success, int x, int y ) : void
success bool
x int
y int
Résultat void

DragAndDrop_GetPackage() public méthode

public DragAndDrop_GetPackage ( int x, int y ) : DragDrop.Package
x int
y int
Résultat DragDrop.Package

DragAndDrop_HandleDrop() public méthode

public DragAndDrop_HandleDrop ( DragDrop p, int x, int y ) : bool
p DragDrop
x int
y int
Résultat bool

DragAndDrop_Hover() public méthode

public DragAndDrop_Hover ( DragDrop p, int x, int y ) : void
p DragDrop
x int
y int
Résultat void

DragAndDrop_HoverEnter() public méthode

public DragAndDrop_HoverEnter ( DragDrop p, int x, int y ) : void
p DragDrop
x int
y int
Résultat void

DragAndDrop_HoverLeave() public méthode

public DragAndDrop_HoverLeave ( DragDrop p ) : void
p DragDrop
Résultat void

DragAndDrop_SetPackage() public méthode

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

DragAndDrop_ShouldStartDrag() public méthode

public DragAndDrop_ShouldStartDrag ( ) : bool
Résultat bool

DragAndDrop_StartDragging() public méthode

public DragAndDrop_StartDragging ( DragDrop package, int x, int y ) : void
package DragDrop
x int
y int
Résultat void

Enable() public méthode

Enables the control.
public Enable ( ) : void
Résultat void

FindChildByName() public méthode

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.
Résultat Control

Focus() public méthode

Focuses the control.
public Focus ( ) : void
Résultat void

GetCanvas() public méthode

Gets the canvas (root parent) of the control.
public GetCanvas ( ) : Canvas
Résultat Canvas

GetChildrenSize() public méthode

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
Résultat Vector2i

GetControlAt() public méthode

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

Hide() public méthode

Hides the control.
public Hide ( ) : void
Résultat void

Invalidate() public méthode

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

InvalidateChildren() protected méthode

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

InvalidateParent() public méthode

Invalidates control's parent.
public InvalidateParent ( ) : void
Résultat void

IsChild() public méthode

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

Layout() protected méthode

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

LocalPosToCanvas() public méthode

Converts local coordinates to canvas coordinates.
public LocalPosToCanvas ( Vector2i pnt ) : Vector2i
pnt Vector2i Local coordinates.
Résultat Vector2i

MoveBy() public méthode

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

MoveTo() public méthode

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

MoveTo() public méthode

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.
Résultat void

OnAccelerator() protected méthode

Default accelerator handler.
protected OnAccelerator ( ) : void
Résultat void

OnBoundsChanged() protected méthode

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

OnChar() protected méthode

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

OnChildAdded() protected méthode

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

OnChildBoundsChanged() protected méthode

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

OnChildRemoved() protected méthode

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

OnChildTouched() protected méthode

protected OnChildTouched ( Control control ) : void
control Control
Résultat void

OnCopy() protected méthode

Handler for Copy event.
protected OnCopy ( Control from ) : void
from Control Source control.
Résultat void

OnCut() protected méthode

Handler for Cut event.
protected OnCut ( Control from ) : void
from Control Source control.
Résultat void

OnKeyBackspace() protected méthode

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

OnKeyDelete() protected méthode

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

OnKeyDown() protected méthode

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

OnKeyEnd() protected méthode

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

OnKeyEscape() protected méthode

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

OnKeyHome() protected méthode

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

OnKeyLeft() protected méthode

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

OnKeyPressed() protected méthode

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.
Résultat bool

OnKeyReleaseed() protected méthode

Handler for keyboard events.
protected OnKeyReleaseed ( Keys key ) : bool
key Keys Key pressed.
Résultat bool

OnKeyReturn() protected méthode

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

OnKeyRight() protected méthode

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

OnKeySpace() protected méthode

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

OnKeyTab() protected méthode

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

OnKeyUp() protected méthode

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

OnKeyboardFocus() protected méthode

Handler for gaining keyboard focus.
protected OnKeyboardFocus ( ) : void
Résultat void

OnLostKeyboardFocus() protected méthode

Handler for losing keyboard focus.
protected OnLostKeyboardFocus ( ) : void
Résultat void

OnMouseClickedLeft() protected méthode

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.
Résultat void

OnMouseClickedRight() protected méthode

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.
Résultat void

OnMouseDoubleClickedLeft() protected méthode

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

OnMouseDoubleClickedRight() protected méthode

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

OnMouseEntered() protected méthode

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

OnMouseLeft() protected méthode

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

OnMouseMoved() protected méthode

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.
Résultat void

OnMouseWheeled() protected méthode

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

OnPaste() protected méthode

Handler for Paste event.
protected OnPaste ( Control from ) : void
from Control Source control.
Résultat void

OnScaleChanged() protected méthode

Handler invoked when control's scale changes.
protected OnScaleChanged ( ) : void
Résultat void

OnSelectAll() protected méthode

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

OnSkinChanged() protected méthode

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

Position() public méthode

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.
Résultat void

PostLayout() protected méthode

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

RecurseLayout() protected méthode

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

Redraw() public méthode

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

RemoveChild() public méthode

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).
Résultat void

Render() protected méthode

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

RenderFocus() protected méthode

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

RenderOver() protected méthode

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

RenderRecursive() protected méthode

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

RenderUnder() protected méthode

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

SendToBack() public méthode

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

SetBounds() public méthode

Sets the control bounds.
public SetBounds ( Rectangle bounds ) : bool
bounds Rectangle New bounds.
Résultat bool

SetBounds() public méthode

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.
Résultat bool

SetBounds() public méthode

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.
Résultat bool

SetPosition() public méthode

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

SetPosition() public méthode

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

SetSize() public méthode

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

SetSkin() public méthode

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.
Résultat void

SetToolTipText() public méthode

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

Show() public méthode

Shows the control.
public Show ( ) : void
Résultat void

SizeToChildren() public méthode

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.
Résultat bool

Think() public méthode

Called during rendering.
public Think ( ) : void
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

Touch() public méthode

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

UpdateColors() public méthode

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

UpdateCursor() public méthode

Sets mouse cursor to current cursor.
public UpdateCursor ( ) : void
Résultat void

UpdateRenderBounds() protected méthode

Copies Bounds to RenderBounds.
protected UpdateRenderBounds ( ) : void
Résultat 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
Résultat Control