2 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 %define ACTOR_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
19 %typemap(csimports) NameSpace::ClassName %{
21 using System.Runtime.InteropServices;
26 %define ACTOR_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
27 %typemap(cscode) NameSpace::ClassName %{
29 public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
30 ClassName ret = new ClassName(cPtr, false);
31 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
35 public IntPtr GetPtrfrom ## ClassName ()
37 return (IntPtr)swigCPtr;
48 public bool Visibility
64 return GetCurrentOpacity();
68 public bool StateFocusEnable
72 SetKeyboardFocusable(value);
76 return IsKeyboardFocusable();
88 public bool BatchParent
93 GetProperty( Actor.Property.BATCH_PARENT).Get( ref temp );
98 SetProperty( Actor.Property.BATCH_PARENT, new Dali.Property.Value( value ) );
102 public int SiblingOrder
107 GetProperty( Actor.Property.SIBLING_ORDER).Get( ref temp );
112 SetProperty( Actor.Property.SIBLING_ORDER, new Dali.Property.Value( value ) );
129 %define DALI_ACTOR_EVENTHANDLER_PARAM( NameSpace, ClassName)
131 ACTOR_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
132 ACTOR_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
138 DALI_ACTOR_EVENTHANDLER_PARAM( Dali, Actor);