Created
January 12, 2014 02:41
-
-
Save zedtux/8380052 to your computer and use it in GitHub Desktop.
Créer simplement une interface GTK en C++ - hello.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef HELLO_H | |
#define HELLO_H | |
#include <iostream> | |
#include <gtkmm.h> | |
#include <libglademm.h> | |
//~ Déclaration de la class de notre objet Hello, héritant de Gtk::Window | |
class Hello : public Gtk::Window | |
{ | |
public: | |
//~ Ici notre constructeur un peu particulier. | |
Hello(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& refGlade); | |
virtual ~Hello(); | |
private: | |
//~ Le pointeur Glade de notre classe. Il récupérera une référence sur celui, créé dans le main.cpp | |
Glib::RefPtr<Gnome::Glade::Xml> m_refXmlGlade; | |
}; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment