Description

Control the format string for a given units label

If NULL is passed to format, it will hide obj's units area completely. If not, it'll set the <b>format string</b> for the units label text. The units label is provided as a floating point value, so the units text can display at most one floating point value. Note that the units label is optional. Use a format string such as "%1.2f meters" for example.

The default format string is an integer percentage, as in $"%.0f %%".

Values

  • units - The format string for obj's units label.

Signature

@property format_string {
    get {
        values {
            units: free(string, free) @nullable;
        }
    }
    set {
        values {
            units: free(string, free) @nullable;
        }
    }
}

C signature

const char *efl_ui_format_string_get(const Eo *obj);
void efl_ui_format_string_set(Eo *obj, const char *units);

Implemented by

  • Efl.Ui.Format.format_string