return false;
}
- public static Button GetButtonFromPtr(global::System.IntPtr cPtr) {
+ internal static Button GetButtonFromPtr(global::System.IntPtr cPtr) {
Button ret = new Button(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
- public Vector4 VisualPadding
+ public Vector4 ForegroundVisualPadding
{
get
{
Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
- GetProperty( Button.Property.VISUAL_PADDING).Get( temp );
+ GetProperty( Button.Property.FOREGROUND_VISUAL_PADDING).Get( temp );
return temp;
}
set
{
- SetProperty( Button.Property.VISUAL_PADDING, new Dali.Property.Value( value ) );
+ SetProperty( Button.Property.FOREGROUND_VISUAL_PADDING, new Dali.Property.Value( value ) );
}
}
- public class Property : global::System.IDisposable {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- protected bool swigCMemOwn;
-
- internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~Property() {
- Dispose();
- }
-
- public virtual void Dispose() {
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_Button_Property(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- }
- }
-
+ public class Property
+ {
public static readonly int UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_VISUAL_get();
public static readonly int SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_VISUAL_get();
public static readonly int DISABLED_SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_VISUAL_get();
public static readonly int DISABLED_SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_BACKGROUND_VISUAL_get();
public static readonly int LABEL_RELATIVE_ALIGNMENT = NDalicManualPINVOKE.Button_Property_LABEL_RELATIVE_ALIGNMENT_get();
public static readonly int LABEL_PADDING = NDalicManualPINVOKE.Button_Property_LABEL_PADDING_get();
- public static readonly int VISUAL_PADDING = NDalicManualPINVOKE.Button_Property_VISUAL_PADDING_get();
-
- public Property() : this(NDalicPINVOKE.new_Button_Property(), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public static readonly int DISABLED = NDalicPINVOKE.Button_Property_DISABLED_get();
+ public static readonly int FOREGROUND_VISUAL_PADDING = NDalicManualPINVOKE.Button_Property_VISUAL_PADDING_get();
+
public static readonly int AUTO_REPEATING = NDalicPINVOKE.Button_Property_AUTO_REPEATING_get();
public static readonly int INITIAL_AUTO_REPEATING_DELAY = NDalicPINVOKE.Button_Property_INITIAL_AUTO_REPEATING_DELAY_get();
public static readonly int NEXT_AUTO_REPEATING_DELAY = NDalicPINVOKE.Button_Property_NEXT_AUTO_REPEATING_DELAY_get();
public static readonly int TOGGLABLE = NDalicPINVOKE.Button_Property_TOGGLABLE_get();
public static readonly int SELECTED = NDalicPINVOKE.Button_Property_SELECTED_get();
- public static readonly int UNSELECTED_STATE_IMAGE = NDalicPINVOKE.Button_Property_UNSELECTED_STATE_IMAGE_get();
- public static readonly int SELECTED_STATE_IMAGE = NDalicPINVOKE.Button_Property_SELECTED_STATE_IMAGE_get();
- public static readonly int DISABLED_STATE_IMAGE = NDalicPINVOKE.Button_Property_DISABLED_STATE_IMAGE_get();
public static readonly int UNSELECTED_COLOR = NDalicPINVOKE.Button_Property_UNSELECTED_COLOR_get();
public static readonly int SELECTED_COLOR = NDalicPINVOKE.Button_Property_SELECTED_COLOR_get();
public static readonly int LABEL = NDalicPINVOKE.Button_Property_LABEL_get();
- public static readonly int LABEL_TEXT = NDalicPINVOKE.Button_Property_LABEL_TEXT_get();
-
}
public Button() : this(NDalicPINVOKE.new_Button__SWIG_0(), true) {
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- public Button Assign(Button button) {
- Button ret = new Button(NDalicPINVOKE.Button_Assign(swigCPtr, Button.getCPtr(button)), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
public new static Button DownCast(BaseHandle handle) {
Button ret = new Button(NDalicPINVOKE.Button_DownCast(BaseHandle.getCPtr(handle)), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
- public bool IsDisabled() {
- bool ret = NDalicPINVOKE.Button_IsDisabled(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool IsAutoRepeating() {
- bool ret = NDalicPINVOKE.Button_IsAutoRepeating(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public float GetInitialAutoRepeatingDelay() {
- float ret = NDalicPINVOKE.Button_GetInitialAutoRepeatingDelay(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public float GetNextAutoRepeatingDelay() {
- float ret = NDalicPINVOKE.Button_GetNextAutoRepeatingDelay(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool IsTogglableButton() {
- bool ret = NDalicPINVOKE.Button_IsTogglableButton(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool IsSelected() {
- bool ret = NDalicPINVOKE.Button_IsSelected(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public float GetAnimationTime() {
- float ret = NDalicPINVOKE.Button_GetAnimationTime(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public string GetLabelText() {
- string ret = NDalicPINVOKE.Button_GetLabelText(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void SetLabel(View label) {
- NDalicPINVOKE.Button_SetLabel(swigCPtr, View.getCPtr(label));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void SetButtonImage(Image image) {
- NDalicPINVOKE.Button_SetButtonImage(swigCPtr, Image.getCPtr(image));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void SetSelectedImage(Image image) {
- NDalicPINVOKE.Button_SetSelectedImage(swigCPtr, Image.getCPtr(image));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public View GetButtonImage() {
- View ret = new View(NDalicPINVOKE.Button_GetButtonImage(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public View GetSelectedImage() {
- View ret = new View(NDalicPINVOKE.Button_GetSelectedImage(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public ButtonSignal PressedSignal() {
+ internal ButtonSignal PressedSignal() {
ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_PressedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
- public ButtonSignal ReleasedSignal() {
+ internal ButtonSignal ReleasedSignal() {
ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_ReleasedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
- public ButtonSignal ClickedSignal() {
+ internal ButtonSignal ClickedSignal() {
ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_ClickedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
- public ButtonSignal StateChangedSignal() {
+ internal ButtonSignal StateChangedSignal() {
ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_StateChangedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
- public enum PropertyRange {
- PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
- PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX+1000
- }
-
- 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 );
+ GetProperty( Button.Property.AUTO_REPEATING).Get( out temp );
return temp;
}
set
get
{
float temp = 0.0f;
- GetProperty( Button.Property.INITIAL_AUTO_REPEATING_DELAY).Get( ref temp );
+ GetProperty( Button.Property.INITIAL_AUTO_REPEATING_DELAY).Get( out temp );
return temp;
}
set
get
{
float temp = 0.0f;
- GetProperty( Button.Property.NEXT_AUTO_REPEATING_DELAY).Get( ref temp );
+ GetProperty( Button.Property.NEXT_AUTO_REPEATING_DELAY).Get( out temp );
return temp;
}
set
get
{
bool temp = false;
- GetProperty( Button.Property.TOGGLABLE).Get( ref temp );
+ GetProperty( Button.Property.TOGGLABLE).Get( out temp );
return temp;
}
set
get
{
bool temp = false;
- GetProperty( Button.Property.SELECTED).Get( ref temp );
+ GetProperty( Button.Property.SELECTED).Get( out temp );
return temp;
}
set
SetProperty( Button.Property.SELECTED, new Dali.Property.Value( value ) );
}
}
- public Dali.Property.Map UnselectedStateImage
- {
- get
- {
- Dali.Property.Map temp = new Dali.Property.Map();
- GetProperty( Button.Property.UNSELECTED_STATE_IMAGE).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( Button.Property.UNSELECTED_STATE_IMAGE, new Dali.Property.Value( value ) );
- }
- }
- public Dali.Property.Map SelectedStateImage
- {
- get
- {
- Dali.Property.Map temp = new Dali.Property.Map();
- GetProperty( Button.Property.SELECTED_STATE_IMAGE).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( Button.Property.SELECTED_STATE_IMAGE, new Dali.Property.Value( value ) );
- }
- }
- public Dali.Property.Map DisabledStateImage
- {
- get
- {
- Dali.Property.Map temp = new Dali.Property.Map();
- GetProperty( Button.Property.DISABLED_STATE_IMAGE).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( Button.Property.DISABLED_STATE_IMAGE, new Dali.Property.Value( value ) );
- }
- }
public Vector4 UnselectedColor
{
get
{
get
{
- string temp;
- GetProperty( Button.Property.LABEL_TEXT).Get( out temp );
- return temp;
+ Dali.Property.Map map = new Dali.Property.Map();
+ GetProperty( Button.Property.LABEL).Get(map);
+ Dali.Property.Value value = map.Find( Dali.Constants.TextVisualProperty.Text, "Text");
+ string str;
+ value.Get(out str);
+ return str;
}
set
{
- SetProperty( Button.Property.LABEL_TEXT, new Dali.Property.Value( value ) );
+ SetProperty( Button.Property.LABEL, new Dali.Property.Value( value ) );
}
}