summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_internal_text_scroller.eo
diff options
context:
space:
mode:
authorDaniel Hirt <hirt.danny@gmail.com>2018-09-07 12:37:18 +0300
committerDaniel Hirt <hirt.danny@gmail.com>2018-11-05 17:31:06 +0200
commit86a8f832ae2b622cd5489e5a01978d494997aaad (patch)
tree1a6f87f33480728f66c022ed2c27be06bcd55abd /src/lib/elementary/efl_ui_internal_text_scroller.eo
parentb5c739acae2c4ac079f0edcc387e22cd95d6673b (diff)
Ui text scroller: add scroller for internal usage
This class inherits Efl.Ui.Scroller and has its own sizing_eval logic to handle the text content sizing as needed. It's kept internal as it only serves Efl.Ui.Text in a scrollable mode.
Diffstat (limited to 'src/lib/elementary/efl_ui_internal_text_scroller.eo')
-rw-r--r--src/lib/elementary/efl_ui_internal_text_scroller.eo45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_internal_text_scroller.eo b/src/lib/elementary/efl_ui_internal_text_scroller.eo
new file mode 100644
index 0000000..7058626
--- /dev/null
+++ b/src/lib/elementary/efl_ui_internal_text_scroller.eo
@@ -0,0 +1,45 @@
1enum Efl.Ui.Text_Scroller_Mode
2{
3 default = 0,
4 singleline = 0,
5 multiline = 1,
6}
7
8class Efl.Ui.Internal_Text_Scroller (Efl.Ui.Scroller)
9{
10 [[Efl ui text scroller class]]
11 methods {
12 @property text_object {
13 [[The Efl.Canvas.Text content of this scroller]]
14 set {
15 [[Sets the given text object as the content of this scroller]]
16 }
17 values {
18 text_obj: Efl.Canvas.Text @nullable;
19 }
20 }
21 @property scroller_mode {
22 [[Mode of operation for the scroller]]
23 set {
24 [[Sets mode to either default (singleline) or multiline]]
25 }
26 values {
27 mode: Efl.Ui.Text_Scroller_Mode;
28 }
29 }
30 @property viewport_clip {
31 [[The viewport's clip object]]
32 get {
33 [[Gets viewport's clip object]]
34 }
35 values {
36 clip: Efl.Object;
37 }
38 }
39 }
40 implements {
41 Efl.Object.constructor;
42 Efl.Object.finalize;
43 Efl.Object.destructor;
44 }
45}