Package ch.bailu.gtk.gtk
Class ColorChooser
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.Interface
ch.bailu.gtk.gtk.ColorChooser
- All Implemented Interfaces:
PointerInterface
`GtkColorChooser` is an interface that is implemented by widgets
for choosing colors.
Depending on the situation, colors may be allowed to have alpha (translucency).
In GTK, the main widgets that implement this interface are
[class@Gtk.ColorChooserWidget], [class@Gtk.ColorChooserDialog] and
[class@Gtk.ColorButton].
for choosing colors.
Depending on the situation, colors may be allowed to have alpha (translucency).
In GTK, the main widgets that implement this interface are
[class@Gtk.ColorChooserWidget], [class@Gtk.ColorChooserDialog] and
[class@Gtk.ColorButton].
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify -
Field Summary
FieldsFields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandlerstatic intstatic longstatic TypeSystem.TypeSizevoidGets the currently-selected color.static longstatic TypeSystem.TypeSizebooleanReturns whether the color chooser shows the alpha channel.Connect to signal "color-activated".voidSets the color.voidsetUseAlpha(boolean use_alpha) Sets whether or not the color chooser should use the alpha channel.Methods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnrefMethods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
SIGNAL_ON_COLOR_ACTIVATED
- See Also:
-
-
Constructor Details
-
ColorChooser
-
-
Method Details
-
getClassHandler
-
getRgba
Gets the currently-selected color.- Parameters:
color- a `GdkRGBA` to fill in with the current color
-
getUseAlpha
public boolean getUseAlpha()Returns whether the color chooser shows the alpha channel.- Returns:
- %TRUE if the color chooser uses the alpha channel, %FALSE if not
-
setRgba
Sets the color.- Parameters:
color- the new color
-
setUseAlpha
public void setUseAlpha(boolean use_alpha) Sets whether or not the color chooser should use the alpha channel.- Parameters:
use_alpha- %TRUE if color chooser should use alpha channel, %FALSE if not
-
onColorActivated
Connect to signal "color-activated".
SeeColorChooser.OnColorActivated.onColorActivated(ch.bailu.gtk.gdk.RGBA)for signal description.
FieldSIGNAL_ON_COLOR_ACTIVATEDcontains original signal name and can be used as resource reference.- Parameters:
signal- callback function (lambda).- Returns:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-