C# Class ComponentFactory.Krypton.Toolkit.ViewManager

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

Méthodes publiques

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

Méthodes protégées

Méthode Description
UpdateViewFromPoint ( Control control, Point pt ) : void

Update the active view based on the mouse position.

Method Details

Attach() public méthode

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

ComponentFromPoint() public méthode

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

Dispose() public méthode

Clean up any resources.
public Dispose ( ) : void
Résultat void

DoubleClick() public méthode

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

EvalTransparentPaint() public méthode

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

GetPreferredSize() public méthode

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.
Résultat System.Drawing.Size

GotFocus() public méthode

Perform got focus handling.
public GotFocus ( ) : void
Résultat void

KeyDown() public méthode

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

KeyPress() public méthode

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

KeyUp() public méthode

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

Layout() public méthode

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

Layout() public méthode

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

LostFocus() public méthode

Perform lost focus handling.
public LostFocus ( ) : void
Résultat void

MouseDown() public méthode

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

MouseLeave() public méthode

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

MouseMove() public méthode

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

MouseUp() public méthode

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

Paint() public méthode

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

Paint() public méthode

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

PerformMouseDownProcessed() public méthode

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

PerformMouseUpProcessed() public méthode

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

ResetCounters() public méthode

Reset the internal counters.
public ResetCounters ( ) : void
Résultat void

UpdateViewFromPoint() protected méthode

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

ViewManager() public méthode

Initialize a new instance of the ViewManager class.
public ViewManager ( ) : System
Résultat System

ViewManager() public méthode

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