GDS-Render v1.2.1
Collaboration diagram for LayerElement:

Data Structures

struct  _LayerElementPriv
 
struct  _LayerElement
 
struct  layer_element_dnd_data
 This structure holds the necessary data to set up a LayerElement for Drag'n'Drop. More...
 

Macros

#define TYPE_LAYER_ELEMENT   (layer_element_get_type())
 

Typedefs

typedef struct _LayerElementPriv LayerElementPriv
 

Functions

GtkWidget * layer_element_new (void)
 Create new layer element object. More...
 
const char * layer_element_get_name (LayerElement *elem)
 get name of the layer More...
 
void layer_element_set_name (LayerElement *elem, const char *name)
 layer_element_set_name More...
 
void layer_element_set_layer (LayerElement *elem, int layer)
 Set layer number for this layer. More...
 
int layer_element_get_layer (LayerElement *elem)
 Get layer number. More...
 
void layer_element_set_export (LayerElement *elem, gboolean export)
 Set export flag for this layer. More...
 
gboolean layer_element_get_export (LayerElement *elem)
 Get export flag of layer. More...
 
void layer_element_get_color (LayerElement *elem, GdkRGBA *rgba)
 Get color of layer. More...
 
void layer_element_set_color (LayerElement *elem, GdkRGBA *rgba)
 Set color of layer. More...
 
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. More...
 
static void layer_element_dispose (GObject *obj)
 
static void layer_element_constructed (GObject *obj)
 
static void layer_element_class_init (LayerElementClass *klass)
 
static void layer_element_init (LayerElement *self)
 

Detailed Description

Macro Definition Documentation

◆ TYPE_LAYER_ELEMENT

#define TYPE_LAYER_ELEMENT   (layer_element_get_type())

Definition at line 42 of file layer-element.h.

Typedef Documentation

◆ LayerElementPriv

Function Documentation

◆ layer_element_class_init()

static void layer_element_class_init ( LayerElementClass *  klass)
static

Definition at line 55 of file layer-element.c.

Here is the call graph for this function:

◆ layer_element_constructed()

static void layer_element_constructed ( GObject *  obj)
static

Definition at line 50 of file layer-element.c.

Here is the caller graph for this function:

◆ layer_element_dispose()

static void layer_element_dispose ( GObject *  obj)
static

Definition at line 44 of file layer-element.c.

Here is the caller graph for this function:

◆ layer_element_get_color()

void layer_element_get_color ( LayerElement *  elem,
GdkRGBA *  rgba 
)

Get color of layer.

Parameters
elemLayer Element
rgbaRGBA color

Definition at line 123 of file layer-element.c.

Here is the caller graph for this function:

◆ layer_element_get_export()

gboolean layer_element_get_export ( LayerElement *  elem)

Get export flag of layer.

Parameters
elemLayer Element
Returns

Definition at line 118 of file layer-element.c.

Here is the caller graph for this function:

◆ layer_element_get_layer()

int layer_element_get_layer ( LayerElement *  elem)

Get layer number.

Parameters
elemLayer Element
Returns
Number of this layer

Definition at line 108 of file layer-element.c.

Here is the caller graph for this function:

◆ layer_element_get_name()

const char * layer_element_get_name ( LayerElement *  elem)

get name of the layer

Parameters
elemLayer element
Returns
Name. Must not be changed, freed or anything else.

Definition at line 87 of file layer-element.c.

Here is the caller graph for this function:

◆ layer_element_init()

static void layer_element_init ( LayerElement *  self)
static

Definition at line 63 of file layer-element.c.

◆ layer_element_new()

GtkWidget * layer_element_new ( void  )

Create new layer element object.

Returns
new object

Definition at line 82 of file layer-element.c.

Here is the caller graph for this function:

◆ layer_element_set_color()

void layer_element_set_color ( LayerElement *  elem,
GdkRGBA *  rgba 
)

Set color of layer.

Parameters
elemLayer Element
rgbaRGBA color

Definition at line 131 of file layer-element.c.

Here is the caller graph for this function:

◆ layer_element_set_dnd_callbacks()

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.

Parameters
elemLayer element to set up
dataData array containing the necessary callbacks etc. for drag and drop.

Definition at line 139 of file layer-element.c.

Here is the caller graph for this function:

◆ layer_element_set_export()

void layer_element_set_export ( LayerElement *  elem,
gboolean  export 
)

Set export flag for this layer.

Parameters
elemLayer Element
exportflag

Definition at line 113 of file layer-element.c.

Here is the caller graph for this function:

◆ layer_element_set_layer()

void layer_element_set_layer ( LayerElement *  elem,
int  layer 
)

Set layer number for this layer.

Parameters
elemLayer element
layerLayer number

Definition at line 97 of file layer-element.c.

Here is the caller graph for this function:

◆ layer_element_set_name()

void layer_element_set_name ( LayerElement *  elem,
const char *  name 
)

layer_element_set_name

Parameters
elemset the name of the layer
nameName. Can be freed after call to this function

Definition at line 92 of file layer-element.c.

Here is the caller graph for this function: