StyleSchemeChooserButton

A button to launch a style scheme selection dialog.

The gtksource.style_scheme_chooser_button.StyleSchemeChooserButton is a button which displays the currently selected style scheme and allows to open a style scheme selection dialog to change the style scheme. It is suitable widget for selecting a style scheme in a preference dialog.

In gtksource.style_scheme_chooser_button.StyleSchemeChooserButton, a class@StyleSchemeChooserWidget is used to provide a dialog for selecting style schemes.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Creates a new #GtkSourceStyleSchemeChooserButton.

Members

Functions

self
StyleSchemeChooserButton self()

Returns this, for use in with statements.

Properties

gType
GType gType [@property getter]

Static functions

getGType
GType getGType()

Mixed In Members

From mixin StyleSchemeChooserT!()

styleScheme
gtksource.style_scheme.StyleScheme styleScheme [@property getter]

Get styleScheme property.

styleScheme
gtksource.style_scheme.StyleScheme styleScheme [@property setter]

Set styleScheme property.

getStyleScheme
gtksource.style_scheme.StyleScheme getStyleScheme()

Gets the currently-selected scheme.

setStyleScheme
void setStyleScheme(gtksource.style_scheme.StyleScheme scheme)

Sets the scheme.

Inherited Members

From Button

getGType
GType getGType()
gType
GType gType [@property getter]
self
Button self()

Returns this, for use in with statements.

canShrink
bool canShrink [@property getter]

Get canShrink property.

canShrink
bool canShrink [@property setter]

Set canShrink property.

child
gtk.widget.Widget child [@property getter]

Get child property.

child
gtk.widget.Widget child [@property setter]

Set child property.

hasFrame
bool hasFrame [@property getter]

Get hasFrame property.

hasFrame
bool hasFrame [@property setter]

Set hasFrame property.

iconName
string iconName [@property getter]

Get iconName property.

iconName
string iconName [@property setter]

Set iconName property.

label
string label [@property getter]

Get label property.

label
string label [@property setter]

Set label property.

useUnderline
bool useUnderline [@property getter]

Get useUnderline property.

useUnderline
bool useUnderline [@property setter]

Set useUnderline property.

newFromIconName
gtk.button.Button newFromIconName(string iconName)

Creates a new button containing an icon from the current icon theme.

newWithLabel
gtk.button.Button newWithLabel(string label)

Creates a gtk.button.Button widget with a gtk.label.Label child.

newWithMnemonic
gtk.button.Button newWithMnemonic(string label)

Creates a new gtk.button.Button containing a label.

getCanShrink
bool getCanShrink()

Retrieves whether the button can be smaller than the natural size of its contents.

getChild
gtk.widget.Widget getChild()

Gets the child widget of button.

getHasFrame
bool getHasFrame()

Returns whether the button has a frame.

getIconName
string getIconName()

Returns the icon name of the button.

getLabel
string getLabel()

Fetches the text from the label of the button.

getUseUnderline
bool getUseUnderline()

gets whether underlines are interpreted as mnemonics.

setCanShrink
void setCanShrink(bool canShrink)

Sets whether the button size can be smaller than the natural size of its contents.

setChild
void setChild(gtk.widget.Widget child)

Sets the child widget of button.

setHasFrame
void setHasFrame(bool hasFrame)

Sets the style of the button.

setIconName
void setIconName(string iconName)

Adds a gtk.image.Image with the given icon name as a child.

setLabel
void setLabel(string label)

Sets the text of the label of the button to label.

setUseUnderline
void setUseUnderline(bool useUnderline)

Sets whether to use underlines as mnemonics.

connectActivate
ulong connectActivate(T callback, Flag!"After" after)

Connect to Activate signal.

connectClicked
ulong connectClicked(T callback, Flag!"After" after)

Connect to Clicked signal.

From StyleSchemeChooser

getGType
GType getGType()
styleScheme
gtksource.style_scheme.StyleScheme styleScheme [@property getter]

Get styleScheme property.

styleScheme
gtksource.style_scheme.StyleScheme styleScheme [@property setter]

Set styleScheme property.

getStyleScheme
gtksource.style_scheme.StyleScheme getStyleScheme()

Gets the currently-selected scheme.

setStyleScheme
void setStyleScheme(gtksource.style_scheme.StyleScheme scheme)

Sets the scheme.