开发者

How to use GTK+ with ada

Anyone can show me some examples, simple, how to use GTK with Ada?

examples, like: 开发者_JS百科How to use Glade with Ada, create an simple window....

an simple window, like this:

#include <gtk/gtk.h>

int main(int argc, char *argv[] )
{
    GtkWidget *window;

    gtk_init (&argc, &argv);

    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    gtk_widget_show  (window);

    gtk_main ();

    return 0;
}

And, It's possible to use GtkMM, with ada ?

Thanks...


A few of my favorite GtkAda programs:

  • Animation demo
  • Linxtris
  • Mine Detector

Also, don't overlook the examples and testgtk folders of GtkAda itself.

Additional resources:

  • GTK+ API Documentation
  • Rosetta Code Category: Ada
  • Glade
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜