32#ifndef __LAYER_ELEMENT_H__
33#define __LAYER_ELEMENT_H__
42#define TYPE_LAYER_ELEMENT (layer_element_get_type())
69 void (*
drag_begin)(GtkWidget *, GdkDragContext *, gpointer);
71 void (*
drag_data_get)(GtkWidget *, GdkDragContext *, GtkSelectionData *, guint, guint, gpointer);
73 void (*
drag_end)(GtkWidget *, GdkDragContext *, gpointer);
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(GdsRenderGui, gds_render_gui, RENDERER, GUI, GObject)
const char * layer_element_get_name(LayerElement *elem)
get name of the layer
void layer_element_set_color(LayerElement *elem, GdkRGBA *rgba)
Set color of layer.
struct _LayerElementPriv LayerElementPriv
int layer_element_get_layer(LayerElement *elem)
Get layer number.
void layer_element_set_layer(LayerElement *elem, int layer)
Set layer number for this layer.
void layer_element_get_color(LayerElement *elem, GdkRGBA *rgba)
Get color of layer.
void layer_element_set_name(LayerElement *elem, const char *name)
layer_element_set_name
void layer_element_set_dnd_callbacks(LayerElement *elem, struct layer_element_dnd_data *data)
Setup drag and drop of elem for use in the LayerSelector.
void layer_element_set_export(LayerElement *elem, gboolean export)
Set export flag for this layer.
gboolean layer_element_get_export(LayerElement *elem)
Get export flag of layer.
GtkWidget * layer_element_new(void)
Create new layer element object.
GtkEventBox * event_handle
This structure holds the necessary data to set up a LayerElement for Drag'n'Drop.
void(* drag_data_get)(GtkWidget *, GdkDragContext *, GtkSelectionData *, guint, guint, gpointer)
Callback fucktion for data_get event.
GtkTargetEntry * entries
Array of target entries for the DnD operation.
void(* drag_begin)(GtkWidget *, GdkDragContext *, gpointer)
Callback function for drag_begin event.
void(* drag_end)(GtkWidget *, GdkDragContext *, gpointer)
Callback function for drag_end event.
int entry_count
Count of elements in layer_element_dnd_data::entries array.