if (_buttonClickedEventHandler != null)
{
//here we send all data to user event handlers
- return _buttonClickedEventHandler(this, e,true);
+ return _buttonClickedEventHandler(this, e);
}
return false;
}
if (_buttonPressedEventHandler != null)
{
//here we send all data to user event handlers
- return _buttonPressedEventHandler(this, e,true);
+ return _buttonPressedEventHandler(this, e);
}
return false;
}
if (_buttonReleasedEventHandler != null)
{
//here we send all data to user event handlers
- return _buttonReleasedEventHandler(this, e, true);
+ return _buttonReleasedEventHandler(this, e);
}
return false;
}
if (_buttonStateChangedEventHandler != null)
{
//here we send all data to user event handlers
- return _buttonStateChangedEventHandler(this, e, true);
+ return _buttonStateChangedEventHandler(this, e);
}
return false;
}
return ret;
}
+
+/* Properties earlier added by Ruby Script */
+
+ public bool Disabled
+ {
+ get
+ {
+ bool temp = false;
+ GetProperty( Button.Property.DISABLED).Get( ref temp );
+ return temp;
+ }
+ set
+ {
+ SetProperty( Button.Property.DISABLED, new Dali.Property.Value( value ) );
+ }
+ }
+ public bool AutoRepeating
+ {
+ get
+ {
+ bool temp = false;
+ GetProperty( Button.Property.AUTO_REPEATING).Get( ref temp );
+ return temp;
+ }
+ set
+ {
+ SetProperty( Button.Property.AUTO_REPEATING, new Dali.Property.Value( value ) );
+ }
+ }
+ public float InitialAutoRepeatingDelay
+ {
+ get
+ {
+ float temp = 0.0f;
+ GetProperty( Button.Property.INITIAL_AUTO_REPEATING_DELAY).Get( ref temp );
+ return temp;
+ }
+ set
+ {
+ SetProperty( Button.Property.INITIAL_AUTO_REPEATING_DELAY, new Dali.Property.Value( value ) );
+ }
+ }
+ public float NextAutoRepeatingDelay
+ {
+ get
+ {
+ float temp = 0.0f;
+ GetProperty( Button.Property.NEXT_AUTO_REPEATING_DELAY).Get( ref temp );
+ return temp;
+ }
+ set
+ {
+ SetProperty( Button.Property.NEXT_AUTO_REPEATING_DELAY, new Dali.Property.Value( value ) );
+ }
+ }
+ public bool Togglable
+ {
+ get
+ {
+ bool temp = false;
+ GetProperty( Button.Property.TOGGLABLE).Get( ref temp );
+ return temp;
+ }
+ set
+ {
+ SetProperty( Button.Property.TOGGLABLE, new Dali.Property.Value( value ) );
+ }
+ }
+ public bool Selected
+ {
+ get
+ {
+ bool temp = false;
+ GetProperty( Button.Property.SELECTED).Get( ref temp );
+ return temp;
+ }
+ set
+ {
+ SetProperty( Button.Property.SELECTED, new Dali.Property.Value( value ) );
+ }
+ }
+ public string UnselectedStateImage
+ {
+ get
+ {
+ string temp;
+ GetProperty( Button.Property.UNSELECTED_STATE_IMAGE).Get( out temp );
+ return temp;
+ }
+ set
+ {
+ SetProperty( Button.Property.UNSELECTED_STATE_IMAGE, new Dali.Property.Value( value ) );
+ }
+ }
+ public string SelectedStateImage
+ {
+ get
+ {
+ string temp;
+ GetProperty( Button.Property.SELECTED_STATE_IMAGE).Get( out temp );
+ return temp;
+ }
+ set
+ {
+ SetProperty( Button.Property.SELECTED_STATE_IMAGE, new Dali.Property.Value( value ) );
+ }
+ }
+ public string DisabledStateImage
+ {
+ get
+ {
+ string temp;
+ GetProperty( Button.Property.DISABLED_STATE_IMAGE).Get( out temp );
+ return temp;
+ }
+ set
+ {
+ SetProperty( Button.Property.DISABLED_STATE_IMAGE, new Dali.Property.Value( value ) );
+ }
+ }
+ public Dali.CSharp.Color UnselectedColor
+ {
+ get
+ {
+ Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
+ GetProperty( Button.Property.UNSELECTED_COLOR).Get( temp );
+ Dali.CSharp.Color ret = new Dali.CSharp.Color(temp.r, temp.g, temp.b, temp.a);
+ return ret;
+ }
+ set
+ {
+ SetProperty( Button.Property.UNSELECTED_COLOR, new Dali.Property.Value( value ) );
+ }
+ }
+ public Dali.CSharp.Color SelectedColor
+ {
+ get
+ {
+ Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
+ GetProperty( Button.Property.SELECTED_COLOR).Get( temp );
+ Dali.CSharp.Color ret = new Dali.CSharp.Color(temp.r, temp.g, temp.b, temp.a);
+ return ret;
+ }
+ set
+ {
+ SetProperty( Button.Property.SELECTED_COLOR, new Dali.Property.Value( value ) );
+ }
+ }
+ public Dali.Property.Map Label
+ {
+ get
+ {
+ Dali.Property.Map temp = new Dali.Property.Map();
+ GetProperty( Button.Property.LABEL).Get( temp );
+ return temp;
+ }
+ set
+ {
+ SetProperty( Button.Property.LABEL, new Dali.Property.Value( value ) );
+ }
+ }
+ public string LabelText
+ {
+ get
+ {
+ string temp;
+ GetProperty( Button.Property.LABEL_TEXT).Get( out temp );
+ return temp;
+ }
+ set
+ {
+ SetProperty( Button.Property.LABEL_TEXT, new Dali.Property.Value( value ) );
+ }
+ }
+
+/* Properties ends */
+
%}
%enddef