GanvBox

GanvBox

Functions

Types and Values

struct GanvBoxClass

Description

Functions

ganv_box_get_x1 ()

double
ganv_box_get_x1 (const GanvBox *box);

ganv_box_get_y1 ()

double
ganv_box_get_y1 (const GanvBox *box);

ganv_box_get_x2 ()

double
ganv_box_get_x2 (const GanvBox *box);

ganv_box_get_y2 ()

double
ganv_box_get_y2 (const GanvBox *box);

ganv_box_get_width ()

double
ganv_box_get_width (const GanvBox *box);

ganv_box_set_width ()

void
ganv_box_set_width (GanvBox *box,
                    double width);

ganv_box_get_height ()

double
ganv_box_get_height (const GanvBox *box);

ganv_box_set_height ()

void
ganv_box_set_height (GanvBox *box,
                     double height);

ganv_box_get_border_width ()

double
ganv_box_get_border_width (const GanvBox *box);

ganv_box_normalize ()

void
ganv_box_normalize (GanvBox *box);

Normalize the box coordinates such that x1 < x2 and y1 < y2.

Parameters

box

The box to normalize.

 

Types and Values

struct GanvBoxClass

struct GanvBoxClass {
	GanvNodeClass parent_class;

	void (*set_width)(GanvBox* box,
	                  double   width);

	void (*set_height)(GanvBox* box,
	                   double   height);

	/* Reserved for future expansion */
	gpointer spare_vmethods[4];
};

Members

set_width ()

Set the width of the box.

 

set_height ()

Set the height of the box.

 

gpointer spare_vmethods[4];