Merge "Add missing methods to ContextPopup" into tizen
authorJeonghyun Yun <jh0506.yun@samsung.com>
Mon, 20 Feb 2017 07:59:59 +0000 (23:59 -0800)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Mon, 20 Feb 2017 07:59:59 +0000 (23:59 -0800)
1  2 
src/ElmSharp/ElmSharp/ContextPopup.cs

index 2970af1,7350760..e812c8c
mode 100755,100644..100755
@@@ -82,11 -82,26 +82,26 @@@ namespace ElmShar
              }
          }
  
+         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);
 +            Interop.Elementary.elm_ctxpopup_direction_priority_set(RealHandle, (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);