summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_widget.eo
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-30 13:39:16 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-30 17:29:52 +0900
commita82ab33bed4a2b8d9f07338cc6e1d41aeab22d84 (patch)
tree75ab2f6558da427952a28cade63bc87615b7a38d /src/lib/elementary/elm_widget.eo
parent4a6b52465df25a671f6298650182900e2f1407da (diff)
widget: Use rectangle in show_region
Also make it a property. It's asymmetric because of the force show argument, but the get is much cleaner. Ref T5363
Diffstat (limited to 'src/lib/elementary/elm_widget.eo')
-rw-r--r--src/lib/elementary/elm_widget.eo51
1 files changed, 29 insertions, 22 deletions
diff --git a/src/lib/elementary/elm_widget.eo b/src/lib/elementary/elm_widget.eo
index 404cfa388e..7a53bf78ac 100644
--- a/src/lib/elementary/elm_widget.eo
+++ b/src/lib/elementary/elm_widget.eo
@@ -414,12 +414,40 @@ abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
414 414
415 /* Scroll API. */ 415 /* Scroll API. */
416 @property on_show_region_hook { 416 @property on_show_region_hook {
417 [[Region hook on show property]] 417 [[Hook function called when the @.show_region is changed.
418
419 See also @.show_region.
420 ]]
418 set {} 421 set {}
419 values { 422 values {
420 func: Efl.Ui.Scrollable_On_Show_Region @nullable; [[Region hook function]] 423 func: Efl.Ui.Scrollable_On_Show_Region @nullable; [[Region hook function]]
421 } 424 }
422 } 425 }
426 @property show_region @protected {
427 [[Region inside the widget to show.
428
429 See also @.on_show_region_hook.
430 ]]
431 set {
432 [[Request parent scrollers to pan around so that this region
433 of the widget becomes visible.
434
435 If $force is $true this will trigger scroller changes and
436 the @.on_show_region_hook to be called even if the region is
437 unchanged.
438 ]]
439 values {
440 region: Eina.Rectangle; [[The region of interest.]]
441 force: bool; [[Set to $true to force show even if unchanged.]]
442 }
443 }
444 get {
445 [[Returns the current region of interest.]]
446 values {
447 region: Eina.Rectangle; [[The region of interest.]]
448 }
449 }
450 }
423 @property item_loop_enabled { 451 @property item_loop_enabled {
424 [[Control item loop feature.]] 452 [[Control item loop feature.]]
425 values { 453 values {
@@ -429,27 +457,6 @@ abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
429 scroll_hold_push { 457 scroll_hold_push {
430 [[Push scroll hold]] 458 [[Push scroll hold]]
431 } 459 }
432
433 /* FIXME: property with a Eina.Rectangle */
434 show_region_set {
435 [[Set show region]]
436 params {
437 @in x: int; [[X coordinate]]
438 @in y: int; [[Y coordinate]]
439 @in w: int; [[Width]]
440 @in h: int; [[Height]]
441 @in forceshow: bool; [[$true if show should be forced, $false otherwise]]
442 }
443 }
444 show_region_get @const {
445 [[Get show region]]
446 params {
447 @out x: int @optional; [[X coordinate]]
448 @out y: int @optional; [[Y coordinate]]
449 @out w: int @optional; [[Width]]
450 @out h: int @optional; [[Height]]
451 }
452 }
453 scroll_hold_pop { 460 scroll_hold_pop {
454 [[Pop scroller hold]] 461 [[Pop scroller hold]]
455 } 462 }