Class StickyWindow
Represents a StickyWindow which uses a GraphicsWindow sticks to a parent window.
Implements
Inherited Members
Namespace: GameOverlay.Windows
Assembly: GameOverlay.dll
Syntax
public class StickyWindow : GraphicsWindow, IDisposable
Constructors
| Improve this Doc View SourceStickyWindow()
Initializes a new StickyWindow with a default window position and size.
Declaration
public StickyWindow()
StickyWindow(Int32, Int32, Int32, Int32)
Initializes a new StickyWindow with the given window position and size.
Declaration
public StickyWindow(int x, int y, int width, int height)
Parameters
Type | Name | Description |
---|---|---|
Int32 | x | The position of the window on the X-Axis of the desktop. |
Int32 | y | The position of the window on the Y-Axis of the desktop. |
Int32 | width | The width of the window. |
Int32 | height | The height of the window. |
StickyWindow(Int32, Int32, Int32, Int32, IntPtr, Graphics)
Initializes a new StickyWindow with the given window position and size and the window handle of the parent window.
Declaration
public StickyWindow(int x, int y, int width, int height, IntPtr parentWindow, Graphics device = null)
Parameters
Type | Name | Description |
---|---|---|
Int32 | x | The position of the window on the X-Axis of the desktop. |
Int32 | y | The position of the window on the Y-Axis of the desktop. |
Int32 | width | The width of the window. |
Int32 | height | The height of the window. |
IntPtr | parentWindow | An IntPtr representing the parent windows handle. |
Graphics | device | Optionally specify a Graphics device to use. |
StickyWindow(IntPtr, Graphics)
Initializes a new StickyWindow with the ability to stick to a parent window.
Declaration
public StickyWindow(IntPtr parentWindow, Graphics device = null)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | parentWindow | An IntPtr representing the parent windows handle. |
Graphics | device | Optionally specify a Graphics device to use. |
Properties
| Improve this Doc View SourceAttachToClientArea
Gets or sets a Boolean which indicates wether to stick to the parents client area.
Declaration
public bool AttachToClientArea { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
BypassTopmost
Gets or sets a Boolean which indicates wether to bypass the need of the windows Topmost flag.
Declaration
public bool BypassTopmost { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
ParentWindowHandle
Gets or Sets an IntPtr which is used to identify the parent window.
Declaration
public IntPtr ParentWindowHandle { get; set; }
Property Value
Type | Description |
---|---|
IntPtr |
Methods
| Improve this Doc View SourceOnDrawGraphics(Int32, Int64, Int64)
Gets called when the timer thread needs to render a new Scene / frame.
Declaration
protected override void OnDrawGraphics(int frameCount, long frameTime, long deltaTime)
Parameters
Type | Name | Description |
---|---|---|
Int32 | frameCount | |
Int64 | frameTime | |
Int64 | deltaTime |