ImplementClass

This template generates the boilerplate needed to override GTK functions from D.

mixin template ImplementClass (
Class
)

Examples

class MyApplication : Application
{
  import gtkd.Implement;
  import gobject.c.functions : g_object_newv;

  mixin ImplementClass!GtkApplication;

  `this()`
  {
    //TODO: sort out the constructor.
    super(cast(GtkApplication*)g_object_newv(`getType()`, 0, null), true);

    setApplicationId("org.gtkd.demo.popupmenu");
    setFlags(GApplicationFlags.FLAGS_NONE);
  }

  override void `activate()`
  {
    new PopupMenuDemo(this);
  }
}