|
Ardour
9.0-rc2
|
#include <enums.h>
Public Member Functions | |
| IconSize () | |
| IconSize (BuiltinIconSize size) | |
| IconSize (int size) | |
| operator int () const | |
Static Public Member Functions | |
| static bool | lookup (IconSize size, int &width, int &height) |
| static bool | lookup (IconSize size, int &width, int &height, const Glib::RefPtr< Gtk::Settings > &settings) |
| static IconSize | register_new (const Glib::ustring &name, int width, int height) |
| static void | register_alias (const Glib::ustring &alias, IconSize target) |
| static IconSize | from_name (const Glib::ustring &name) |
| static Glib::ustring | get_name (IconSize size) |
Private Attributes | |
| int | size_ |
Represents registered icon sizes. You can also use a Gtk::BuiltinIconSize instead of an IconSize.
Definition at line 1656 of file libs/tk/ytkmm/ytkmm/enums.h.
|
inline |
Definition at line 1662 of file libs/tk/ytkmm/ytkmm/enums.h.
|
inline |
Definition at line 1663 of file libs/tk/ytkmm/ytkmm/enums.h.
|
inlineexplicit |
Definition at line 1666 of file libs/tk/ytkmm/ytkmm/enums.h.
|
static |
Looks up the icon size associated with name.
| name | the name to look up. result The icon size with the given name. |
|
static |
Gets the canonical name of the given icon size.
| size | size AnIconSize. |
|
static |
Obtains the pixel size of a semantic icon size, possibly modified by user preferences for the default Gtk::Settings. Normally size would be Gtk::ICON_SIZE_MENU, Gtk::ICON_SIZE_BUTTON, etc. This function isn't normally needed because Gtk::Widget::render_icon() is the usual way to get an icon for rendering - then just look at the size of the rendered pixbuf. The rendered pixbuf may not even correspond to the width/height returned by IconSize::lookup(), because themes are free to render the pixbuf however they like, including changing the usual size.
| size | An icon size. |
| width | Location to store icon width. |
| height | Location to store icon height. |
|
static |
Obtains the pixel size of a semantic icon size, possibly modified by user preferences for a particular Gtk::Settings. Normally size would be Gtk::ICON_SIZE_MENU, Gtk::ICON_SIZE_BUTTON, etc. This function isn't normally needed because Gtk::Widget::render_icon() is the usual way to get an icon for rendering - then just look at the size of the rendered pixbuf. The rendered pixbuf may not even correspond to the width/height returned by IconSize::lookup(), because themes are free to render the pixbuf however they like, including changing the usual size.
| size | An icon size. |
| width | Location to store icon width. |
| height | Location to store icon height. |
| settings | A Gtk::Settings object, used to determine which set of user preferences to used. |
|
inline |
Definition at line 1667 of file libs/tk/ytkmm/ytkmm/enums.h.
|
static |
Registers alias as another name for target so calling from_name() with alias as argument will return target.
| alias | An alias for target. |
| target | An existing icon size. |
|
static |
Registers a new icon size, along the same lines as ICON_SIZE_MENU, etc. Returns the integer value for the size.
| name | Name of the icon size. |
| width | The icon width. |
| height | The icon height. |
|
private |
Definition at line 1659 of file libs/tk/ytkmm/ytkmm/enums.h.