C# Class NewTOAPIA.UI.User32WindowWrapper

Class: User32WindowWrapper This class is meant to wrap a User32.dll based window. It primarily makes it easy to access various attributes of an existing window. It does not provide access to creating the window in the first place.
Inheritance: IPlatformWindow, IMoveable
Show file Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Methods

Method Description
CaptureMouse ( ) : void
Destroy ( ) : void
GetTopLevelWindow ( string className, string windowName ) : User32WindowWrapper
Hide ( ) : void
Invalidate ( ) : void

Invalidate the entire client area.

Invalidate ( RectangleI rect ) : void
MoveBy ( int dx, int dy ) : void

Move the window by a specied amount.

MoveTo ( int x, int y ) : void

Move the window to a specific location.

ReleaseMouse ( ) : void
ResizeBy ( int dw, int dh ) : void
ResizeTo ( int width, int height ) : void
Run ( ) : void

SetTitle ( string title ) : void
SetWindowAlpha ( byte alpha ) : bool
SetWindowRegion ( GDIRegion aRegion ) : void
Show ( ) : void
StartTimer ( uint millis ) : void
StopTimer ( ) : void
User32WindowWrapper ( IntPtr hWnd ) : System
Validate ( ) : void

Method Details

CaptureMouse() public method

public CaptureMouse ( ) : void
return void

Destroy() public method

public Destroy ( ) : void
return void

GetTopLevelWindow() public static method

public static GetTopLevelWindow ( string className, string windowName ) : User32WindowWrapper
className string
windowName string
return User32WindowWrapper

Hide() public method

public Hide ( ) : void
return void

Invalidate() public method

Invalidate the entire client area.
public Invalidate ( ) : void
return void

Invalidate() public method

public Invalidate ( RectangleI rect ) : void
rect RectangleI
return void

MoveBy() public method

Move the window by a specied amount.
public MoveBy ( int dx, int dy ) : void
dx int The distance to move in the x-axis.
dy int The number of pixels to move in the y-axis.
return void

MoveTo() public method

Move the window to a specific location.
public MoveTo ( int x, int y ) : void
x int The X coordinate of the window frame's upper left corner.
y int The Y coordinate of the window frame's upper left corner.
return void

ReleaseMouse() public method

public ReleaseMouse ( ) : void
return void

ResizeBy() public method

public ResizeBy ( int dw, int dh ) : void
dw int
dh int
return void

ResizeTo() public method

public ResizeTo ( int width, int height ) : void
width int
height int
return void

Run() public method

public Run ( ) : void
return void

SetTitle() public method

public SetTitle ( string title ) : void
title string
return void

SetWindowAlpha() public method

public SetWindowAlpha ( byte alpha ) : bool
alpha byte
return bool

SetWindowRegion() public method

public SetWindowRegion ( GDIRegion aRegion ) : void
aRegion GDIRegion
return void

Show() public method

public Show ( ) : void
return void

StartTimer() public method

public StartTimer ( uint millis ) : void
millis uint
return void

StopTimer() public method

public StopTimer ( ) : void
return void

User32WindowWrapper() public method

public User32WindowWrapper ( IntPtr hWnd ) : System
hWnd System.IntPtr
return System

Validate() public method

public Validate ( ) : void
return void