Skip to content

Instantly share code, notes, and snippets.

@zedtux
Created January 12, 2014 02:41
Show Gist options
  • Save zedtux/8380052 to your computer and use it in GitHub Desktop.
Save zedtux/8380052 to your computer and use it in GitHub Desktop.
Créer simplement une interface GTK en C++ - hello.h
#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