C# 클래스 Flood.GUI.Controls.Control

Base control class.
상속: IDisposable
파일 보기 프로젝트 열기: FloodProject/flood 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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