From: Jeonghyun Yun Date: Mon, 20 Feb 2017 07:59:59 +0000 (-0800) Subject: Merge "Add missing methods to ContextPopup" into tizen X-Git-Tag: accepted/tizen/common/20170222.124346~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43720391cc4315e706a9df7305be84a1b02682da;p=platform%2Fcore%2Fcsapi%2Felm-sharp.git Merge "Add missing methods to ContextPopup" into tizen --- 43720391cc4315e706a9df7305be84a1b02682da diff --cc ElmSharp/ElmSharp/ContextPopup.cs index 2970af1,7350760..e812c8c mode 100755,100644..100755 --- a/ElmSharp/ElmSharp/ContextPopup.cs +++ b/ElmSharp/ElmSharp/ContextPopup.cs @@@ -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);