Win32.NativeWindow 1.1.0

dotnet add package Win32.NativeWindow --version 1.1.0                
NuGet\Install-Package Win32.NativeWindow -Version 1.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Win32.NativeWindow" Version="1.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Win32.NativeWindow --version 1.1.0                
#r "nuget: Win32.NativeWindow, 1.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Win32.NativeWindow as a Cake Addin
#addin nuget:?package=Win32.NativeWindow&version=1.1.0

// Install Win32.NativeWindow as a Cake Tool
#tool nuget:?package=Win32.NativeWindow&version=1.1.0                

Win32 native window system for C#

A native win32 windowing system for Windows. Targeted for use in DirectX applications.

Usage Examples

Namespaces

Using

using NativeWindow.Windowing;
using NativeWindow.Windowing.Events;
internal class Program(WindowSettings gws) : Window(gws)
{
    protected override void OnUpdateFrame(FrameEventArgs eventArgs)
    {
        base.OnUpdateFrame(eventArgs);
    }

    protected override void OnResize(ResizeEventArgs eventArgs)
    {
        base.OnResize(eventArgs);
    }

    protected override void OnKeyboardKeyDown(KeyboardKeyEventArgs eventArgs)
    {
        base.OnKeyboardKeyDown(eventArgs);

    }
    // protected override void On...

    static void Main(string[] args)
    {
        using var window = new Program(new WindowSettings()
        {
            Border = WindowBorder.Resizable,
            Position = Point.Empty,
            Size = new Size(800, 600),
            State = WindowState.Normal,
            CursorMode = CursorMode.Normal,
            Title = "Test",
            UpdateFrequency = null,
            Icon = WindowResourcePtr.LoadIcon("Content\\win.ico"),
        });

        window.Run();
    }
}
License
Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 155 4/17/2024
1.0.0 128 3/20/2024