CriaBlock

CriaBlock —

Synopsis




            CriaBlock;
            CriaBlockClass;
CriaAlignment cria_block_get_alignment      (CriaBlock const *self);
GOColorconst* cria_block_get_color          (CriaBlock const *self);
GORectconst* cria_block_get_position        (CriaBlock const *self);
CriaVAlignment cria_block_get_valignment    (CriaBlock const *self);
CriaBlock*  cria_block_new                  (const gchar *name);
void        cria_block_set_alignment        (CriaBlock *self,
                                             CriaAlignment alignment);
void        cria_block_set_color            (CriaBlock *self,
                                             GOColor const *color);
void        cria_block_set_font_family      (CriaBlock *self,
                                             const gchar *family);
void        cria_block_set_font_size        (CriaBlock *self,
                                             const gchar *size);
void        cria_block_set_valignment       (CriaBlock *self,
                                             CriaVAlignment valignment);

Object Hierarchy


  GObject
   +----CriaSlideElement
         +----CriaBlock

Properties


  "alignment"            CriaAlignment         : Read / Write / Construct
  "bottom"               guint64               : Read / Write
  "color"                gpointer              : Read / Write
  "left"                 guint64               : Read / Write
  "model"                CriaTextModel         : Read / Write
  "right"                guint64               : Read / Write
  "top"                  guint64               : Read / Write
  "valignment"           CriaVAlignment        : Read / Write / Construct

Signals


"format-changed"
            void        user_function      (CriaBlock        *criablock,
                                            CriaFormatDomain *arg1,
                                            gpointer          user_data)      : Run last

Description

Details

CriaBlock

typedef struct _CriaBlock CriaBlock;


CriaBlockClass

typedef struct {
	CriaSlideElementClass element_class;

	void (*format_changed) (CriaBlock     * self,
				CriaFormatDomain  changed);
} CriaBlockClass;


cria_block_get_alignment ()

CriaAlignment cria_block_get_alignment      (CriaBlock const *self);

Get the horizontal alignment of content in this block

self : the block to get the alignment from
Returns : the horizontal alignment of content

cria_block_get_color ()

GOColorconst* cria_block_get_color          (CriaBlock const *self);

Get the foreground color of a text block.

self : a CriaBlock
Returns : the color of this text block; if it's not set it returns a default value.

cria_block_get_position ()

GORectconst* cria_block_get_position        (CriaBlock const *self);

Get the position of a CriaBlock.

self : a CriaBlock
Returns : the block's position. May return NULL if unset.

cria_block_get_valignment ()

CriaVAlignment cria_block_get_valignment    (CriaBlock const *self);

Get the vertical alignment of content in this block

self : the block to get the alignment from
Returns : the vertical alignment of content

cria_block_new ()

CriaBlock*  cria_block_new                  (const gchar *name);

name :
Returns :

cria_block_set_alignment ()

void        cria_block_set_alignment        (CriaBlock *self,
                                             CriaAlignment alignment);

self :
alignment :

cria_block_set_color ()

void        cria_block_set_color            (CriaBlock *self,
                                             GOColor const *color);

Set the foreground color of a text block.

self : a CriaBlock
color : a GOColor

cria_block_set_font_family ()

void        cria_block_set_font_family      (CriaBlock *self,
                                             const gchar *family);

self :
family :

cria_block_set_font_size ()

void        cria_block_set_font_size        (CriaBlock *self,
                                             const gchar *size);

Sets the font size.

self : a CriaBlock
size : a string specifying a font size

cria_block_set_valignment ()

void        cria_block_set_valignment       (CriaBlock *self,
                                             CriaVAlignment valignment);

self :
valignment :

Property Details

The "alignment" property

  "alignment"            CriaAlignment         : Read / Write / Construct

The horizontal alignment of embedded elements.

Default value: CRIA_ALIGNMENT_UNSET


The "bottom" property

  "bottom"               guint64               : Read / Write

The width of the block.

Default value: 0


The "color" property

  "color"                gpointer              : Read / Write

The text's foreground color.


The "left" property

  "left"                 guint64               : Read / Write

The Position of the topleft corner of the layout box.

Default value: 0


The "model" property

  "model"                CriaTextModel         : Read / Write

The text contained in this block.


The "right" property

  "right"                guint64               : Read / Write

The height of the block.

Default value: 0


The "top" property

  "top"                  guint64               : Read / Write

The vertical position of the block.

Default value: 0


The "valignment" property

  "valignment"           CriaVAlignment        : Read / Write / Construct

The vertical alignment of embedded elements.

Default value: CRIA_VALIGNMENT_UNSET

Signal Details

The "format-changed" signal

void        user_function                  (CriaBlock        *criablock,
                                            CriaFormatDomain *arg1,
                                            gpointer          user_data)      : Run last

criablock : the object which received the signal.
arg1 :
user_data : user data set when the signal handler was connected.