mx-utils

## mx-utils mx-utils — General utility functions useful for GUIs |

## Synopsis

    void                mx_set_locale                       ();
    gchar *             mx_utils_format_time                (GTimeVal *time_);
    void                mx_allocate_align_fill              (ClutterActor *child,
                                                             ClutterActorBox *childbox,
                                                             MxAlign x_alignment,
                                                             MxAlign y_alignment,
                                                             gboolean x_fill,
                                                             gboolean y_fill);
    void                mx_actor_box_clamp_to_pixels        (ClutterActorBox *box);

## Description

Utilities useful for creating user interfaces.

## Details

### mx_set_locale ()

    void                mx_set_locale                       ();

### mx_utils_format_time ()

    gchar *             mx_utils_format_time                (GTimeVal *time_);

Generates a string describing the time given in `time_` using colloquial language suitable for display to the user. Examples of what might be returned are "A few minutes ago" or "Yesterday".

`time_` : | a time value
Returns : | a string. Free with `g_free()`.

### mx_allocate_align_fill ()

    void                mx_allocate_align_fill              (ClutterActor *child,
                                                             ClutterActorBox *childbox,
                                                             MxAlign x_alignment,
                                                             MxAlign y_alignment,
                                                             gboolean x_fill,
                                                             gboolean y_fill);

`child` : |
`childbox` : |
`x_alignment` : |
`y_alignment` : |
`x_fill` : |
`y_fill` : |

### mx_actor_box_clamp_to_pixels ()

    void                mx_actor_box_clamp_to_pixels        (ClutterActorBox *box);

`box` : |