Commit 2fbb1bf0 authored by Mike Wey's avatar Mike Wey
Browse files

Add a getRgba overload that just returns the RGBA.

parent 0b6604f9
......@@ -51,6 +51,22 @@ public interface ColorChooserIF{
/** the main Gtk struct as a void* */
protected void* getStruct();
/**
* Gets the currently-selected color.
*
* Returns: a gdk.RGBA to fill in with the current color.
*
* Since: 3.4
*/
public final RGBA getRgba()
{
RGBA color;
getRgba(color);
return color;
}
/**
*/
/** */
public static GType getType()
......
......@@ -692,6 +692,23 @@ noCode: get_rgba
noCode: set_use_alpha
noCode: get_use_alpha
struct: ColorChooser
interfaceCode: start
/**
* Gets the currently-selected color.
*
* Returns: a gdk.RGBA to fill in with the current color.
*
* Since: 3.4
*/
public final RGBA getRgba()
{
RGBA color;
getRgba(color);
return color;
}
interfaceCode: end
struct: ColorSelectionDialog
import: gtk.ColorSelection
noCode: get_color_selection
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment