![]() |
![]() |
![]() |
Gwyddion Widgets Library Reference Manual | ![]() |
---|---|---|---|---|
GwyLayerMask; GwyLayerMaskClass; GtkObject* gwy_layer_mask_new (void); void gwy_layer_mask_set_color (GwyLayerMask *layer, GwyRGBA *color); GwyRGBA gwy_layer_mask_get_color (GwyLayerMask *layer);
GObject +----GInitiallyUnowned +----GtkObject +----GwyDataViewLayer +----GwyPixmapLayer +----GwyLayerMask
typedef struct { GwyPixmapLayerClass parent_class; gpointer reserved1; gpointer reserved2; } GwyLayerMaskClass;
GtkObject* gwy_layer_mask_new (void);
Creates a new mask layer.
By default, is uses a transparent color (thus not displaying anything), or the color stored with the data as "/0/mask/red", "/0/mask/green", "/0/mask/blue", and "/0/mask/alpha". It gets the mask data from "/0/mask".
Returns : | The newly created layer. |
void gwy_layer_mask_set_color (GwyLayerMask *layer, GwyRGBA *color);
Sets the color layer
should used.
layer : |
A GwyLayerMask. |
color : |
The color layer should use.
|
GwyRGBA gwy_layer_mask_get_color (GwyLayerMask *layer);
Returns the color used by layer
.
layer : |
A GwyLayerMask. |
Returns : | The color as GwyPalette. |