Getting Started with EasyWinGui

Welcome to EasyWinGui — a simple header-only gui library for c++ ---windows only.

Supported Platforms: Windows
Minimum Requirement: C++11 Compiler
github repo

Installation

include the include/easywingui.h directory.

Create Your First Window

Use the EasyWinGui class to quickly create a main window.

#include <easywingui.h>
using namespace easywingui;easyw app;
int main() {
app.creatw(L"title",1920,1200);
app.loopAndStopProcessing(); /* or while(1){app.runMessage(a-no-parameter-void);Sleep(1);}*/
}

Create Button

Use button() to create a button widget.

int main() {
app.creatw(L"title",1920,1200);
app.button(L"textinbutton",1500,500,100,100,a-no-parameter-void); app.loopAndStopProcessing(); /* or while(1){app.runMessage(nullptr);Sleep(1);}*/
}

Create InputBox

Use inutbox() to create a inputbox widget.

int main() {
app.creatw(L"title",1920,1200);
app.inputbox("id of inputbox",500,300,100,100,a-no-parameter-void);
app.loopAndStopProcessing(); /* or while(1){app.runMessage(nullptr);Sleep(1);}*/
}

Create Label

Use label() to create a label widget.

int main() {
app.creatw(L"title",1920,1200);
app.label("id1",L"left",100,100,100,30,"left");
app.label("id2",L"center",100,200,100,30,"center");
app.label("id3",L"right",100,300,100,30,"right");
app.loopAndStopProcessing(); /* or while(1){app.runMessage(nullptr);Sleep(1);}*/
}

Create Checkbox

Use checkbox() to create a checkbox widget.

int main() {
app.creatw(L"title",1920,1200);
c.checkbox(L"checkbox",200,200,100,30,a-no-parameter-void);
app.loopAndStopProcessing(); /* or while(1){app.runMessage(nullptr);Sleep(1);}*/
}

Release Widgets

Use release() to delete and release all resources of widget.

int main() {
app.creatw(L"title",1920,1200);
app.label("id2",L"center",100,200,100,30,"center");
app.release(); //release all widgets
app.loopAndStopProcessing(); /* or while(1){app.runMessage(nullptr);Sleep(1);}*/
}