summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_widget.eo
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-14 11:59:44 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-18 13:22:52 +0900
commitf3eff6eb3ee6e9b56c0be5cd7f8905f14b388e4f (patch)
tree473b3d1b3e56cc5875d4496bf40fe8279165e132 /src/lib/elementary/elm_widget.eo
parentcb3b4cc8d7794bea575a85325c8a58f25f0507b2 (diff)
efl: Introduce Eina.Rect and switch EO APIs to it
It's a complex struct but defined in EO as a simple struct. ABI-wise it's equivalent to Eina_Rectangle. Some macros that use Eina_Rectangle also work on Eina_Rect out of the box, most of the code dealing with x,y,w,h will require no modifications either. But Eina_Rect provides direct access to a size or position 2d component, as well as the usual x,y,w,h. The field "rect" is provided as a convenience for code dealing with both Eina_Rectangle and Eina_Rect. We may or may not require it. Note: Size2D could use unsigned values but I have spotted a few places in the code that actually use -1 to indicate invalid size (as opposed to 0x0). @feature
Diffstat (limited to 'src/lib/elementary/elm_widget.eo')
-rw-r--r--src/lib/elementary/elm_widget.eo10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/elementary/elm_widget.eo b/src/lib/elementary/elm_widget.eo
index 5dab902010..babe00c17b 100644
--- a/src/lib/elementary/elm_widget.eo
+++ b/src/lib/elementary/elm_widget.eo
@@ -4,7 +4,7 @@ function Efl.Ui.Scrollable_On_Show_Region {
4 [[Function pointer for on show region hook]] 4 [[Function pointer for on show region hook]]
5 params { 5 params {
6 @in obj: Efl.Canvas.Object; [[Canvas object]] 6 @in obj: Efl.Canvas.Object; [[Canvas object]]
7 @in region: Eina.Rectangle; [[Showed region]] 7 @in region: Eina.Rect; [[Showed region]]
8 } 8 }
9}; 9};
10 10
@@ -435,14 +435,14 @@ abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
435 unchanged. 435 unchanged.
436 ]] 436 ]]
437 values { 437 values {
438 region: Eina.Rectangle; [[The region of interest.]] 438 region: Eina.Rect; [[The region of interest.]]
439 force: bool; [[Set to $true to force show even if unchanged.]] 439 force: bool; [[Set to $true to force show even if unchanged.]]
440 } 440 }
441 } 441 }
442 get { 442 get {
443 [[Returns the current region of interest.]] 443 [[Returns the current region of interest.]]
444 values { 444 values {
445 region: Eina.Rectangle; [[The region of interest.]] 445 region: Eina.Rect; [[The region of interest.]]
446 } 446 }
447 } 447 }
448 } 448 }
@@ -484,7 +484,7 @@ abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
484 get { 484 get {
485 } 485 }
486 values { 486 values {
487 region: Eina.Rectangle; 487 region: Eina.Rect;
488 [[The relative region to show. If width or height is <= 0 it 488 [[The relative region to show. If width or height is <= 0 it
489 will be ignored, and no action will be taken.]] 489 will be ignored, and no action will be taken.]]
490 } 490 }
@@ -512,7 +512,7 @@ abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
512 [[This is a read-only property.]] 512 [[This is a read-only property.]]
513 } 513 }
514 values { 514 values {
515 region: Eina.Rectangle; [[The rectangle area.]] 515 region: Eina.Rect; [[The rectangle area.]]
516 } 516 }
517 } 517 }
518 @property focus_highlight_enabled { 518 @property focus_highlight_enabled {