summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_widget.eo
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-30 11:29:08 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-30 17:29:52 +0900
commit00862c3c9c16daab21c903424f13f6d989c1b744 (patch)
tree4c31d5469cf42235314f3d4ae2f0e97699eaebaa /src/lib/elementary/elm_widget.eo
parented68159d34acaedd6165295e8016ffed30f67f3f (diff)
widget: Use rectangle on the stack for region_show
Follow @k-s recommendation and simply use rectangles on the stack rather than by pointer. Ref T5363
Diffstat (limited to 'src/lib/elementary/elm_widget.eo')
-rw-r--r--src/lib/elementary/elm_widget.eo12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/elementary/elm_widget.eo b/src/lib/elementary/elm_widget.eo
index 43652534f0..a2d704d309 100644
--- a/src/lib/elementary/elm_widget.eo
+++ b/src/lib/elementary/elm_widget.eo
@@ -467,6 +467,8 @@ abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
467 scroll_hold_push { 467 scroll_hold_push {
468 [[Push scroll hold]] 468 [[Push scroll hold]]
469 } 469 }
470
471 /* FIXME: property with a Eina.Rectangle */
470 show_region_set { 472 show_region_set {
471 [[Set show region]] 473 [[Set show region]]
472 params { 474 params {
@@ -508,19 +510,21 @@ abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
508 510
509 Note: The region is relative to the top-left corner of the widget, 511 Note: The region is relative to the top-left corner of the widget,
510 i.e. X,Y start from 0,0 to indicate the top-left corner of the 512 i.e. X,Y start from 0,0 to indicate the top-left corner of the
511 widget. 513 widget. W,H must be greater or equal to 1 for this region to be
514 taken into account, otherwise it is ignored.
512 515
513 See also @.focus_region_show. 516 See also @.focus_region_show.
514 ]] 517 ]]
515 get { 518 get {
516 return: bool; [[If $false, @.focus_region_show will not do anything.]]
517 } 519 }
518 values { 520 values {
519 region: Eina.Rectangle; [[The relative region to show.]] 521 region: Eina.Rectangle;
522 [[The relative region to show. If width or height is <= 0 it
523 will be ignored, and no action will be taken.]]
520 } 524 }
521 } 525 }
522 focus_region_show @protected { 526 focus_region_show @protected {
523 [[Show focus region. 527 [[Show the region of interest inside this widget.
524 528
525 See also @.focus_region. 529 See also @.focus_region.
526 ]] 530 ]]