gtkui 0.4.0

Aux library for writing GTK-interface program


To use this package, run the following command in your project's root directory:

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 GtkBuilderHelper;

    @gtkwidget Window mwindow;
    @gtkwidget Button addbtn;

    @gtksignal void someAction()
    {
        /+ do something +/
    }

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

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

Limitations in signal usage
  1. Signals in glade file should not contain User data, otherwise this will crash program.

  2. Signal methods in builder should not receive parameters.

Authors:
  • Oleg Butko (deviator)
Dependencies:
gtk-d:gtkd
Versions:
0.5.0 2020-Feb-11
0.4.0 2020-Feb-11
0.3.0 2019-May-31
0.2.0 2019-May-31
0.1.1 2018-Aug-20
Show all 7 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 1 downloads this month

  • 145 downloads total

Score:
0.8
Short URL:
gtkui.dub.pm