Skip to content
aux lib for using with glade ui builder
D
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
source/gtkui
.gitignore
LICENSE
README.md
dub.sdl

README.md

Gtk UI aux library for using with UI Builder Glade

import gtk.Button;
import gtk.Window;
import gtkui;

void main()
{
    auto ui = new UI;
    ui.addOnQuit({ ui.exitLoop(); });
    ui.runLoop();
}

class UI : MainBuilderUI
{
    mixin GtkUIHelper;

    @gtkwidget Window mwindow;
    @gtkwidget Button addbtn;

    this()
    {
        super(import("main.glade"));
        addbtn.addOnClicked((b) { /+ do something +/ });
        setupMainWindow(mwindow);
    }
}

For more information see small (100 lines with comments) example

You can’t perform that action at this time.