Skip to content

Commit

Permalink
exposing window handle
Browse files Browse the repository at this point in the history
  • Loading branch information
zaafar committed May 16, 2024
1 parent dc2ad58 commit 38cb89f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion ClickableTransparentOverlay/Overlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ public abstract class Overlay : IDisposable
private readonly int initialWindowHeight;

private WNDCLASSEX wndClass;
private Win32Window window;

/// <summary>
/// Do not assume this class is initialized.
/// Consider using this variable only in <see cref="PostInitialized"/> or <see cref="Render"/> function.
/// </summary>
public Win32Window window;
private ID3D11Device device;
private ID3D11DeviceContext deviceContext;
private IDXGISwapChain swapChain;
Expand Down
2 changes: 1 addition & 1 deletion ClickableTransparentOverlay/Win32Window.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System;
using System.Drawing;

internal sealed class Win32Window : IDisposable
public sealed class Win32Window : IDisposable
{
public IntPtr Handle;
public Rectangle Dimensions;
Expand Down

0 comments on commit 38cb89f

Please sign in to comment.