gtkui 0.1.1

Aux library for writing GTK-interface program


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

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

Authors:
  • Oleg Butko (deviator)
Dependencies:
gtk-d:gtkd
Versions:
0.1.1 2018-Aug-20
0.1.0 2017-Oct-22
~master 2018-Sep-06
Show all 3 versions
Download Stats:
  • 0 downloads today

  • 1 downloads this week

  • 20 downloads this month

  • 67 downloads total

Score:
0.7
Short URL:
gtkui.dub.pm