ColorSelection

Constructors

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

Creates a new GtkColorSelection.

Members

Functions

connectColorChanged
gulong connectColorChanged(T callback, Flag!"After" after)

Connect to ColorChanged signal.

getCurrentAlpha
ushort getCurrentAlpha()

Returns the current alpha value.

getCurrentColor
void getCurrentColor(gdk.color.Color color)

Sets color to be the current color in the GtkColorSelection widget.

getCurrentRgba
void getCurrentRgba(gdk.rgba.RGBA rgba)

Sets rgba to be the current color in the GtkColorSelection widget.

getHasOpacityControl
bool getHasOpacityControl()

Determines whether the colorsel has an opacity control.

getHasPalette
bool getHasPalette()

Determines whether the color selector has a color palette.

getPreviousAlpha
ushort getPreviousAlpha()

Returns the previous alpha value.

getPreviousColor
void getPreviousColor(gdk.color.Color color)

Fills color in with the original color value.

getPreviousRgba
void getPreviousRgba(gdk.rgba.RGBA rgba)

Fills rgba in with the original color value.

isAdjusting
bool isAdjusting()

Gets the current state of the colorsel.

self
ColorSelection self()

Returns this, for use in with statements.

setCurrentAlpha
void setCurrentAlpha(ushort alpha)

Sets the current opacity to be alpha.

setCurrentColor
void setCurrentColor(gdk.color.Color color)

Sets the current color to be color.

setCurrentRgba
void setCurrentRgba(gdk.rgba.RGBA rgba)

Sets the current color to be rgba.

setHasOpacityControl
void setHasOpacityControl(bool hasOpacity)

Sets the colorsel to use or not use opacity.

setHasPalette
void setHasPalette(bool hasPalette)

Shows and hides the palette based upon the value of has_palette.

setPreviousAlpha
void setPreviousAlpha(ushort alpha)

Sets the “previous” alpha to be alpha.

setPreviousColor
void setPreviousColor(gdk.color.Color color)

Sets the “previous” color to be color.

setPreviousRgba
void setPreviousRgba(gdk.rgba.RGBA rgba)

Sets the “previous” color to be rgba.

Properties

_gType
GType _gType [@property getter]
currentAlpha
uint currentAlpha [@property getter]
currentAlpha
uint currentAlpha [@property setter]
currentColor
gdk.color.Color currentColor [@property getter]

Get currentColor property.

currentColor
gdk.color.Color currentColor [@property setter]

Set currentColor property.

currentRgba
gdk.rgba.RGBA currentRgba [@property getter]

Get currentRgba property.

currentRgba
gdk.rgba.RGBA currentRgba [@property setter]

Set currentRgba property.

hasOpacityControl
bool hasOpacityControl [@property getter]
hasOpacityControl
bool hasOpacityControl [@property setter]
hasPalette
bool hasPalette [@property getter]
hasPalette
bool hasPalette [@property setter]

Static functions

_getGType
GType _getGType()
builder
ColorSelectionGidBuilder builder()

Get builder for gtk.color_selection.ColorSelection

paletteFromString
bool paletteFromString(string str, gdk.color.Color[] colors)

Parses a color palette string; the string is a colon-separated list of color names readable by gdk.color.Color.parse.

paletteToString
string paletteToString(gdk.color.Color[] colors)

Encodes a palette as a string, useful for persistent storage.

Inherited Members

From Box

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
Box self()

Returns this, for use in with statements.

builder
BoxGidBuilder builder()

Get builder for gtk.box.Box

baselinePosition
gtk.types.BaselinePosition baselinePosition [@property getter]
baselinePosition
gtk.types.BaselinePosition baselinePosition [@property setter]
homogeneous
bool homogeneous [@property getter]
homogeneous
bool homogeneous [@property setter]
spacing
int spacing [@property getter]
spacing
int spacing [@property setter]
getBaselinePosition
gtk.types.BaselinePosition getBaselinePosition()

Gets the value set by gtk.box.Box.setBaselinePosition.

getCenterWidget
gtk.widget.Widget getCenterWidget()

Retrieves the center widget of the box.

getHomogeneous
bool getHomogeneous()

Returns whether the box is homogeneous (all children are the same size). See gtk.box.Box.setHomogeneous.

getSpacing
int getSpacing()

Gets the value set by gtk.box.Box.setSpacing.

packEnd
void packEnd(gtk.widget.Widget child, bool expand, bool fill, uint padding)

Adds child to box, packed with reference to the end of box. The child is packed after (away from end of) any other child packed with reference to the end of box.

packStart
void packStart(gtk.widget.Widget child, bool expand, bool fill, uint padding)

Adds child to box, packed with reference to the start of box. The child is packed after any other child packed with reference to the start of box.

queryChildPacking
void queryChildPacking(gtk.widget.Widget child, bool expand, bool fill, uint padding, gtk.types.PackType packType)

Obtains information about how child is packed into box.

reorderChild
void reorderChild(gtk.widget.Widget child, int position)

Moves child to a new position in the list of box children. The list contains widgets packed #GTK_PACK_START as well as widgets packed #GTK_PACK_END, in the order that these widgets were added to box.

setBaselinePosition
void setBaselinePosition(gtk.types.BaselinePosition position)

Sets the baseline position of a box. This affects only horizontal boxes with at least one baseline aligned child. If there is more vertical space available than requested, and the baseline is not allocated by the parent then position is used to allocate the baseline wrt the extra space available.

setCenterWidget
void setCenterWidget(gtk.widget.Widget widget)

Sets a center widget; that is a child widget that will be centered with respect to the full width of the box, even if the children at either side take up different amounts of space.

setChildPacking
void setChildPacking(gtk.widget.Widget child, bool expand, bool fill, uint padding, gtk.types.PackType packType)

Sets the way child is packed into box.

setHomogeneous
void setHomogeneous(bool homogeneous)

Sets the #GtkBox:homogeneous property of box, controlling whether or not all children of box are given equal space in the box.

setSpacing
void setSpacing(int spacing)

Sets the #GtkBox:spacing property of box, which is the number of pixels to place between children of box.