C# Class CK.WindowManager.WindowManager

Inheritance: IWindowManager, IPlugin
Exibir arquivo Open project: Invenietis/ck-certified Class Usage Examples

Private Properties

Property Type Description
DispatchWhenRequired void
OnWindowGotFocusInternal void
OnWindowLocationChangedInternal void
OnWindowMinimizedInternal void
OnWindowRestoredInternal void
OnWindowSizeChangedInternal void

Public Methods

Method Description
GetByName ( string name ) : IWindowElement
GetClientArea ( IWindowElement e ) : Rect
MinimizeAllWindows ( ) : void
Move ( IWindowElement window, double top, double left ) : IManualInteractionResult
Register ( IWindowElement windowElement ) : void
Resize ( IWindowElement window, double width, double height ) : IManualInteractionResult
RestoreAllWindows ( ) : void
Setup ( CK.Plugin.IPluginSetupInfo info ) : bool
Start ( ) : void
Stop ( ) : void
Teardown ( ) : void
ToggleHostMinimized ( ) : void
Unregister ( IWindowElement windowElement ) : void

Protected Methods

Method Description
OnWindowGotFocus ( object sender, EventArgs e ) : void
OnWindowLocationChanged ( object sender, EventArgs e ) : void

This function is called by a function that bypasses the window system event. Warning : do not call a function that is called when a WindowMoved event that leading to a call MoveResult.Broadcast

OnWindowMinimized ( object sender, EventArgs e ) : void
OnWindowRestored ( object sender, EventArgs e ) : void
OnWindowSizeChanged ( object sender, EventArgs e ) : void

Private Methods

Method Description
DispatchWhenRequired ( System.Action a ) : void
OnWindowGotFocusInternal ( object sender, EventArgs e ) : void
OnWindowLocationChangedInternal ( object sender, EventArgs e ) : void
OnWindowMinimizedInternal ( object sender, EventArgs e ) : void
OnWindowRestoredInternal ( object sender, EventArgs e ) : void
OnWindowSizeChangedInternal ( object sender, EventArgs e ) : void

Method Details

GetByName() public method

public GetByName ( string name ) : IWindowElement
name string
return IWindowElement

GetClientArea() public method

public GetClientArea ( IWindowElement e ) : Rect
e IWindowElement
return System.Windows.Rect

MinimizeAllWindows() public method

public MinimizeAllWindows ( ) : void
return void

Move() public method

public Move ( IWindowElement window, double top, double left ) : IManualInteractionResult
window IWindowElement
top double
left double
return IManualInteractionResult

OnWindowGotFocus() protected method

protected OnWindowGotFocus ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnWindowLocationChanged() protected method

This function is called by a function that bypasses the window system event. Warning : do not call a function that is called when a WindowMoved event that leading to a call MoveResult.Broadcast
protected OnWindowLocationChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnWindowMinimized() protected method

protected OnWindowMinimized ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnWindowRestored() protected method

protected OnWindowRestored ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnWindowSizeChanged() protected method

protected OnWindowSizeChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Register() public method

public Register ( IWindowElement windowElement ) : void
windowElement IWindowElement
return void

Resize() public method

public Resize ( IWindowElement window, double width, double height ) : IManualInteractionResult
window IWindowElement
width double
height double
return IManualInteractionResult

RestoreAllWindows() public method

public RestoreAllWindows ( ) : void
return void

Setup() public method

public Setup ( CK.Plugin.IPluginSetupInfo info ) : bool
info CK.Plugin.IPluginSetupInfo
return bool

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

Teardown() public method

public Teardown ( ) : void
return void

ToggleHostMinimized() public method

public ToggleHostMinimized ( ) : void
return void

Unregister() public method

public Unregister ( IWindowElement windowElement ) : void
windowElement IWindowElement
return void