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
Afficher le fichier Open project: Wiladams/NewTOAPIA Class Usage Examples

Méthodes publiques

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

public CaptureMouse ( ) : void
Résultat void

Destroy() public méthode

public Destroy ( ) : void
Résultat void

GetTopLevelWindow() public static méthode

public static GetTopLevelWindow ( string className, string windowName ) : User32WindowWrapper
className string
windowName string
Résultat User32WindowWrapper

Hide() public méthode

public Hide ( ) : void
Résultat void

Invalidate() public méthode

Invalidate the entire client area.
public Invalidate ( ) : void
Résultat void

Invalidate() public méthode

public Invalidate ( RectangleI rect ) : void
rect RectangleI
Résultat void

MoveBy() public méthode

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

MoveTo() public méthode

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

ReleaseMouse() public méthode

public ReleaseMouse ( ) : void
Résultat void

ResizeBy() public méthode

public ResizeBy ( int dw, int dh ) : void
dw int
dh int
Résultat void

ResizeTo() public méthode

public ResizeTo ( int width, int height ) : void
width int
height int
Résultat void

Run() public méthode

public Run ( ) : void
Résultat void

SetTitle() public méthode

public SetTitle ( string title ) : void
title string
Résultat void

SetWindowAlpha() public méthode

public SetWindowAlpha ( byte alpha ) : bool
alpha byte
Résultat bool

SetWindowRegion() public méthode

public SetWindowRegion ( GDIRegion aRegion ) : void
aRegion GDIRegion
Résultat void

Show() public méthode

public Show ( ) : void
Résultat void

StartTimer() public méthode

public StartTimer ( uint millis ) : void
millis uint
Résultat void

StopTimer() public méthode

public StopTimer ( ) : void
Résultat void

User32WindowWrapper() public méthode

public User32WindowWrapper ( IntPtr hWnd ) : System
hWnd System.IntPtr
Résultat System

Validate() public méthode

public Validate ( ) : void
Résultat void