gtkWidgetPath: gtkWidgetPath

Description Usage Arguments Value Author(s)

View source: R/gtkFuncs.R

Description

Obtains the full path to widget. The path is simply the name of a widget and all its parents in the container hierarchy, separated by periods. The name of a widget comes from gtkWidgetGetName. Paths are used to apply styles to a widget in gtkrc configuration files. Widget names are the type of the widget by default (e.g. "GtkButton") or can be set to an application-specific value with gtkWidgetSetName. By setting the name of a widget, you allow users or theme authors to apply styles to that specific widget in their gtkrc file. path.reversed.p fills in the path in reverse order, i.e. starting with widget's name instead of starting with the name of widget's outermost ancestor.

Usage

1
gtkWidgetPath(object)

Arguments

object

a GtkWidget

Value

A list containing the following elements:

path.length

location to store length of the path, or NULL. [ out ][ allow-none ]

path

location to store allocated path string, or NULL. [ out ][ allow-none ]

path.reversed

location to store allocated reverse path string, or NULL. [ out ][ allow-none ]

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2 documentation built on Oct. 14, 2021, 5:08 p.m.

Related to gtkWidgetPath in RGtk2...