C# 클래스 Eto.Forms.Control

상속: Eto.Forms.BindableWidget, IMouseInputSource, IKeyboardInputSource, ICallbackSource
파일 보기 프로젝트 열기: picoe/Eto 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Control System
TriggerLoad void
TriggerLoadComplete void
TriggerPreLoad void
TriggerUnLoad void

공개 메소드들

메소드 설명
AttachNative ( ) : void

Attaches the control for direct use in a native application

Use this to use a control directly in a native application. Note that the native application must be running the same framework as the current platform. E.g. a WinForms application can use an Eto.Forms control when using the Eto.WinForms platform. This prepares the control by firing the PreLoad, Load, etc. events.

Control ( IHandler handler ) : System

Initializes a new instance of the Container with the specified handler

Detach ( ) : void

Detaches the control by removing it from its parent

This is essentially a shortcut to myControl.Parent.Remove(myControl);

FindParent ( Type type, string id = null ) : Container

Finds a control in the parent hierarchy with the specified type and Widget.ID if specified

FindParent ( string id ) : Container

Finds a control in the parent hierarchy with the specified id

Focus ( ) : void

Attempts to set the keyboard input focus to this control, or the first child that accepts focus

Invalidate ( ) : void

Queues a repaint of the entire control on the screen

This is only useful when the control is visible.

Invalidate ( Eto.Drawing.Rectangle rect ) : void

Queues a repaint of the specified rect of the control

This is only useful when the control is visible.

MapPlatformCommand ( string systemCommand, Eto.Forms.Command command ) : void

Specifies a command to execute for a platform-specific command

Some platforms have specific system-defined commands that can be associated with a control. For example, the Mac platform's cut/copy/paste functionality is defined by the system, and if you want to hook into it, you can use this to map it to your own defined logic. The valid values of the systemCommand parameter are defined by each platform, and a list can be retrieved using Control.SupportedPlatformCommands

PointFromScreen ( Eto.Drawing.PointF point ) : Eto.Drawing.PointF

Converts a point from screen space to control space.

PointToScreen ( Eto.Drawing.PointF point ) : Eto.Drawing.PointF

Converts a point from control space to screen space

RectangleFromScreen ( Eto.Drawing.RectangleF rect ) : Eto.Drawing.RectangleF

Converts a rectangle from control space to screen space

RectangleToScreen ( Eto.Drawing.RectangleF rect ) : Eto.Drawing.RectangleF

Converts a rectangle from screen space to control space.

ResumeLayout ( ) : void

Resumes the layout after it has been suspended, and performs a layout

This can be used to optimize some platforms while adding, removing, or changing many child controls at once. Each call to ResumeLayout() must be balanced with a call to SuspendLayout before it.

SuspendLayout ( ) : void

Suspends the layout of child controls

This can be used to optimize some platforms while adding, removing, or changing many child controls at once. It disables the calculation of control positioning until ResumeLayout is called. Each call to SuspendLayout() must be balanced with a call to ResumeLayout.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Handles the disposal of this control

GetCallback ( ) : object

Gets an instance of an object used to perform callbacks to the widget from handler implementations

OnEnabledChanged ( EventArgs e ) : void

Raises the EnabledChanged event.

OnGotFocus ( EventArgs e ) : void

Raises the GotFocus event.

OnKeyDown ( Eto.Forms.KeyEventArgs e ) : void

Raises the Control.KeyDown event.

OnKeyUp ( Eto.Forms.KeyEventArgs e ) : void

Raises the Control.KeyUp event.

OnLoad ( EventArgs e ) : void

Raises the Load event.

OnLoadComplete ( EventArgs e ) : void

Raises the LoadComplete event.

OnLostFocus ( EventArgs e ) : void

Raises the LostFocus event.

OnMouseDoubleClick ( Eto.Forms.MouseEventArgs e ) : void

Raises the mouse MouseDoubleClick event.

OnMouseDown ( Eto.Forms.MouseEventArgs e ) : void

Raises the Control.MouseDown event.

To override default behaviour of the control, set MouseEventArgs.Handled property to true.

OnMouseEnter ( Eto.Forms.MouseEventArgs e ) : void

Raises the MouseEnter event.

OnMouseLeave ( Eto.Forms.MouseEventArgs e ) : void

Raises the MouseLeave event.

OnMouseMove ( Eto.Forms.MouseEventArgs e ) : void

Raises the MouseMove event.

OnMouseUp ( Eto.Forms.MouseEventArgs e ) : void

Raises the Control.MouseUp event.

OnMouseWheel ( Eto.Forms.MouseEventArgs e ) : void

Raises the MouseWheel event.

OnPreLoad ( EventArgs e ) : void

Raises the PreLoad event.

OnShown ( EventArgs e ) : void

Raises the Shown event.

OnSizeChanged ( EventArgs e ) : void

Raises the Control.SizeChanged event.

OnTextInput ( Eto.Forms.TextInputEventArgs e ) : void

Raises the TextInput event.

OnUnLoad ( EventArgs e ) : void

Raises the UnLoad event.

비공개 메소드들

메소드 설명
Control ( ) : System
TriggerLoad ( EventArgs e ) : void
TriggerLoadComplete ( EventArgs e ) : void
TriggerPreLoad ( EventArgs e ) : void
TriggerUnLoad ( EventArgs e ) : void

메소드 상세

AttachNative() 공개 메소드

Attaches the control for direct use in a native application
Use this to use a control directly in a native application. Note that the native application must be running the same framework as the current platform. E.g. a WinForms application can use an Eto.Forms control when using the Eto.WinForms platform. This prepares the control by firing the PreLoad, Load, etc. events.
public AttachNative ( ) : void
리턴 void

Control() 공개 메소드

Initializes a new instance of the Container with the specified handler
public Control ( IHandler handler ) : System
handler IHandler Pre-created handler to attach to this instance
리턴 System

Detach() 공개 메소드

Detaches the control by removing it from its parent
This is essentially a shortcut to myControl.Parent.Remove(myControl);
public Detach ( ) : void
리턴 void

Dispose() 보호된 메소드

Handles the disposal of this control
protected Dispose ( bool disposing ) : void
disposing bool True if the caller called manually, false if being called from a finalizer
리턴 void

FindParent() 공개 메소드

Finds a control in the parent hierarchy with the specified type and Widget.ID if specified
public FindParent ( Type type, string id = null ) : Container
type System.Type The type of control to find.
id string Identifier of the parent control to find, or null to find by type only.
리턴 Container

FindParent() 공개 메소드

Finds a control in the parent hierarchy with the specified id
public FindParent ( string id ) : Container
id string Identifier of the parent control to find.
리턴 Container

Focus() 공개 메소드

Attempts to set the keyboard input focus to this control, or the first child that accepts focus
public Focus ( ) : void
리턴 void

GetCallback() 보호된 메소드

Gets an instance of an object used to perform callbacks to the widget from handler implementations
protected GetCallback ( ) : object
리턴 object

Invalidate() 공개 메소드

Queues a repaint of the entire control on the screen
This is only useful when the control is visible.
public Invalidate ( ) : void
리턴 void

Invalidate() 공개 메소드

Queues a repaint of the specified rect of the control
This is only useful when the control is visible.
public Invalidate ( Eto.Drawing.Rectangle rect ) : void
rect Eto.Drawing.Rectangle Rectangle to repaint
리턴 void

MapPlatformCommand() 공개 메소드

Specifies a command to execute for a platform-specific command
Some platforms have specific system-defined commands that can be associated with a control. For example, the Mac platform's cut/copy/paste functionality is defined by the system, and if you want to hook into it, you can use this to map it to your own defined logic. The valid values of the systemCommand parameter are defined by each platform, and a list can be retrieved using Control.SupportedPlatformCommands
public MapPlatformCommand ( string systemCommand, Eto.Forms.Command command ) : void
systemCommand string System command
command Eto.Forms.Command Command to execute, or null to restore to the default behavior
리턴 void

OnEnabledChanged() 보호된 메소드

Raises the EnabledChanged event.
protected OnEnabledChanged ( EventArgs e ) : void
e System.EventArgs Event arguments
리턴 void

OnGotFocus() 보호된 메소드

Raises the GotFocus event.
protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs Event arguments
리턴 void

OnKeyDown() 보호된 메소드

Raises the Control.KeyDown event.
protected OnKeyDown ( Eto.Forms.KeyEventArgs e ) : void
e Eto.Forms.KeyEventArgs Key event arguments
리턴 void

OnKeyUp() 보호된 메소드

Raises the Control.KeyUp event.
protected OnKeyUp ( Eto.Forms.KeyEventArgs e ) : void
e Eto.Forms.KeyEventArgs Key event arguments
리턴 void

OnLoad() 보호된 메소드

Raises the Load event.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs Event arguments
리턴 void

OnLoadComplete() 보호된 메소드

Raises the LoadComplete event.
protected OnLoadComplete ( EventArgs e ) : void
e System.EventArgs Event arguments
리턴 void

OnLostFocus() 보호된 메소드

Raises the LostFocus event.
protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs Event arguments
리턴 void

OnMouseDoubleClick() 보호된 메소드

Raises the mouse MouseDoubleClick event.
protected OnMouseDoubleClick ( Eto.Forms.MouseEventArgs e ) : void
e Eto.Forms.MouseEventArgs Mouse event arguments
리턴 void

OnMouseDown() 보호된 메소드

Raises the Control.MouseDown event.
To override default behaviour of the control, set MouseEventArgs.Handled property to true.
protected OnMouseDown ( Eto.Forms.MouseEventArgs e ) : void
e Eto.Forms.MouseEventArgs Event arguments
리턴 void

OnMouseEnter() 보호된 메소드

Raises the MouseEnter event.
protected OnMouseEnter ( Eto.Forms.MouseEventArgs e ) : void
e Eto.Forms.MouseEventArgs Mouse event arguments
리턴 void

OnMouseLeave() 보호된 메소드

Raises the MouseLeave event.
protected OnMouseLeave ( Eto.Forms.MouseEventArgs e ) : void
e Eto.Forms.MouseEventArgs Mouse event arguments
리턴 void

OnMouseMove() 보호된 메소드

Raises the MouseMove event.
protected OnMouseMove ( Eto.Forms.MouseEventArgs e ) : void
e Eto.Forms.MouseEventArgs Mouse event args
리턴 void

OnMouseUp() 보호된 메소드

Raises the Control.MouseUp event.
protected OnMouseUp ( Eto.Forms.MouseEventArgs e ) : void
e Eto.Forms.MouseEventArgs Event arguments
리턴 void

OnMouseWheel() 보호된 메소드

Raises the MouseWheel event.
protected OnMouseWheel ( Eto.Forms.MouseEventArgs e ) : void
e Eto.Forms.MouseEventArgs Event arguments
리턴 void

OnPreLoad() 보호된 메소드

Raises the PreLoad event.
protected OnPreLoad ( EventArgs e ) : void
e System.EventArgs Event arguments
리턴 void

OnShown() 보호된 메소드

Raises the Shown event.
protected OnShown ( EventArgs e ) : void
e System.EventArgs Event arguments
리턴 void

OnSizeChanged() 보호된 메소드

Raises the Control.SizeChanged event.
protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs Event arguments
리턴 void

OnTextInput() 보호된 메소드

Raises the TextInput event.
protected OnTextInput ( Eto.Forms.TextInputEventArgs e ) : void
e Eto.Forms.TextInputEventArgs Event arguments
리턴 void

OnUnLoad() 보호된 메소드

Raises the UnLoad event.
protected OnUnLoad ( EventArgs e ) : void
e System.EventArgs Event arguments
리턴 void

PointFromScreen() 공개 메소드

Converts a point from screen space to control space.
public PointFromScreen ( Eto.Drawing.PointF point ) : Eto.Drawing.PointF
point Eto.Drawing.PointF Point in screen space
리턴 Eto.Drawing.PointF

PointToScreen() 공개 메소드

Converts a point from control space to screen space
public PointToScreen ( Eto.Drawing.PointF point ) : Eto.Drawing.PointF
point Eto.Drawing.PointF Point in control space
리턴 Eto.Drawing.PointF

RectangleFromScreen() 공개 메소드

Converts a rectangle from control space to screen space
public RectangleFromScreen ( Eto.Drawing.RectangleF rect ) : Eto.Drawing.RectangleF
rect Eto.Drawing.RectangleF Rectangle in control space
리턴 Eto.Drawing.RectangleF

RectangleToScreen() 공개 메소드

Converts a rectangle from screen space to control space.
public RectangleToScreen ( Eto.Drawing.RectangleF rect ) : Eto.Drawing.RectangleF
rect Eto.Drawing.RectangleF Rectangle in screen space
리턴 Eto.Drawing.RectangleF

ResumeLayout() 공개 메소드

Resumes the layout after it has been suspended, and performs a layout
This can be used to optimize some platforms while adding, removing, or changing many child controls at once. Each call to ResumeLayout() must be balanced with a call to SuspendLayout before it.
public ResumeLayout ( ) : void
리턴 void

SuspendLayout() 공개 메소드

Suspends the layout of child controls
This can be used to optimize some platforms while adding, removing, or changing many child controls at once. It disables the calculation of control positioning until ResumeLayout is called. Each call to SuspendLayout() must be balanced with a call to ResumeLayout.
public SuspendLayout ( ) : void
리턴 void