Top | ![]() |
![]() |
![]() |
![]() |
BtUIResources * | bt_ui_resources_new () |
void | bt_ui_resources_init_theme () |
GdkPixbuf * | bt_ui_resources_get_icon_pixbuf_by_machine () |
GdkPixbuf * | bt_ui_resources_get_machine_graphics_pixbuf_by_machine () |
GdkPixbuf * | bt_ui_resources_get_wire_graphics_pixbuf_by_wire () |
GtkWidget * | bt_ui_resources_get_icon_image_by_machine () |
GtkWidget * | bt_ui_resources_get_icon_image_by_machine_type () |
GtkAccelGroup * | bt_ui_resources_get_accel_group () |
This class serves as a central storage for colors and icons. It is implemented as a singleton.
BtUIResources *
bt_ui_resources_new (void
);
Create a new instance on first call and return a reference later on.
void
bt_ui_resources_init_theme (void
);
Initialize the themeing. Loads theme definitions to complement the active theme.
GdkPixbuf *
bt_ui_resources_get_icon_pixbuf_by_machine
(const BtMachine *machine
);
Gets a GdkPixbuf image that matches the given machine type for use in menus.
GdkPixbuf * bt_ui_resources_get_machine_graphics_pixbuf_by_machine (const BtMachine *machine
,gdouble zoom
);
Gets a GdkPixbuf image that matches the given machine type for use on the canvas.
GdkPixbuf * bt_ui_resources_get_wire_graphics_pixbuf_by_wire (const BtWire *wire
,gdouble zoom
);
Gets a GdkPixbuf image for use on the canvas.
GtkWidget *
bt_ui_resources_get_icon_image_by_machine
(const BtMachine *machine
);
Gets a GtkImage that matches the given machine type.
GtkWidget *
bt_ui_resources_get_icon_image_by_machine_type
(GType machine_type
);
Gets a GtkImage that matches the given machine type.