|
void | fixup_controlparameters (gx_engine::GxMachineBase &machine, sigc::signal< void(bool)> *out_ctr) |
|
template<class T_Widget > |
void | find_widget (const Glib::ustring &name, T_Widget *&widget) |
|
template<class T_Object > |
void | find_object (const Glib::ustring &name, T_Object *&object) |
|
template<class T_Widget , class F > |
void | find_widget_derived (const Glib::ustring &name, T_Widget *&widget, F f) |
|
bool | has_object (const Glib::ustring &name) |
|
template<class T_Widget > |
void | get_toplevel (const Glib::ustring &name, T_Widget *&widget) |
|
Gtk::Window * | get_first_window () |
|
template<class T_Widget , class F > |
void | get_toplevel_derived (const Glib::ustring &name, T_Widget *&widget, F f) |
|
|
static Glib::RefPtr< GxBuilder > | create () |
|
static Glib::RefPtr< GxBuilder > | create_from_file (const std::string &filename, gx_engine::GxMachineBase *pmach=0, const char *object_id=0, sigc::signal< void(bool)> *out_ctr=0) |
|
static Glib::RefPtr< GxBuilder > | create_from_file (const std::string &filename, gx_engine::GxMachineBase *pmach, const Glib::StringArrayHandle &object_ids, sigc::signal< void(bool)> *out_ctr=0) |
|
static Glib::RefPtr< GxBuilder > | create_from_string (const Glib::ustring &buffer, gx_engine::GxMachineBase *pmach=0, const char *object_id=0, sigc::signal< void(bool)> *out_ctr=0) |
|
static Glib::RefPtr< GxBuilder > | create_from_string (const Glib::ustring &buffer, gx_engine::GxMachineBase *pmach, const Glib::StringArrayHandle &object_ids, sigc::signal< void(bool)> *out_ctr=0) |
|
static bool | get_show_tooltips () |
|
static void | set_show_tooltips (bool v) |
|
static void | connect_gx_tooltip_handler (GtkWidget *widget) |
|
static void | set_tooltip_text_connect_handler (GtkWidget *widget, const char *text) |
|
static void | set_tooltip_text_connect_handler (Gtk::Widget &widget, const char *text) |
|
static void | set_tooltip_text_connect_handler (Gtk::Widget &widget, const Glib::ustring &text) |
|
class GxBuilder
Attempts to correct the mismatch between GtkBuilder and Gtk::Builder wrt. reference counting.
Use get_toplevel or get_toplevel_derived to become the owner of a toplevel widget of the loaded builder widget tree (specifying object id's for the loader means that only part of the defined widget tree is loaded). These pointers must be delete'd to destroy the widget (and its child widgets). If you loaded a window (GtkWindow or derived) you must use one of the get_toplevel functions and delete the instance to avoid a memory leak.
Use find_widget for getting a pointer to a widget (but you don't become owner of that widget, don't use delete). If you want to add the loaded widget tree to a container, use this function (the container will ref the widget and manage its lifetime).
template function code mostly copied from Gtk::Builder, look there for comments.
Definition at line 72 of file gx_ui_builder.h.