Graphics

Graphics

Synopsis

#include <hippo/hippo-graphics.h>

#define             HIPPO_TYPE_RECTANGLE
enum                HippoOrientation;
enum                HippoSide;
enum                HippoGravity;
                    HippoRectangle;
GType               hippo_rectangle_get_type            (void);
gboolean            hippo_rectangle_intersect           (const HippoRectangle *src1,
                                                         const HippoRectangle *src2,
                                                         HippoRectangle *dest);
gboolean            hippo_rectangle_equal               (const HippoRectangle *r1,
                                                         const HippoRectangle *r2);
HippoRectangle *    hippo_rectangle_copy                (HippoRectangle *r);
void                hippo_rectangle_free                (HippoRectangle *r);
void                hippo_cairo_set_source_rgba32       (cairo_t *cr,
                                                         guint32 color);
void                hippo_cairo_pattern_add_stop_rgba32 (cairo_pattern_t *pattern,
                                                         double offset,
                                                         guint32 color);

Object Hierarchy

  GBoxed
   +----HippoRectangle

Description

Details

HIPPO_TYPE_RECTANGLE

#define HIPPO_TYPE_RECTANGLE (hippo_rectangle_get_type())


enum HippoOrientation

typedef enum {
    HIPPO_ORIENTATION_VERTICAL,
    HIPPO_ORIENTATION_HORIZONTAL
} HippoOrientation;

HIPPO_ORIENTATION_VERTICAL

HIPPO_ORIENTATION_HORIZONTAL


enum HippoSide

typedef enum {
    HIPPO_SIDE_TOP,
    HIPPO_SIDE_BOTTOM,
    HIPPO_SIDE_LEFT,
    HIPPO_SIDE_RIGHT
} HippoSide;

HIPPO_SIDE_TOP

HIPPO_SIDE_BOTTOM

HIPPO_SIDE_LEFT

HIPPO_SIDE_RIGHT


enum HippoGravity

typedef enum {
    HIPPO_GRAVITY_NORTH_WEST,
    HIPPO_GRAVITY_NORTH_EAST,
    HIPPO_GRAVITY_SOUTH_EAST,
    HIPPO_GRAVITY_SOUTH_WEST
} HippoGravity;

HIPPO_GRAVITY_NORTH_WEST

HIPPO_GRAVITY_NORTH_EAST

HIPPO_GRAVITY_SOUTH_EAST

HIPPO_GRAVITY_SOUTH_WEST


HippoRectangle

typedef struct {
    int x;
    int y;
    int width;
    int height;
} HippoRectangle;


hippo_rectangle_get_type ()

GType               hippo_rectangle_get_type            (void);


hippo_rectangle_intersect ()

gboolean            hippo_rectangle_intersect           (const HippoRectangle *src1,
                                                         const HippoRectangle *src2,
                                                         HippoRectangle *dest);


hippo_rectangle_equal ()

gboolean            hippo_rectangle_equal               (const HippoRectangle *r1,
                                                         const HippoRectangle *r2);


hippo_rectangle_copy ()

HippoRectangle *    hippo_rectangle_copy                (HippoRectangle *r);


hippo_rectangle_free ()

void                hippo_rectangle_free                (HippoRectangle *r);


hippo_cairo_set_source_rgba32 ()

void                hippo_cairo_set_source_rgba32       (cairo_t *cr,
                                                         guint32 color);


hippo_cairo_pattern_add_stop_rgba32 ()

void                hippo_cairo_pattern_add_stop_rgba32 (cairo_pattern_t *pattern,
                                                         double offset,
                                                         guint32 color);