How to use GTK+ with ada

Deadly 提交于 2019-12-31 02:37:06

问题


Anyone can show me some examples, simple, how to use GTK with Ada?
examples, like: 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...


回答1:


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


来源:https://stackoverflow.com/questions/6755110/how-to-use-gtk-with-ada

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!