wmesci / NativeWindow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NativeWindow

Create and manipulate Native Window in a unified way on both Windows and Mac systems.

CMake on multiple platforms

#include "Window.h"
#include "Application.h"

using namespace tk;

class TestWindow : public Window
{
public:
    virtual bool Create() override
    {
        return CreateImpl(nullptr, "Title", {100, 100, 960, 640});
    }
};

int main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[])
{
    Application app;

    TestWindow win;
    win.Create();
    win.SetTopMost(true);
    win.MoveToCenter();
    app.Run(&win);

    return 0;
}

About


Languages

Language:C++ 58.1%Language:Objective-C++ 40.7%Language:CMake 1.2%