1
1
\alias{gtkRcGetStyleByPaths}
2
2
\name{gtkRcGetStyleByPaths}
3
3
\title{gtkRcGetStyleByPaths}
4
\description{Creates up a \verb{\link{GtkStyle}} from styles defined in a RC file by providing
4
\description{Creates up a \code{\link{GtkStyle}} from styles defined in a RC file by providing
5
5
the raw components used in matching. This function may be useful
6
6
when creating pseudo-widgets that should be themed like widgets but
7
7
don't actually have corresponding GTK+ widgets. An example of this
8
8
would be items inside a GNOME canvas widget.}
9
9
\usage{gtkRcGetStyleByPaths(settings, widget.path, class.path, type)}
11
\item{\verb{settings}}{[\verb{\link{GtkSettings}}] a \verb{\link{GtkSettings}} object}
12
\item{\verb{widget.path}}{[char] the widget path to use when looking up the style, or \code{NULL}
13
if no matching against the widget path should be done}
14
\item{\verb{class.path}}{[char] the class path to use when looking up the style, or \code{NULL}
15
if no matching against the class path should be done.}
16
\item{\verb{type}}{[\verb{\link{GType}}] a type that will be used along with parent types of this type
11
\item{\verb{settings}}{a \code{\link{GtkSettings}} object}
12
\item{\verb{widget.path}}{ the widget path to use when looking up the style, or \code{NULL}
13
if no matching against the widget path should be done. \emph{[ \acronym{allow-none} ]}}
14
\item{\verb{class.path}}{ the class path to use when looking up the style, or \code{NULL}
15
if no matching against the class path should be done. \emph{[ \acronym{allow-none} ]}}
16
\item{\verb{type}}{a type that will be used along with parent types of this type
17
17
when matching against class styles, or \verb{G_TYPE_NONE}}
19
19
\details{The action of \code{\link{gtkRcGetStyle}} is similar to:
21
21
path <- widget$path()$path
22
22
class_path <- widget$classPath()$path
23
23
gtkRcGetStyleByPaths(widget$getSettings(), path, class_path, class(widget)[1])
25
\value{[\verb{\link{GtkStyle}}] A style created by matching with the supplied paths,
25
\value{[\code{\link{GtkStyle}}] A style created by matching with the supplied paths,
26
26
or \code{NULL} if nothing matching was specified and the default style should
28
28
\author{Derived by RGtkGen from GTK+ documentation}