Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gtkIconSizeLookupForSettings

gtkIconSizeLookupForSettings


Description

Obtains the pixel size of a semantic icon size, possibly modified by user preferences for a particular GtkSettings. Normally size would be GTK_ICON_SIZE_MENU, GTK_ICON_SIZE_BUTTON, etc. This function isn't normally needed, gtkWidgetRenderIcon 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 gtkIconSizeLookup, because themes are free to render the pixbuf however they like, including changing the usual size.

Usage

gtkIconSizeLookupForSettings(settings, size)

Arguments

settings

a GtkSettings object, used to determine which set of user preferences to used.

size

an icon size. [ type int]

Details

Since 2.2

Value

A list containing the following elements:

retval

[logical] TRUE if size was a valid size

width

location to store icon width

height

location to store icon height

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.