C# Класс Flood.GUI.Controls.Control

Base control class.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
m_InnerPanel Control

Private Properties

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

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

AddAccelerator() публичный Метод

Adds keyboard accelerator with a default handler.
public AddAccelerator ( String accelerator ) : void
accelerator String Accelerator text.
Результат void

AddAccelerator() публичный Метод

Adds keyboard accelerator.
public AddAccelerator ( String accelerator, GwenEventHandler handler ) : void
accelerator String Accelerator text.
handler GwenEventHandler Handler.
Результат void

AddChild() публичный Метод

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.
Результат void

Anim_HeightIn() публичный Метод

public Anim_HeightIn ( float length, float delay, float ease ) : void
length float
delay float
ease float
Результат void

Anim_HeightOut() публичный Метод

public Anim_HeightOut ( float length, bool hide, float delay, float ease ) : void
length float
hide bool
delay float
ease float
Результат void

Anim_WidthIn() публичный Метод

public Anim_WidthIn ( float length, float delay = 0.0f, float ease = 1.0f ) : void
length float
delay float
ease float
Результат void

Anim_WidthOut() публичный Метод

public Anim_WidthOut ( float length, bool hide, float delay, float ease ) : void
length float
hide bool
delay float
ease float
Результат void

Blur() публичный Метод

Unfocuses the control.
public Blur ( ) : void
Результат void

BringNextToControl() публичный Метод

public BringNextToControl ( Control child, bool behind ) : void
child Control
behind bool
Результат void

BringToFront() публичный Метод

Brings the control to the top of paren't visibility stack.
public BringToFront ( ) : void
Результат void

CanvasPosToLocal() публичный Метод

Converts canvas coordinates to local coordinates.
public CanvasPosToLocal ( Vector2i pnt ) : Vector2i
pnt Vector2i Canvas coordinates.
Результат Vector2i

CloseMenus() публичный Метод

Closes all menus recursively.
public CloseMenus ( ) : void
Результат void

Control() публичный Метод

Initializes a new instance of the Control class.
public Control ( Control parent ) : System
parent Control Parent control.
Результат System

DelayedDelete() публичный Метод

Detaches the control from canvas and adds to the deletion queue (processed in Canvas.DoThink).
public DelayedDelete ( ) : void
Результат void

DeleteAllChildren() публичный Метод

Removes all children (and disposes them).
public DeleteAllChildren ( ) : void
Результат void

Disable() публичный Метод

Disables the control.
public Disable ( ) : void
Результат void

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

DoCacheRender() защищенный Метод

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.
Результат void

DragAndDrop_CanAcceptPackage() публичный Метод

public DragAndDrop_CanAcceptPackage ( DragDrop p ) : bool
p DragDrop
Результат bool

DragAndDrop_Draggable() публичный Метод

public DragAndDrop_Draggable ( ) : bool
Результат bool

DragAndDrop_EndDragging() публичный Метод

public DragAndDrop_EndDragging ( bool success, int x, int y ) : void
success bool
x int
y int
Результат void

DragAndDrop_GetPackage() публичный Метод

public DragAndDrop_GetPackage ( int x, int y ) : DragDrop.Package
x int
y int
Результат DragDrop.Package

DragAndDrop_HandleDrop() публичный Метод

public DragAndDrop_HandleDrop ( DragDrop p, int x, int y ) : bool
p DragDrop
x int
y int
Результат bool

DragAndDrop_Hover() публичный Метод

public DragAndDrop_Hover ( DragDrop p, int x, int y ) : void
p DragDrop
x int
y int
Результат void

DragAndDrop_HoverEnter() публичный Метод

public DragAndDrop_HoverEnter ( DragDrop p, int x, int y ) : void
p DragDrop
x int
y int
Результат void

DragAndDrop_HoverLeave() публичный Метод

public DragAndDrop_HoverLeave ( DragDrop p ) : void
p DragDrop
Результат void

DragAndDrop_SetPackage() публичный Метод

public DragAndDrop_SetPackage ( bool draggable, String name = "", object userData = null ) : void
draggable bool
name String
userData object
Результат void

DragAndDrop_ShouldStartDrag() публичный Метод

public DragAndDrop_ShouldStartDrag ( ) : bool
Результат bool

DragAndDrop_StartDragging() публичный Метод

public DragAndDrop_StartDragging ( DragDrop package, int x, int y ) : void
package DragDrop
x int
y int
Результат void

Enable() публичный Метод

Enables the control.
public Enable ( ) : void
Результат void

FindChildByName() публичный Метод

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.
Результат Control

Focus() публичный Метод

Focuses the control.
public Focus ( ) : void
Результат void

GetCanvas() публичный Метод

Gets the canvas (root parent) of the control.
public GetCanvas ( ) : Canvas
Результат Canvas

GetChildrenSize() публичный Метод

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
Результат Vector2i

GetControlAt() публичный Метод

Gets a child by its coordinates.
public GetControlAt ( int x, int y ) : Control
x int Child X.
y int Child Y.
Результат Control

Hide() публичный Метод

Hides the control.
public Hide ( ) : void
Результат void

Invalidate() публичный Метод

Invalidates the control.
Causes layout, repaint, invalidates cached texture.
public Invalidate ( ) : void
Результат void

InvalidateChildren() защищенный Метод

Invalidates the control's children (relayout/repaint).
protected InvalidateChildren ( bool recursive = false ) : void
recursive bool Determines whether the operation should be carried recursively.
Результат void

InvalidateParent() публичный Метод

Invalidates control's parent.
public InvalidateParent ( ) : void
Результат void

IsChild() публичный Метод

Checks if the given control is a child of this instance.
public IsChild ( Control child ) : bool
child Control Control to examine.
Результат bool

Layout() защищенный Метод

Lays out the control's interior according to alignment, padding, dock etc.
protected Layout ( Skins skin ) : void
skin Skins Skin to use.
Результат void

LocalPosToCanvas() публичный Метод

Converts local coordinates to canvas coordinates.
public LocalPosToCanvas ( Vector2i pnt ) : Vector2i
pnt Vector2i Local coordinates.
Результат Vector2i

MoveBy() публичный Метод

Moves the control by a specific amount.
public MoveBy ( int x, int y ) : void
x int X-axis movement.
y int Y-axis movement.
Результат void

MoveTo() публичный Метод

Moves the control to a specific point.
public MoveTo ( float x, float y ) : void
x float Target x coordinate.
y float Target y coordinate.
Результат void

MoveTo() публичный Метод

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.
Результат void

OnAccelerator() защищенный Метод

Default accelerator handler.
protected OnAccelerator ( ) : void
Результат void

OnBoundsChanged() защищенный Метод

Handler invoked when control's bounds change.
protected OnBoundsChanged ( Rectangle oldBounds ) : void
oldBounds System.Drawing.Rectangle Old bounds.
Результат void

OnChar() защищенный Метод

Handler for character input event.
protected OnChar ( Char chr ) : bool
chr Char Character typed.
Результат bool

OnChildAdded() защищенный Метод

Handler invoked when a child is added.
protected OnChildAdded ( Control child ) : void
child Control Child added.
Результат void

OnChildBoundsChanged() защищенный Метод

Handler invoked when control children's bounds change.
protected OnChildBoundsChanged ( Rectangle oldChildBounds, Control child ) : void
oldChildBounds System.Drawing.Rectangle
child Control
Результат void

OnChildRemoved() защищенный Метод

Handler invoked when a child is removed.
protected OnChildRemoved ( Control child ) : void
child Control Child removed.
Результат void

OnChildTouched() защищенный Метод

protected OnChildTouched ( Control control ) : void
control Control
Результат void

OnCopy() защищенный Метод

Handler for Copy event.
protected OnCopy ( Control from ) : void
from Control Source control.
Результат void

OnCut() защищенный Метод

Handler for Cut event.
protected OnCut ( Control from ) : void
from Control Source control.
Результат void

OnKeyBackspace() защищенный Метод

Handler for Backspace keyboard event.
protected OnKeyBackspace ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Результат bool

OnKeyDelete() защищенный Метод

Handler for Delete keyboard event.
protected OnKeyDelete ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Результат bool

OnKeyDown() защищенный Метод

Handler for Down Arrow keyboard event.
protected OnKeyDown ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Результат bool

OnKeyEnd() защищенный Метод

Handler for End keyboard event.
protected OnKeyEnd ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Результат bool

OnKeyEscape() защищенный Метод

Handler for Escape keyboard event.
protected OnKeyEscape ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Результат bool

OnKeyHome() защищенный Метод

Handler for Home keyboard event.
protected OnKeyHome ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Результат bool

OnKeyLeft() защищенный Метод

Handler for Left Arrow keyboard event.
protected OnKeyLeft ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Результат bool

OnKeyPressed() защищенный Метод

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.
Результат bool

OnKeyReleaseed() защищенный Метод

Handler for keyboard events.
protected OnKeyReleaseed ( Keys key ) : bool
key Keys Key pressed.
Результат bool

OnKeyReturn() защищенный Метод

Handler for Return keyboard event.
protected OnKeyReturn ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Результат bool

OnKeyRight() защищенный Метод

Handler for Right Arrow keyboard event.
protected OnKeyRight ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Результат bool

OnKeySpace() защищенный Метод

Handler for Space keyboard event.
protected OnKeySpace ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Результат bool

OnKeyTab() защищенный Метод

Handler for Tab keyboard event.
protected OnKeyTab ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Результат bool

OnKeyUp() защищенный Метод

Handler for Up Arrow keyboard event.
protected OnKeyUp ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Результат bool

OnKeyboardFocus() защищенный Метод

Handler for gaining keyboard focus.
protected OnKeyboardFocus ( ) : void
Результат void

OnLostKeyboardFocus() защищенный Метод

Handler for losing keyboard focus.
protected OnLostKeyboardFocus ( ) : void
Результат void

OnMouseClickedLeft() защищенный Метод

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.
Результат void

OnMouseClickedRight() защищенный Метод

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.
Результат void

OnMouseDoubleClickedLeft() защищенный Метод

Handler invoked on mouse double click (left) event.
protected OnMouseDoubleClickedLeft ( int x, int y ) : void
x int X coordinate.
y int Y coordinate.
Результат void

OnMouseDoubleClickedRight() защищенный Метод

Handler invoked on mouse double click (right) event.
protected OnMouseDoubleClickedRight ( int x, int y ) : void
x int X coordinate.
y int Y coordinate.
Результат void

OnMouseEntered() защищенный Метод

Handler invoked on mouse cursor entering control's bounds.
protected OnMouseEntered ( ) : void
Результат void

OnMouseLeft() защищенный Метод

Handler invoked on mouse cursor leaving control's bounds.
protected OnMouseLeft ( ) : void
Результат void

OnMouseMoved() защищенный Метод

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.
Результат void

OnMouseWheeled() защищенный Метод

Handler invoked on mouse wheel event.
protected OnMouseWheeled ( int delta ) : bool
delta int Scroll delta.
Результат bool

OnPaste() защищенный Метод

Handler for Paste event.
protected OnPaste ( Control from ) : void
from Control Source control.
Результат void

OnScaleChanged() защищенный Метод

Handler invoked when control's scale changes.
protected OnScaleChanged ( ) : void
Результат void

OnSelectAll() защищенный Метод

Handler for Select All event.
protected OnSelectAll ( Control from ) : void
from Control Source control.
Результат void

OnSkinChanged() защищенный Метод

Handler invoked when control's skin changes.
protected OnSkinChanged ( Skins newSkin ) : void
newSkin Skins New skin.
Результат void

Position() публичный Метод

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.
Результат void

PostLayout() защищенный Метод

Function invoked after layout.
protected PostLayout ( Skins skin ) : void
skin Skins Skin to use.
Результат void

RecurseLayout() защищенный Метод

Recursively lays out the control's interior according to alignment, margin, padding, dock etc.
protected RecurseLayout ( Skins skin ) : void
skin Skins Skin to use.
Результат void

Redraw() публичный Метод

Re-renders the control, invalidates cached texture.
public Redraw ( ) : void
Результат void

RemoveChild() публичный Метод

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).
Результат void

Render() защищенный Метод

Renders the control using specified skin.
protected Render ( Skins skin ) : void
skin Skins Skin to use.
Результат void

RenderFocus() защищенный Метод

Renders the focus overlay.
protected RenderFocus ( Skins skin ) : void
skin Skins Skin to use.
Результат void

RenderOver() защищенный Метод

Renders over the actual control (overlays).
protected RenderOver ( Skins skin ) : void
skin Skins Skin to use.
Результат void

RenderRecursive() защищенный Метод

Recursive rendering logic.
protected RenderRecursive ( Skins skin, Rectangle clipRect ) : void
skin Skins Skin to use.
clipRect Rectangle Clipping rectangle.
Результат void

RenderUnder() защищенный Метод

Renders under the actual control (shadows etc).
protected RenderUnder ( Skins skin ) : void
skin Skins Skin to use.
Результат void

SendToBack() публичный Метод

Sends the control to the bottom of paren't visibility stack.
public SendToBack ( ) : void
Результат void

SetBounds() публичный Метод

Sets the control bounds.
public SetBounds ( Rectangle bounds ) : bool
bounds Rectangle New bounds.
Результат bool

SetBounds() публичный Метод

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.
Результат bool

SetBounds() публичный Метод

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.
Результат bool

SetPosition() публичный Метод

Sets the control position.
public SetPosition ( float x, float y ) : void
x float Target x coordinate.
y float Target y coordinate.
Результат void

SetPosition() публичный Метод

Sets the control position.
public SetPosition ( int x, int y ) : void
x int Target x coordinate.
y int Target y coordinate.
Результат void

SetSize() публичный Метод

Sets the control size.
public SetSize ( int width, int height ) : bool
width int New width.
height int New height.
Результат bool

SetSkin() публичный Метод

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.
Результат void

SetToolTipText() публичный Метод

Creates a tooltip for the control.
public SetToolTipText ( String text ) : void
text String Tooltip text.
Результат void

Show() публичный Метод

Shows the control.
public Show ( ) : void
Результат void

SizeToChildren() публичный Метод

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.
Результат bool

Think() публичный Метод

Called during rendering.
public Think ( ) : void
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string

Touch() публичный Метод

Control has been clicked - invoked by input system. Windows use it to propagate activation.
public Touch ( ) : void
Результат void

UpdateColors() публичный Метод

Updates control colors.
Used in composite controls like lists to differentiate row colors etc.
public UpdateColors ( ) : void
Результат void

UpdateCursor() публичный Метод

Sets mouse cursor to current cursor.
public UpdateCursor ( ) : void
Результат void

UpdateRenderBounds() защищенный Метод

Copies Bounds to RenderBounds.
protected UpdateRenderBounds ( ) : void
Результат void

Описание свойств

m_InnerPanel защищенное свойство

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
Результат Control