Presentation is loading. Please wait.

Presentation is loading. Please wait.

Overview GUI Programming with GTK+ and GLADE 장정철.

Similar presentations


Presentation on theme: "Overview GUI Programming with GTK+ and GLADE 장정철."— Presentation transcript:

1 Overview GUI Programming with GTK+ and GLADE 장정철

2 Overview – GTK+ The GIMP ToolKit the GNU LGPL 2.1 Base of GTK+ GLIB low-level core library – basis of GTK+ data structure, portability, event loop, thread, dynamic loading, object Pango Layout and rendering of text text and font handling Cairo 2D graphics with support for multiple output devices ATK Set of interface providing accessibility

3 Overview - GLADE User Interface Designer for GTK+ and GNOME the GNU GPL saved as XML Generating C sources using libglade, loaded by applications dynamically Glade-3 is a complete rewrite Useful new features Undo / Redo Multiple project supportand

4 Environment - linux

5

6 Sample – Linux

7 Environment – Win32

8

9 Sample – Win32

10 UI Design - GLADE

11

12 UI Dynamic Loading - libglade Simple usage 1.Include header file libglade.h 2.UI XML file open with function glade_xml_new 3.get widget from XML with function glade_xml_get_widget 4.Connect signal of loaded widget 5.Linking with libglade #include sp_main_xml = glade_xml_new( UI_XML_FILE, NULL, NULL ); sp_window = glade_xml_get_widget( sp_main_xml, "window_bm104" ); g_signal_connect( G_OBJECT( sp_window ), "delete_event", G_CALLBACK( on_window_exit ), NULL ); # gcc –o bm104 bm104.c ucs-utils.c ucs-cell-renderer.c `pkg-config –cflags – libs gtk+-2.0 libglade-2.0`

13 Languages not only support C gtkmm for C++ java-gnome for JAVA PyGTK for Python gtk2-perl for Perl RGtk2 for R lua-gtk for Lua gtkd for D tGtk for Harbour(xHarbour)

14 Sample - gengdic

15 Sample – t-gtk with xHarbour


Download ppt "Overview GUI Programming with GTK+ and GLADE 장정철."

Similar presentations


Ads by Google