eek-types

eek-types — Miscellaneous types

Synopsis

enum                EekOrientation;
                    EekKeysymMatrix;
#define             EEK_TYPE_KEYSYM_MATRIX
GType               eek_keysym_matrix_get_type          (void);
                    EekPoint;
#define             EEK_TYPE_POINT
GType               eek_point_get_type                  (void);
                    EekBounds;
#define             EEK_TYPE_BOUNDS
GType               eek_bounds_get_type                 (void);
gdouble             eek_bounds_long_side                (EekBounds *bounds);
                    EekOutline;
#define             EEK_TYPE_OUTLINE
GType               eek_outline_get_type                (void);

Description

Details

enum EekOrientation

typedef enum {
    EEK_ORIENTATION_VERTICAL,
    EEK_ORIENTATION_HORIZONTAL,
    EEK_ORIENTATION_INVALID = -1
} EekOrientation;

Orientation of rows in sections. Elements in a row will be arranged with the specified orientation.

EEK_ORIENTATION_VERTICAL

the elements will be arranged vertically

EEK_ORIENTATION_HORIZONTAL

the elements will be arranged horizontally

EEK_ORIENTATION_INVALID

used for error reporting

EekKeysymMatrix

typedef struct {
    guint *data;
    gint num_groups;
    gint num_levels;
} EekKeysymMatrix;

Symbol matrix of a key.

guint *data;

array of keysyms

gint num_groups;

the number of groups (rows)

gint num_levels;

the number of levels (columns)

EEK_TYPE_KEYSYM_MATRIX

#define EEK_TYPE_KEYSYM_MATRIX (eek_keysym_matrix_get_type ())

eek_keysym_matrix_get_type ()

GType               eek_keysym_matrix_get_type          (void);

EekPoint

typedef struct {
    gdouble x;
    gdouble y;
} EekPoint;

2D vertex

gdouble x;

X coordinate of the point

gdouble y;

Y coordinate of the point

EEK_TYPE_POINT

#define EEK_TYPE_POINT (eek_point_get_type ())

eek_point_get_type ()

GType               eek_point_get_type                  (void);

EekBounds

typedef struct {
    gdouble x;
    gdouble y;
    gdouble width;
    gdouble height;
} EekBounds;

2D bounding box

gdouble x;

X coordinate of the top left point

gdouble y;

Y coordinate of the top left point

gdouble width;

width of the box

gdouble height;

height of the box

EEK_TYPE_BOUNDS

#define EEK_TYPE_BOUNDS (eek_bounds_get_type ())

eek_bounds_get_type ()

GType               eek_bounds_get_type                 (void);

eek_bounds_long_side ()

gdouble             eek_bounds_long_side                (EekBounds *bounds);

EekOutline

typedef struct {
    gdouble corner_radius;
    EekPoint *points;
    gint num_points;
} EekOutline;

2D rounded polygon used to draw key shape

gdouble corner_radius;

radius of corners of rounded polygon

EekPoint *points;

an array of points represents a polygon

gint num_points;

the length of points

EEK_TYPE_OUTLINE

#define EEK_TYPE_OUTLINE (eek_outline_get_type ())

eek_outline_get_type ()

GType               eek_outline_get_type                (void);