Created
January 12, 2014 02:43
-
-
Save zedtux/8380066 to your computer and use it in GitHub Desktop.
Créer simplement une interface GTK en C++ - Mise a jour du 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> | |
class Hello : public Gtk::Window | |
{ | |
public: | |
Hello(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& refGlade); | |
virtual ~Hello(); | |
private: | |
//~ Ici on ajoute, en privé, la méthode, qui ne doit rien renvoyer, qui sera appelé | |
void on_button_quit(); | |
Glib::RefPtr m_refXmlGlade; | |
//~ Voici notre bouton GTK ! | |
Gtk::Button * m_buttonQuit; | |
}; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment