1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
\alias{GtkFontButton}
\alias{gtkFontButton}
\name{GtkFontButton}
\title{GtkFontButton}
\description{A button to launch a font selection dialog}
\section{Methods and Functions}{
\code{\link{gtkFontButtonNew}(show = TRUE)}\cr
\code{\link{gtkFontButtonNewWithFont}(fontname)}\cr
\code{\link{gtkFontButtonSetFontName}(object, fontname)}\cr
\code{\link{gtkFontButtonGetFontName}(object)}\cr
\code{\link{gtkFontButtonSetShowStyle}(object, show.style)}\cr
\code{\link{gtkFontButtonGetShowStyle}(object)}\cr
\code{\link{gtkFontButtonSetShowSize}(object, show.size)}\cr
\code{\link{gtkFontButtonGetShowSize}(object)}\cr
\code{\link{gtkFontButtonSetUseFont}(object, use.font)}\cr
\code{\link{gtkFontButtonGetUseFont}(object)}\cr
\code{\link{gtkFontButtonSetUseSize}(object, use.size)}\cr
\code{\link{gtkFontButtonGetUseSize}(object)}\cr
\code{\link{gtkFontButtonSetTitle}(object, title)}\cr
\code{\link{gtkFontButtonGetTitle}(object)}\cr
\code{gtkFontButton(show = TRUE)}
}
\section{Hierarchy}{\preformatted{GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkButton
+----GtkFontButton}}
\section{Interfaces}{GtkFontButton implements
AtkImplementorIface, \code{\link{GtkBuildable}} and \code{\link{GtkActivatable}}.}
\section{Detailed Description}{The \code{\link{GtkFontButton}} is a button which displays the currently selected font an allows to open a font selection
dialog to change the font. It is suitable widget for selecting a font in a preference dialog.}
\section{Structures}{\describe{\item{\verb{GtkFontButton}}{
The GtkFontButton struct has only private members and should not be used
directly.
}}}
\section{Convenient Construction}{\code{gtkFontButton} is the equivalent of \code{\link{gtkFontButtonNew}}.}
\section{Signals}{\describe{\item{\code{font-set(widget, user.data)}}{
The ::font-set signal is emitted when the user selects a font.
When handling this signal, use \code{\link{gtkFontButtonGetFontName}}
to find out which font was just selected.
Note that this signal is only emitted when the \emph{user}
changes the font. If you need to react to programmatic font changes
as well, use the notify::font-name signal.
Since 2.4
\describe{
\item{\code{widget}}{the object which received the signal.}
\item{\code{user.data}}{user data set when the signal handler was connected.}
}
}}}
\section{Properties}{\describe{
\item{\verb{font-name} [character : * : Read / Write]}{
The name of the currently selected font.
Default value: "Sans 12" Since 2.4
}
\item{\verb{show-size} [logical : Read / Write]}{
If this property is set to \code{TRUE}, the selected font size will be shown
in the label. For a more WYSIWYG way to show the selected size, see the
::use-size property.
Default value: TRUE Since 2.4
}
\item{\verb{show-style} [logical : Read / Write]}{
If this property is set to \code{TRUE}, the name of the selected font style
will be shown in the label. For a more WYSIWYG way to show the selected
style, see the ::use-font property.
Default value: TRUE Since 2.4
}
\item{\verb{title} [character : * : Read / Write]}{
The title of the font selection dialog.
Default value: "Pick a Font" Since 2.4
}
\item{\verb{use-font} [logical : Read / Write]}{
If this property is set to \code{TRUE}, the label will be drawn
in the selected font.
Default value: FALSE Since 2.4
}
\item{\verb{use-size} [logical : Read / Write]}{
If this property is set to \code{TRUE}, the label will be drawn
with the selected font size.
Default value: FALSE Since 2.4
}
}}
\references{\url{https://developer.gnome.org/gtk2/stable/GtkFontButton.html}}
\author{Derived by RGtkGen from GTK+ documentation}
\seealso{
\code{\link{GtkFontSelectionDialog}}
\code{\link{GtkColorButton}}
}
\keyword{internal}
|