Top | ![]() |
![]() |
![]() |
![]() |
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.
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.
GtkAccelGroup *
bt_ui_resources_get_accel_group (void
);
All windows share one accelerator map.