X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=plugins%2Fdali-swig%2FSWIG%2Fevents%2Fbutton-event.i;h=7dbf6afc5b2b5b806aa2784aa1ed00406d572a55;hb=d6f1c901d74aef4e66ffb6565bb61de952a090a3;hp=e7664822ae99820c01e9016c2061f1b1e83d16b6;hpb=ee2676c4dfd4ec5e1cb7078acf2ead93fc4c9051;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/plugins/dali-swig/SWIG/events/button-event.i b/plugins/dali-swig/SWIG/events/button-event.i index e766482..7dbf6af 100644 --- a/plugins/dali-swig/SWIG/events/button-event.i +++ b/plugins/dali-swig/SWIG/events/button-event.i @@ -97,40 +97,29 @@ public class StateChangedEventArgs : EventArgs } } - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate bool ClickedEventHandler(object source, ClickedEventArgs e); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate bool PressedEventHandler(object source, PressedEventArgs e); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate bool ReleasedEventHandler(object source, ReleasedEventArgs e); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate bool StateChangedEventHandler(object source, StateChangedEventArgs e); [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ClickedCallbackDelegate(global::System.IntPtr data); - private ClickedEventHandler _buttonClickedEventHandler; + private DaliEventHandlerWithReturnType _buttonClickedEventHandler; private ClickedCallbackDelegate _buttonClickedCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool PressedCallbackDelegate(global::System.IntPtr data); - private PressedEventHandler _buttonPressedEventHandler; + private DaliEventHandlerWithReturnType _buttonPressedEventHandler; private PressedCallbackDelegate _buttonPressedCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ReleasedCallbackDelegate(global::System.IntPtr data); - private ReleasedEventHandler _buttonReleasedEventHandler; + private DaliEventHandlerWithReturnType _buttonReleasedEventHandler; private ReleasedCallbackDelegate _buttonReleasedCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool StateChangedCallbackDelegate(global::System.IntPtr data); - private StateChangedEventHandler _buttonStateChangedEventHandler; + private DaliEventHandlerWithReturnType _buttonStateChangedEventHandler; private StateChangedCallbackDelegate _buttonStateChangedCallbackDelegate; - public event ClickedEventHandler Clicked + public event DaliEventHandlerWithReturnType Clicked { add { @@ -177,7 +166,7 @@ public class StateChangedEventArgs : EventArgs } - public event PressedEventHandler Pressed + public event DaliEventHandlerWithReturnType Pressed { add { @@ -224,7 +213,7 @@ public class StateChangedEventArgs : EventArgs } - public event ReleasedEventHandler Released + public event DaliEventHandlerWithReturnType Released { add { @@ -271,7 +260,7 @@ public class StateChangedEventArgs : EventArgs } - public event StateChangedEventHandler StateChanged + public event DaliEventHandlerWithReturnType StateChanged { add { @@ -323,6 +312,159 @@ public class StateChangedEventArgs : EventArgs return ret; } + public Dali.Property.Map UnselectedVisual + { + get + { + Dali.Property.Map temp = new Dali.Property.Map(); + GetProperty( Button.Property.UNSELECTED_VISUAL).Get( temp ); + return temp; + } + set + { + SetProperty( Button.Property.UNSELECTED_VISUAL, new Dali.Property.Value( value ) ); + } + } + + public Dali.Property.Map SelectedVisual + { + get + { + Dali.Property.Map temp = new Dali.Property.Map(); + GetProperty( Button.Property.SELECTED_VISUAL).Get( temp ); + return temp; + } + set + { + SetProperty( Button.Property.SELECTED_VISUAL, new Dali.Property.Value( value ) ); + } + } + + public Dali.Property.Map DisabledSelectedVisual + { + get + { + Dali.Property.Map temp = new Dali.Property.Map(); + GetProperty( Button.Property.DISABLED_SELECTED_VISUAL).Get( temp ); + return temp; + } + set + { + SetProperty( Button.Property.DISABLED_SELECTED_VISUAL, new Dali.Property.Value( value ) ); + } + } + + public Dali.Property.Map DisabledUnselectedVisual + { + get + { + Dali.Property.Map temp = new Dali.Property.Map(); + GetProperty( Button.Property.DISABLED_UNSELECTED_VISUAL).Get( temp ); + return temp; + } + set + { + SetProperty( Button.Property.DISABLED_UNSELECTED_VISUAL, new Dali.Property.Value( value ) ); + } + } + + public Dali.Property.Map UnselectedBackgroundVisual + { + get + { + Dali.Property.Map temp = new Dali.Property.Map(); + GetProperty( Button.Property.UNSELECTED_BACKGROUND_VISUAL).Get( temp ); + return temp; + } + set + { + SetProperty( Button.Property.UNSELECTED_BACKGROUND_VISUAL, new Dali.Property.Value( value ) ); + } + } + + public Dali.Property.Map SelectedBackgroundVisual + { + get + { + Dali.Property.Map temp = new Dali.Property.Map(); + GetProperty( Button.Property.SELECTED_BACKGROUND_VISUAL).Get( temp ); + return temp; + } + set + { + SetProperty( Button.Property.SELECTED_BACKGROUND_VISUAL, new Dali.Property.Value( value ) ); + } + } + + public Dali.Property.Map DisabledUnselectedBackgroundVisual + { + get + { + Dali.Property.Map temp = new Dali.Property.Map(); + GetProperty( Button.Property.DISABLED_UNSELECTED_BACKGROUND_VISUAL).Get( temp ); + return temp; + } + set + { + SetProperty( Button.Property.DISABLED_UNSELECTED_BACKGROUND_VISUAL, new Dali.Property.Value( value ) ); + } + } + + public Dali.Property.Map DisabledSelectedBackgroundVisual + { + get + { + Dali.Property.Map temp = new Dali.Property.Map(); + GetProperty( Button.Property.DISABLED_SELECTED_BACKGROUND_VISUAL).Get( temp ); + return temp; + } + set + { + SetProperty( Button.Property.DISABLED_SELECTED_BACKGROUND_VISUAL, new Dali.Property.Value( value ) ); + } + } + + public string LabelRelativeAlignment + { + get + { + string temp; + GetProperty( Button.Property.LABEL_RELATIVE_ALIGNMENT).Get( out temp ); + return temp; + } + set + { + SetProperty( Button.Property.LABEL_RELATIVE_ALIGNMENT, new Dali.Property.Value( value ) ); + } + } + + public Vector4 LabelPadding + { + get + { + Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f); + GetProperty( Button.Property.LABEL_PADDING).Get( temp ); + return temp; + } + set + { + SetProperty( Button.Property.LABEL_PADDING, new Dali.Property.Value( value ) ); + } + } + + public Vector4 VisualPadding + { + get + { + Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f); + GetProperty( Button.Property.VISUAL_PADDING).Get( temp ); + return temp; + } + set + { + SetProperty( Button.Property.VISUAL_PADDING, new Dali.Property.Value( value ) ); + } + } %} %enddef