lookup


Description:

public static bool lookup (int size, out int width, out int height)

Obtains the pixel size of a semantic icon size size: MENU, BUTTON, etc.

This function isn’t normally needed, load_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 lookup, because themes are free to render the pixbuf however they like, including changing the usual size.

Parameters:

size

an icon size (IconSize)

width

location to store icon width

height

location to store icon height

Returns:

true if size was a valid size