cairo.examples.gtk

Minimal GTK bindings by Steve Teale

Members

Functions

g_signal_connect_data
c_ulong g_signal_connect_data(void* instance, char* detailed_signal, void* c_handler, void* data, void* destroy_data, int connect_flags)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
gdk_cairo_create
cairo_t* gdk_cairo_create(GdkWindow* window)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
gtkRunExample
void gtkRunExample(DrawFunction draw)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_container_add
void gtk_container_add(GtkContainer* container, GtkWidget* widget)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
gtk_drawing_area_new
GtkWidget* gtk_drawing_area_new()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
gtk_init
void gtk_init(int* , char*** )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
gtk_main
void gtk_main()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
gtk_main_quit
void gtk_main_quit()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
gtk_widget_get_window
GdkWindow* gtk_widget_get_window(GtkWidget* widget)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
gtk_widget_show_all
void gtk_widget_show_all(GtkWidget* widget)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
gtk_window_new
GtkWidget* gtk_window_new(int type)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
gtk_window_set_default_size
void gtk_window_set_default_size(GtkWindow* window, int width, int height)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
gtk_window_set_position
void gtk_window_set_position(GtkWindow* window, int position)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
gtk_window_set_title
void gtk_window_set_title(GtkWindow* window, char* title)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
on_draw_event
bool on_draw_event(GtkWidget* widget, cairo_t* cr, void* user_data)
Undocumented in source. Be warned that the author may not have intended to support it.
on_draw_event
bool on_draw_event(GtkWidget* widget, void* event, void* user_data)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

GTK_WINDOW_TOPLEVEL
enum GTK_WINDOW_TOPLEVEL;
Undocumented in source.
GTK_WIN_POS_CENTER
enum GTK_WIN_POS_CENTER;
Undocumented in source.

Structs

GdkWindow
struct GdkWindow
Undocumented in source.
GtkContainer
struct GtkContainer
Undocumented in source.
GtkWidget
struct GtkWidget
Undocumented in source.
GtkWindow
struct GtkWindow
Undocumented in source.

Meta

License

Boost License 1.0

Warning: The GTK here is as simple as possible, but not useable for real world code. At least the following features are missing: * Drawing should be done to a Pixmap, then clipped onto the GTKWindow * We always draw everything! Real code should determine the area that needs to be redrawn! * Resizing support