![]() |
![]() |
![]() |
Mx Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
struct MxBorderImage; struct MxPadding; #define MX_PARAM_TRANSLATEABLE 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; enum MxWindowRotation; enum MxPosition; enum MxImageScaleMode; enum MxTooltipAnimation;
struct MxBorderImage { gchar *uri; gint top; gint right; gint bottom; gint left; };
struct MxPadding { gfloat top; gfloat right; gfloat bottom; gfloat left; };
The padding from the internal border of the parent container.
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
);
typedef enum { /*< prefix=MX_ALIGN >*/ MX_ALIGN_START, MX_ALIGN_MIDDLE, MX_ALIGN_END } MxAlign;
Set the alignment of the item
typedef enum { MX_FONT_WEIGHT_NORMAL, MX_FONT_WEIGHT_BOLD, MX_FONT_WEIGHT_BOLDER, MX_FONT_WEIGHT_LIGHTER } MxFontWeight;
Support values of font weight
typedef enum { MX_SCROLL_POLICY_NONE, MX_SCROLL_POLICY_HORIZONTAL, MX_SCROLL_POLICY_VERTICAL, MX_SCROLL_POLICY_BOTH } MxScrollPolicy;
Defines the scrolling policy of scrollable widgets.
typedef enum { MX_ORIENTATION_HORIZONTAL, MX_ORIENTATION_VERTICAL } MxOrientation;
Defines the orientation of various layout widgets.
typedef enum { MX_WINDOW_ROTATION_0, MX_WINDOW_ROTATION_90, MX_WINDOW_ROTATION_180, MX_WINDOW_ROTATION_270 } MxWindowRotation;
Defines the clock-wise rotation angle of a window.
Zero degrees of rotation | |
90 degrees of rotation | |
180 degrees of rotation | |
270 degrees of rotation |
Since 1.2
typedef enum { MX_POSITION_TOP, MX_POSITION_RIGHT, MX_POSITION_BOTTOM, MX_POSITION_LEFT } MxPosition;
Defines the position of an interface element.
The top position | |
The right position | |
The bottom position | |
The left position |
Since 1.2
typedef enum { MX_IMAGE_SCALE_NONE, MX_IMAGE_SCALE_FIT, MX_IMAGE_SCALE_CROP } MxImageScaleMode;
Defines the scaling mode of an image.
Do not apply any scaling and center the image within the allocation | |
Scale the image, but maintain the aspect ratio so that it fits exactly within the allocation | |
Scale and crop the image so that it covers the entire allocation while retaining the correct aspect ratio |