Home > Programming > C Programming Language
GTK+ GUI programming
Sort Desciption:GTK+ GUI programming. Ori Idan. Helicon technologies ... Officialy supported languages: C++ Java Perl. . Other languages supported: PHP Python Ruby ...
Content Inside:GTK+GUIprogrammingPage 1GTK+GUIprogrammingOriIdanHelicontechnolog iesPage 2Whatisit?●GUIlibrarywritteninCwithb indingsformanyotherlanguages●LGPLLic ense●PartoftheGNUproject●Initi allydevelopedforandusedbytheGIMP●Use dtodayasthebasisofGNOME●Portingstoot heroperatingsystemsincludingMSWindowsPage 3Languagebindings●Languagebindingsen ableyoutowriteGTK+programsusinglanguagesot herthenC.●GTK+waswrittenwithlanguage bindingsinmindfromtheverybeginning●O fficialysupportedlanguages:C++JavaPerl` 79;Otherlanguagessupported:PHPPythonRubyTC LEifelC#ADALispandmanyothers.Page 4Architectureandcomponents●Fullyobje ctorientedalthoughwritteninC.●Usescl assesandcallbackfunctionsimplementedasstru cturesandpointerstofunctions●Contain sthefollowinglibraries:–Glib–l owlevelcorelibraryfunctionsprovidingeventl oopthreadsdynamicloadingobjectsystemstring andlistmanipulationetc.–Pango– LayoutandrenderingoftextwithemphasisonI18N –ATK–Accessibilitytoolkitsuppo rtingscreenreadersandalternativeinputdevic es.Page 5Showmethecode...int main(int argc char *argv]) {GtkWidget *window *button;/* initialize library and parse command line arguments */gtk_init(&argc &argv);window = gtk_window_new(GTK_WINDOW_TOPLEVEL);g_sign al_connect(G_OBJECT(window)"delete_ev ent"G_CALLBACK(delete_event) NULL);g_signal_connect(G_OBJECT(window) "destroy"G_CALLBACK(destroy) NULL);gtk_container_set_border_width(GTK_C ONTAINER(window) 10);button = gtk_button_new_with_label("Hello world");gtk_container_add (GTK_CONTAINER (window) button);gtk_widget_show(button);gtk_widget _show(window);gtk_main();return 0;}Page 6Showmethecode...gboolean delete_event(GtkWidget *widget GdkEvent *event gpointer data) {printf("delete event occured ");return FALSE;}void destroy(GtkWidget *widget GdkEvent *event gpointer data) {gtk_main_quit();}Page 7HowtocompileUsethepkgconfigutilitygccohel lohello.cpkgconfigcflagslibsgtk ...
Source: www.helicontech.co.il
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Related Files
Programming in C C++ Java
Filed under: Programming and C Programming LanguageProgramming in C C++ Java. Course Overview. Object oriented programming languages are widely used for the development of complex software systems. ...
C Programming
Filed under: Programming and C Programming LanguageThe C Programming Language ANSI C. By Brian W. C. Kernighan & Dennis M. Ritchie. K and R. "Practical C programming". By Steve ...
An Overview of the C++ Programming Language
Filed under: Programming and C Programming LanguageThe C++ programming language provides a model of memory and computation that ... 3 The C Programming Model presents the C subset of C++ and other C++ ...
C Programming Fundamentals
Filed under: Programming and C Programming Language1 C Programming Fundamentals C is a compiled language. The user creates source code (often ... exe extension). Below is typical C program called LED.C that illustrates some fundamental C ...
Essential C
Filed under: Programming and C Programming LanguageC Programming Language (below) as part of their research at AT&T. Unix and C++ ... The C Programming Language 2nd ed. by Kernighan and Ritchie. ...
