2019-03-08 06:55:43 -08:00
|
|
|
struct @beta Efl.Ui.Spin_Special_Value
|
2018-05-19 11:01:44 -07:00
|
|
|
{
|
|
|
|
[[Special value]]
|
|
|
|
value: double; [[Target value]]
|
|
|
|
label: string; [[String to replace]]
|
|
|
|
}
|
|
|
|
|
2019-02-28 07:23:11 -08:00
|
|
|
class @beta Efl.Ui.Spin extends Efl.Ui.Layout_Base implements Efl.Ui.Range_Interactive, Efl.Ui.Format,
|
2019-01-18 05:22:23 -08:00
|
|
|
Efl.Access.Value, Efl.Access.Widget.Action
|
2017-11-20 02:12:49 -08:00
|
|
|
{
|
|
|
|
[[A Spin.
|
|
|
|
|
|
|
|
This is a widget which allows the user to increase or decrease numeric values
|
2018-01-04 04:16:23 -08:00
|
|
|
using user interactions. It's a basic type of widget for choosing and displaying values.
|
2017-11-20 02:12:49 -08:00
|
|
|
]]
|
2018-05-19 11:01:44 -07:00
|
|
|
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]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-11-20 02:12:49 -08:00
|
|
|
implements {
|
|
|
|
Efl.Object.constructor;
|
|
|
|
Efl.Object.destructor;
|
2019-03-04 10:37:18 -08:00
|
|
|
Efl.Ui.Widget.widget_input_event_handler;
|
2019-01-21 07:22:32 -08:00
|
|
|
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; }
|
2017-11-20 02:12:49 -08:00
|
|
|
Efl.Ui.Format.format_cb { set; }
|
|
|
|
}
|
|
|
|
events {
|
efl: Add missing event types
Summary:
All events must have a type now, otherwise bindings don't know how to handle
the event_info field.
Most of the missing event types were actually "void" (no event_info present).
Some struct definitions had to be moved to eo instead of h files, so they
are available to bindings. Some have not, and are marked with FIXME.
Some namespaces have been fixed (like Efl_Event_Cb -> Efl.Event_Cb).
In general, there are hundreds of changed files, but mostly to add a type which
was not present before, so there's no harm done.
Also, A lot of FIXMEs have been added which should be, like, fixed.
For example, some events can send different types of event_info, which is
very inconvenient (and error prone).
Test Plan: make with c# bindings works, make check and make examples work too.
Reviewers: cedric, q66, lauromoura
Subscribers: zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6169
2018-05-11 08:20:40 -07:00
|
|
|
changed: void; [[Called when spin changed]]
|
|
|
|
min,reached: void; [[Called when spin value reached min]]
|
|
|
|
max,reached: void; [[Called when spin value reached max]]
|
2017-11-20 02:12:49 -08:00
|
|
|
}
|
|
|
|
}
|