mx-types

mx-types — type definitions used throughout Mx

Synopsis

                    MxBorderImage;
                    MxPadding;
void                mx_border_image_set_from_string     (GValue *value,
                                                         const gchar *str,
                                                         const gchar *filename);
void                mx_font_weight_set_from_string      (GValue *value,
                                                         const gchar *str);
enum                MxAlign;
enum                MxFontWeight;
enum                MxScrollPolicy;
enum                MxOrientation;

Description

Common types for MxWidgets.

Details

MxBorderImage

typedef struct {
  gchar *uri;

  gint top;
  gint right;
  gint bottom;
  gint left;
} MxBorderImage;

gchar *uri; uri of a supported image file
gint top; top border slice width
gint right; right border slice width
gint bottom; bottom border slice width
gint left; bottom border slice width

MxPadding

typedef struct {
  gfloat top;
  gfloat right;
  gfloat bottom;
  gfloat left;
} MxPadding;

The padding from the internal border of the parent container.

gfloat top; padding from the top
gfloat right; padding from the right
gfloat bottom; padding from the bottom
gfloat left; padding from the left

mx_border_image_set_from_string ()

void                mx_border_image_set_from_string     (GValue *value,
                                                         const gchar *str,
                                                         const gchar *filename);

value :
str :
filename :

mx_font_weight_set_from_string ()

void                mx_font_weight_set_from_string      (GValue *value,
                                                         const gchar *str);

value :
str :

enum MxAlign

typedef enum { /*< prefix=MX_ALIGN >*/
  MX_ALIGN_START,
  MX_ALIGN_MIDDLE,
  MX_ALIGN_END
} MxAlign;

Set the alignment of the item

MX_ALIGN_START Align at the beginning of the axis
MX_ALIGN_MIDDLE Align in the middle of the axis
MX_ALIGN_END Align at the end of the axis

enum MxFontWeight

typedef enum /*< prefix=MX_FONT_WEIGHT >*/
{
  MX_FONT_WEIGHT_NORMAL,
  MX_FONT_WEIGHT_BOLD,
  MX_FONT_WEIGHT_BOLDER,
  MX_FONT_WEIGHT_LIGHTER
} MxFontWeight;

Support values of font weight


enum MxScrollPolicy

typedef enum /*< prefix=MX_SCROLL_POLICY >*/
{
  MX_SCROLL_POLICY_NONE,
  MX_SCROLL_POLICY_HORIZONTAL,
  MX_SCROLL_POLICY_VERTICAL,
  MX_SCROLL_POLICY_BOTH
} MxScrollPolicy;

Defines the scrolling policy of scrollable widgets.


enum MxOrientation

typedef enum /*< prefix=MX_ORIENTATION >*/
{
  MX_ORIENTATION_HORIZONTAL,
  MX_ORIENTATION_VERTICAL
} MxOrientation;

Defines the orientation of various layout widgets.