| Mx Toolkit Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
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; enum MxWindowRotation; enum MxPosition; enum MxImageScaleMode;
typedef struct {
gchar *uri;
gint top;
gint right;
gint bottom;
gint left;
} MxBorderImage;
typedef struct {
gfloat top;
gfloat right;
gfloat bottom;
gfloat left;
} MxPadding;
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 /*< 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
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.
typedef enum /*< prefix=MX_ORIENTATION >*/
{
MX_ORIENTATION_HORIZONTAL,
MX_ORIENTATION_VERTICAL
} MxOrientation;
Defines the orientation of various layout widgets.
typedef enum /*< prefix=MX_WINDOW_ROTATION >*/
{
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.
typedef enum /*< prefix=MX_POSITION >*/
{
MX_POSITION_TOP,
MX_POSITION_RIGHT,
MX_POSITION_BOTTOM,
MX_POSITION_LEFT
} MxPosition;
Defines the position of an interface element.
typedef enum /*< prefix=MX_IMAGE_SCALE >*/
{
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 |