51 lines
1.6 KiB
Plaintext
51 lines
1.6 KiB
Plaintext
struct Efl.Ui.Spin_Special_Value
|
|
{
|
|
[[Special value]]
|
|
value: double; [[Target value]]
|
|
label: string; [[String to replace]]
|
|
}
|
|
|
|
class Efl.Ui.Spin extends Efl.Ui.Layout implements Efl.Ui.Range_Interactive, Efl.Ui.Format,
|
|
Efl.Access.Value, Efl.Access.Widget.Action
|
|
{
|
|
[[A Spin.
|
|
|
|
This is a widget which allows the user to increase or decrease numeric values
|
|
using user interactions. It's a basic type of widget for choosing and displaying values.
|
|
|
|
@since 1.21
|
|
]]
|
|
methods {
|
|
@property special_value {
|
|
[[Control special string to display in the place of the numerical value.
|
|
|
|
It's useful for cases when a user should select an item that is
|
|
better indicated by a label than a value. For example, weekdays or months.
|
|
|
|
Note: If another label was previously set to $value, it will be replaced
|
|
by the new label.]]
|
|
set {
|
|
}
|
|
get {
|
|
}
|
|
values {
|
|
values: const(array<ptr(Efl.Ui.Spin_Special_Value)>); [[The array of special values, or NULL if none]]
|
|
}
|
|
}
|
|
}
|
|
implements {
|
|
Efl.Object.constructor;
|
|
Efl.Object.destructor;
|
|
Efl.Ui.Widget.widget_event;
|
|
Efl.Ui.Range_Display.range_min_max { get; set; }
|
|
Efl.Ui.Range_Interactive.range_step { get; set; }
|
|
Efl.Ui.Range_Display.range_value { get; set; }
|
|
Efl.Ui.Format.format_cb { set; }
|
|
}
|
|
events {
|
|
changed: void; [[Called when spin changed]]
|
|
min,reached: void; [[Called when spin value reached min]]
|
|
max,reached: void; [[Called when spin value reached max]]
|
|
}
|
|
}
|