C# Class ComponentFactory.Krypton.Toolkit.ViewManager

Manages a view presentation for a control display surface.
Inheritance: GlobalId, IDisposable
Datei anzeigen Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
Attach ( Control control, ViewBase root ) : void

Attach the view manager to provided control and root element.

ComponentFromPoint ( Point pt ) : Component

Is the provided point associated with a component.

Dispose ( ) : void

Clean up any resources.

DoubleClick ( Point pt ) : void

Perform double click processing.

EvalTransparentPaint ( IRenderer renderer ) : bool

Perform a layout of the view.

GetPreferredSize ( IRenderer renderer, Size proposedSize ) : Size

Discover the preferred size of the view.

GotFocus ( ) : void

Perform got focus handling.

KeyDown ( KeyEventArgs e ) : void

Perform key down handling.

KeyPress ( KeyPressEventArgs e ) : void

Perform key press handling.

KeyUp ( KeyEventArgs e ) : void

Perform key up handling.

Layout ( IRenderer renderer ) : void

Perform a layout of the view.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the view.

LostFocus ( ) : void

Perform lost focus handling.

MouseDown ( MouseEventArgs e, Point rawPt ) : void

Perform mouse down processing.

MouseLeave ( EventArgs e ) : void

Perform mouse leave processing.

MouseMove ( MouseEventArgs e, Point rawPt ) : void

Perform mouse movement handling.

MouseUp ( MouseEventArgs e, Point rawPt ) : void

Perform mouse up processing.

Paint ( IRenderer renderer, PaintEventArgs e ) : void

Perform a paint of the view.

Paint ( RenderContext context ) : void

Perform a paint of the view.

PerformMouseDownProcessed ( MouseEventArgs e ) : void

Raises the MouseDownProcessed event.

PerformMouseUpProcessed ( MouseEventArgs e ) : void

Raises the MouseUpProcessed event.

ResetCounters ( ) : void

Reset the internal counters.

ViewManager ( ) : System

Initialize a new instance of the ViewManager class.

ViewManager ( Control control, ViewBase root ) : System

Initialize a new instance of the ViewManager class.

Protected Methods

Method Description
UpdateViewFromPoint ( Control control, Point pt ) : void

Update the active view based on the mouse position.

Method Details

Attach() public method

Attach the view manager to provided control and root element.
public Attach ( Control control, ViewBase root ) : void
control System.Windows.Forms.Control Owning control.
root ViewBase Root of the view hierarchy.
return void

ComponentFromPoint() public method

Is the provided point associated with a component.
public ComponentFromPoint ( Point pt ) : Component
pt Point Mouse point.
return System.ComponentModel.Component

Dispose() public method

Clean up any resources.
public Dispose ( ) : void
return void

DoubleClick() public method

Perform double click processing.
public DoubleClick ( Point pt ) : void
pt Point Control coordinates point.
return void

EvalTransparentPaint() public method

Perform a layout of the view.
public EvalTransparentPaint ( IRenderer renderer ) : bool
renderer IRenderer Renderer provider.
return bool

GetPreferredSize() public method

Discover the preferred size of the view.
public GetPreferredSize ( IRenderer renderer, Size proposedSize ) : Size
renderer IRenderer Renderer provider.
proposedSize System.Drawing.Size The custom-sized area for a control.
return System.Drawing.Size

GotFocus() public method

Perform got focus handling.
public GotFocus ( ) : void
return void

KeyDown() public method

Perform key down handling.
public KeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A KeyEventArgs that contains the event data.
return void

KeyPress() public method

Perform key press handling.
public KeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs A KeyPressEventArgs that contains the event data.
return void

KeyUp() public method

Perform key up handling.
public KeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A KeyEventArgs that contains the event data.
return void

Layout() public method

Perform a layout of the view.
public Layout ( IRenderer renderer ) : void
renderer IRenderer Renderer provider.
return void

Layout() public method

Perform a layout of the view.
public Layout ( ViewLayoutContext context ) : void
context ViewLayoutContext View context for layout operation.
return void

LostFocus() public method

Perform lost focus handling.
public LostFocus ( ) : void
return void

MouseDown() public method

Perform mouse down processing.
public MouseDown ( MouseEventArgs e, Point rawPt ) : void
e MouseEventArgs A MouseEventArgs that contains the event data.
rawPt Point The actual point provided from the windows message.
return void

MouseLeave() public method

Perform mouse leave processing.
public MouseLeave ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

MouseMove() public method

Perform mouse movement handling.
public MouseMove ( MouseEventArgs e, Point rawPt ) : void
e MouseEventArgs A MouseEventArgs that contains the event data.
rawPt Point The actual point provided from the windows message.
return void

MouseUp() public method

Perform mouse up processing.
public MouseUp ( MouseEventArgs e, Point rawPt ) : void
e MouseEventArgs A MouseEventArgs that contains the event data.
rawPt Point The actual point provided from the windows message.
return void

Paint() public method

Perform a paint of the view.
public Paint ( IRenderer renderer, PaintEventArgs e ) : void
renderer IRenderer Renderer provider.
e PaintEventArgs A PaintEventArgs that contains the event data.
return void

Paint() public method

Perform a paint of the view.
public Paint ( RenderContext context ) : void
context RenderContext Renderer context.
return void

PerformMouseDownProcessed() public method

Raises the MouseDownProcessed event.
public PerformMouseDownProcessed ( MouseEventArgs e ) : void
e MouseEventArgs A MouseEventArgs containing the event data.
return void

PerformMouseUpProcessed() public method

Raises the MouseUpProcessed event.
public PerformMouseUpProcessed ( MouseEventArgs e ) : void
e MouseEventArgs A MouseEventArgs containing the event data.
return void

ResetCounters() public method

Reset the internal counters.
public ResetCounters ( ) : void
return void

UpdateViewFromPoint() protected method

Update the active view based on the mouse position.
protected UpdateViewFromPoint ( Control control, Point pt ) : void
control System.Windows.Forms.Control Source control.
pt Point Point within the source control.
return void

ViewManager() public method

Initialize a new instance of the ViewManager class.
public ViewManager ( ) : System
return System

ViewManager() public method

Initialize a new instance of the ViewManager class.
public ViewManager ( Control control, ViewBase root ) : System
control System.Windows.Forms.Control Owning control.
root ViewBase Root of the view hierarchy.
return System