summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSidharth Gupta <sid92.gupta@samsung.com>2017-02-17 15:46:09 +0900
committerSidharth Gupta <sid92.gupta@samsung.com>2017-02-17 15:50:28 +0900
commit5b204cfabbde74197dc3b9cc029450e015d86fe9 (patch)
tree06d65c4169e519595f5a0ed194878e9b75349d50
parentb71c87c927b186a1630c22e34f8bca09525a2842 (diff)
downloadelm-sharp-5b204cfabbde74197dc3b9cc029450e015d86fe9.tar.gz
elm-sharp-5b204cfabbde74197dc3b9cc029450e015d86fe9.tar.bz2
elm-sharp-5b204cfabbde74197dc3b9cc029450e015d86fe9.zip
Add missing methods to ContextPopup
Added: - Method to clear context popup items - Method to get direction priorities Signed-off-by: Sidharth Gupta <sid92.gupta@samsung.com> Change-Id: I5df26e45440d51f03d2647324ad869f5c9469f41
-rw-r--r--ElmSharp/ElmSharp/ContextPopup.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/ElmSharp/ElmSharp/ContextPopup.cs b/ElmSharp/ElmSharp/ContextPopup.cs
index cb1fe2f..7350760 100644
--- a/ElmSharp/ElmSharp/ContextPopup.cs
+++ b/ElmSharp/ElmSharp/ContextPopup.cs
@@ -82,11 +82,26 @@ namespace ElmSharp
}
}
+ public void Clear()
+ {
+ Interop.Elementary.elm_ctxpopup_clear(Handle);
+ }
+
public void SetDirectionPriorty(ContextPopupDirection first, ContextPopupDirection second, ContextPopupDirection third, ContextPopupDirection fourth)
{
Interop.Elementary.elm_ctxpopup_direction_priority_set(Handle, (int)first, (int)second, (int)third, (int)fourth);
}
+ public void GetDirectionPriority(out ContextPopupDirection first, out ContextPopupDirection second, out ContextPopupDirection third, out ContextPopupDirection fourth)
+ {
+ int firstOut, secondOut, thirdOut, fourthOut;
+ Interop.Elementary.elm_ctxpopup_direction_priority_get(Handle, out firstOut, out secondOut, out thirdOut, out fourthOut);
+ first = (ContextPopupDirection)firstOut;
+ second = (ContextPopupDirection)secondOut;
+ third = (ContextPopupDirection)thirdOut;
+ fourth = (ContextPopupDirection)fourthOut;
+ }
+
public ContextPopupItem Append(string label)
{
return Append(label, null);