forked from enlightenment/efl
204 lines
6.7 KiB
Plaintext
204 lines
6.7 KiB
Plaintext
type slider_func_type: __undefined_type; [[Elementary slider function type]]
|
|
type slider_freefunc_type: __undefined_type; [[Elementary slider free function type]]
|
|
|
|
class Elm.Slider (Elm.Layout, Efl.Ui.Progress,
|
|
Efl.Orientation,
|
|
Elm.Interface.Atspi.Value,
|
|
Elm.Interface.Atspi_Widget_Action)
|
|
{
|
|
[[Elementary slider class]]
|
|
legacy_prefix: elm_slider;
|
|
eo_prefix: elm_obj_slider;
|
|
event_prefix: elm_slider;
|
|
methods {
|
|
@property indicator_format {
|
|
set {
|
|
[[Set the format string for the indicator label.
|
|
|
|
The slider may display its value somewhere else then unit label,
|
|
for example, above the slider knob that is dragged around. This
|
|
function sets the format string used for this.
|
|
|
|
If $null, indicator label won't be visible. If not it sets the
|
|
format string for the label text. To the label text is provided
|
|
a floating point value, so the label text can display up to 1
|
|
floating point value. Note that this is optional.
|
|
|
|
Use a format string such as "%1.2f meters" for example, and it
|
|
will display values like: "3.14 meters" for a value equal to
|
|
3.14159.
|
|
|
|
Default is indicator label disabled.
|
|
]]
|
|
}
|
|
get {
|
|
[[Get the indicator label format of the slider.
|
|
|
|
The slider may display its value somewhere else then unit label,
|
|
for example, above the slider knob that is dragged around. This
|
|
function gets the format string used for this.
|
|
]]
|
|
}
|
|
values {
|
|
indicator: string @nullable; [[The format string for the indicator display.]]
|
|
}
|
|
}
|
|
@property indicator_show {
|
|
set {
|
|
[[Set whether to enlarge slider indicator (augmented knob) or not.
|
|
|
|
By default, indicator will be bigger while dragged by the user.
|
|
|
|
Warning: It won't display values set with @.indicator_format.set
|
|
if you disable indicator.
|
|
]]
|
|
}
|
|
get {
|
|
[[Get whether a given slider widget's enlarging indicator or not.]]
|
|
}
|
|
values {
|
|
show: bool; [[$true will make it enlarge, $false will
|
|
let the knob always at default size.]]
|
|
}
|
|
}
|
|
@property min_max {
|
|
set {
|
|
[[Set the minimum and maximum values for the slider.
|
|
|
|
Define the allowed range of values to be selected by the user.
|
|
|
|
If actual value is less than $min, it will be updated to $min.
|
|
If it is bigger then $max, will be updated to $max. Actual value
|
|
can be get with @Efl.Ui.Progress.progress_value.get
|
|
|
|
By default, min is equal to 0.0, and max is equal to 1.0.
|
|
|
|
Warning: maximum must be greater than minimum, otherwise behavior
|
|
is undefined.
|
|
]]
|
|
}
|
|
get {
|
|
[[Get the minimum and maximum values of the slider.
|
|
|
|
Note: If only one value is needed, the other pointer can be passed
|
|
as $null.
|
|
]]
|
|
}
|
|
values {
|
|
min: double; [[The minimum value.]]
|
|
max: double; [[The maximum value.]]
|
|
}
|
|
}
|
|
@property indicator_show_on_focus {
|
|
set {
|
|
[[Show the indicator of slider on focus.]]
|
|
}
|
|
get {
|
|
[[Get whether the indicator of the slider is set or not.]]
|
|
}
|
|
values {
|
|
flag: bool; [[$true if indicator is shown on focus, $false otherwise]]
|
|
}
|
|
}
|
|
@property step {
|
|
set {
|
|
[[Set the step by which slider indicator will move.
|
|
|
|
This value is used when draggable object is moved automatically
|
|
i.e., in case of key event when up/down/left/right key is pressed
|
|
or in case when accessibility is set and flick event is used to
|
|
inc/dec slider values. By default step value is equal to 0.05.
|
|
|
|
@since 1.8
|
|
]]
|
|
}
|
|
get {
|
|
[[Get the step by which slider indicator moves.
|
|
|
|
@since 1.8
|
|
]]
|
|
}
|
|
values {
|
|
step: double; [[The step value.]]
|
|
}
|
|
}
|
|
@property indicator_visible_mode {
|
|
set {
|
|
[[Set the visible mode of indicator.]]
|
|
}
|
|
get {
|
|
[[Get the visible mode of indicator.]]
|
|
}
|
|
values {
|
|
indicator_visible_mode: Efl.Ui.Slider.Indicator_Visible_Mode; [[The indicator visible mode.]]
|
|
}
|
|
}
|
|
@property indicator_format_function {
|
|
set {
|
|
[[Set the format function pointer for the indicator label
|
|
|
|
Set the callback function to format the indicator string.
|
|
]]
|
|
}
|
|
values {
|
|
func: slider_func_type @nullable; [[The indicator format function.]]
|
|
free_func: slider_freefunc_type @nullable; [[The freeing function for the format string.]]
|
|
}
|
|
}
|
|
@property range_enabled {
|
|
[[ This enables two indicators in slider.
|
|
|
|
@since 1.18
|
|
]]
|
|
set { }
|
|
get { }
|
|
values {
|
|
enable: bool; [[$true if two indicators are enabled, $false otherwise]]
|
|
}
|
|
}
|
|
@property range {
|
|
[[ Sets up a start and end range point for the slider
|
|
|
|
@since 1.18
|
|
]]
|
|
set { }
|
|
get { }
|
|
values {
|
|
from: double; [[Range minimum value]]
|
|
to: double; [[Range maximum value]]
|
|
}
|
|
}
|
|
}
|
|
implements {
|
|
class.constructor;
|
|
Efl.Object.constructor;
|
|
Efl.Canvas.Group.group_calculate;
|
|
Efl.Canvas.Group.group_add;
|
|
Efl.Canvas.Group.group_del;
|
|
Elm.Widget.theme_apply;
|
|
Elm.Widget.activate;
|
|
Elm.Widget.focus_next_manager_is;
|
|
Elm.Widget.focus_direction_manager_is;
|
|
Elm.Widget.on_focus;
|
|
Elm.Widget.event;
|
|
Elm.Layout.text_aliases.get;
|
|
Elm.Layout.content_aliases.get;
|
|
Elm.Layout.sizing_eval;
|
|
Efl.Ui.Progress.span_size;
|
|
Efl.Ui.Progress.progress_value;
|
|
Efl.Ui.Progress.unit_format;
|
|
Efl.Orientation.orientation;
|
|
Elm.Interface.Atspi.Value.value_and_text.get;
|
|
Elm.Interface.Atspi.Value.value_and_text.set;
|
|
Elm.Interface.Atspi.Value.range.get;
|
|
Elm.Interface.Atspi.Value.increment.get;
|
|
Elm.Interface.Atspi_Widget_Action.elm_actions.get;
|
|
}
|
|
events {
|
|
changed; [[Called when slider changed]]
|
|
delay,changed; [[Called when delay changed]]
|
|
slider,drag,start; [[Called when slider drag started]]
|
|
slider,drag,stop; [[Called when slider drag stopped]]
|
|
}
|
|
}
|