2019-08-22 05:41:58 -07:00
|
|
|
import efl_ui_layout_orientable;
|
|
|
|
|
declare first round of classes stable
this stabelizes the "stableized" column of the efl: api workboard.
fixes T8208,
fixes T8158,
fixes T8156,
fixes T8025,
fixes T8024,
fixes T7976,
fixes T7946,
fixes T7928,
fixes T7923,
fixes T7905,
fixes T7902,
fixes T7901,
fixes T7900,
fixes T7898,
fixes T7897,
fixes T7895,
fixes T7894,
fixes T7893,
fixes T7891,
fixes T7880,
fixes T7873,
fixes T7869,
fixes T7867,
fixes T7865,
fixes T7862,
fixes T7854,
fixes T7847,
fixes T7881,
fixes T7870,
fixes T9086
Differential Revision: https://phab.enlightenment.org/D10008
2019-09-09 02:23:04 -07:00
|
|
|
enum Efl.Ui.Scrollbar_Mode
|
2017-12-18 04:08:25 -08:00
|
|
|
{
|
2019-10-14 00:55:52 -07:00
|
|
|
[[When should the scrollbar be shown. @since 1.23]]
|
2019-09-02 02:57:27 -07:00
|
|
|
auto = 0, [[Visible if necessary.]]
|
|
|
|
on, [[Always visible.]]
|
|
|
|
off, [[Always invisible.]]
|
|
|
|
last [[For internal use only.]]
|
2017-12-18 04:08:25 -08:00
|
|
|
}
|
|
|
|
|
declare first round of classes stable
this stabelizes the "stableized" column of the efl: api workboard.
fixes T8208,
fixes T8158,
fixes T8156,
fixes T8025,
fixes T8024,
fixes T7976,
fixes T7946,
fixes T7928,
fixes T7923,
fixes T7905,
fixes T7902,
fixes T7901,
fixes T7900,
fixes T7898,
fixes T7897,
fixes T7895,
fixes T7894,
fixes T7893,
fixes T7891,
fixes T7880,
fixes T7873,
fixes T7869,
fixes T7867,
fixes T7865,
fixes T7862,
fixes T7854,
fixes T7847,
fixes T7881,
fixes T7870,
fixes T9086
Differential Revision: https://phab.enlightenment.org/D10008
2019-09-09 02:23:04 -07:00
|
|
|
interface Efl.Ui.Scrollbar
|
2017-12-18 04:08:25 -08:00
|
|
|
{
|
2019-09-24 11:51:01 -07:00
|
|
|
[[Interface used by widgets which can display scrollbars, enabling them to hold more content
|
|
|
|
than actually visible through the viewport.
|
|
|
|
A scrollbar contains a draggable part (thumb) which allows the user to move the viewport
|
|
|
|
around the content. The size of the thumb relates to the size of the viewport compared to
|
|
|
|
the whole content.
|
2019-10-14 00:55:52 -07:00
|
|
|
|
|
|
|
@since 1.23
|
2019-09-24 11:51:01 -07:00
|
|
|
]]
|
2017-12-18 04:08:25 -08:00
|
|
|
methods {
|
|
|
|
@property bar_mode {
|
2019-09-24 11:51:01 -07:00
|
|
|
[[Scrollbar visibility mode, for each of the scrollbars.]]
|
2017-12-18 04:08:25 -08:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2019-09-24 11:51:01 -07:00
|
|
|
hbar: Efl.Ui.Scrollbar_Mode(Efl.Ui.Scrollbar_Mode.auto); [[Horizontal scrollbar mode.]]
|
|
|
|
vbar: Efl.Ui.Scrollbar_Mode(Efl.Ui.Scrollbar_Mode.auto); [[Vertical scrollbar mode.]]
|
2017-12-18 04:08:25 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@property bar_size {
|
2019-09-24 11:51:01 -07:00
|
|
|
[[This returns the relative size the thumb should have, given the current size of the viewport and
|
|
|
|
the content.
|
|
|
|
$[0.0] means the viewport is much smaller than the content: the thumb will have its minimum size.
|
|
|
|
$[1.0] means the viewport has the same size as the content (or bigger): the thumb will have the same
|
|
|
|
size as the scrollbar and cannot move.
|
|
|
|
]]
|
2017-12-18 04:08:25 -08:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2019-09-24 11:51:01 -07:00
|
|
|
width: double; [[Value between $[0.0] and $[1.0].]]
|
|
|
|
height: double; [[Value between $[0.0] and $[1.0].]]
|
2017-12-18 04:08:25 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@property bar_position {
|
2019-09-24 11:51:01 -07:00
|
|
|
[[Position of the thumb (the draggable zone) inside the scrollbar.
|
|
|
|
It is calculated based on current position of the viewport inside the total content.
|
2017-12-18 04:08:25 -08:00
|
|
|
]]
|
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2019-09-24 11:51:01 -07:00
|
|
|
posx: double; [[Value between $[0.0] (the left side of the thumb is touching the left edge of the widget)
|
|
|
|
and $[1.0] (the right side of the thumb is touching the right edge of the widget).]]
|
|
|
|
posy: double; [[Value between $[0.0] (the top side of the thumb is touching the top edge of the widget)
|
|
|
|
and $[1.0] (the bottom side of the thumb is touching the bottom edge of the widget).]]
|
2017-12-18 04:08:25 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
bar_visibility_update @protected @beta{
|
2019-07-08 07:56:49 -07:00
|
|
|
[[Update bar visibility.
|
2017-12-18 04:08:25 -08:00
|
|
|
|
2019-07-08 07:56:49 -07:00
|
|
|
The object will call this function whenever the bar
|
|
|
|
needs to be shown or hidden.
|
2017-12-18 04:08:25 -08:00
|
|
|
]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
events {
|
2019-09-24 11:51:01 -07:00
|
|
|
bar,pressed: Efl.Ui.Layout_Orientation; [[Emitted when thumb is pressed.]]
|
|
|
|
bar,unpressed: Efl.Ui.Layout_Orientation; [[Emitted when thumb is unpressed.]]
|
|
|
|
bar,dragged: Efl.Ui.Layout_Orientation; [[Emitted when thumb is dragged.]]
|
|
|
|
bar,size,changed: void; [[Emitted when thumb size has changed.]]
|
|
|
|
bar,pos,changed: void; [[Emitted when thumb position has changed.]]
|
|
|
|
bar,show: Efl.Ui.Layout_Orientation; [[Emitted when scrollbar is shown.]]
|
|
|
|
bar,hide: Efl.Ui.Layout_Orientation; [[Emitted when scrollbar is hidden.]]
|
2017-12-18 04:08:25 -08:00
|
|
|
}
|
|
|
|
}
|