GwyCellRendererColor

GwyCellRendererColor — Renders a colour in a cell

Functions

Properties

GwyRGBA * color Read / Write
GwyRGBA * secondary Read / Write
gboolean secondary-set Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkCellRenderer
            ╰── GwyCellRendererColor

Includes

#include <libgwyui/gwyui.h>

Description

A GwyCellRendererColor can be used to render a colour swatch in a cell of a GtkTreeView or a similar cell-view widget. It can also display a split swatch with two colours.

Functions

gwy_cell_renderer_color_new()

GtkCellRenderer *
gwy_cell_renderer_color_new (void);

Creates a new colour cell renderer.

Returns

A new colour cell renderer.

Types and Values

struct GwyCellRendererColor

struct GwyCellRendererColor;

struct GwyCellRendererColorClass

struct GwyCellRendererColorClass {
    GtkCellRendererClass parent_class;
};

Property Details

The “color” property

  “color”                    GwyRGBA *

Color to display.

Owner: GwyCellRendererColor

Flags: Read / Write


The “secondary” property

  “secondary”                GwyRGBA *

Secondary color to display.

Owner: GwyCellRendererColor

Flags: Read / Write


The “secondary-set” property

  “secondary-set”            gboolean

Whether to use the secondary color.

Owner: GwyCellRendererColor

Flags: Read / Write

Default value: FALSE