ListMargin = new Vector4(attributes.ListMargin.X, attributes.ListMargin.Y, attributes.ListMargin.Z, attributes.ListMargin.W);
}
- if (attributes.ListSize2D != null)
+ if (attributes.ListSize != null)
{
- ListSize2D = new Size2D(attributes.ListSize2D.Width, attributes.ListSize2D.Height);
+ ListSize = new Size(attributes.ListSize.Width, attributes.ListSize.Height);
}
if (attributes.ListPadding != null)
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D ListSize2D
+ public Size ListSize
{
get;
set;
return;
}
- if (null != attributes.FPS)
+ if (null != attributes.FrameRate)
{
- FPS = attributes.FPS.Clone() as IntSelector;
+ FrameRate = attributes.FrameRate.Clone() as IntSelector;
}
if (null != attributes.LoadingSize)
{
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D LoadingSize
+ public Size LoadingSize
{
get;
set;
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public IntSelector FPS
+ public IntSelector FrameRate
{
get;
set;
if (attributes.IndicatorSize != null)
{
- IndicatorSize = new Size2D(attributes.IndicatorSize.Width, attributes.IndicatorSize.Height);
+ IndicatorSize = new Size(attributes.IndicatorSize.Width, attributes.IndicatorSize.Height);
}
if (attributes.IndicatorBackgroundURL != null)
{
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D IndicatorSize
+ public Size IndicatorSize
{
get;
set;
public TabAttributes() : base()
{
Space = new Vector4(0, 0, 0, 0);
- IsNatureTextWidth = false;
- ItemGap = 0;
+ UseTextNaturalSize = false;
+ ItemSpace = 0;
}
/// <summary>
{
Space = new Vector4(0, 0, 0, 0);
}
- ItemGap = attributes.ItemGap;
- IsNatureTextWidth = attributes.IsNatureTextWidth;
+ ItemSpace = attributes.ItemSpace;
+ UseTextNaturalSize = attributes.UseTextNaturalSize;
}
/// <summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public bool IsNatureTextWidth
+ public bool UseTextNaturalSize
{
get;
set;
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public int ItemGap
+ public int ItemSpace
{
get;
set;
return;
}
- if (attributes.Position2D != null)
+ if (attributes.Position != null)
{
- Position2D = new Position2D(attributes.Position2D.X, attributes.Position2D.Y);
+ Position = new Position(attributes.Position.X, attributes.Position.Y, attributes.Position.Z);
}
- if (attributes.Size2D != null)
+ if (attributes.Size != null)
{
- Size2D = new Size2D(attributes.Size2D.Width, attributes.Size2D.Height);
+ Size = new Size(attributes.Size.Width, attributes.Size.Height, attributes.Size.Depth);
}
if (attributes.BackgroundColor != null)
/// </summary>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Position2D Position2D
+ public Position Position
{
get;
set;
/// </summary>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D Size2D
+ public Size Size
{
get;
set;
/// Button may contain text or an icon.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public class Button : Control
{
private ImageView backgroundImage;
private ImageView buttonIcon;
private ButtonAttributes buttonAttributes;
- private EventHandler<StateChangeEventArgs> stateChangeHander;
+ private EventHandler<StateChangedEventArgs> stateChangeHander;
private bool isSelected = false;
private bool isEnabled = true;
/// Creates a new instance of a Button.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Button() : base()
{
Initialize();
/// An event for the button clicked signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandler<ClickEventArgs> ClickEvent;
/// <summary>
/// An event for the button state changed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<StateChangeEventArgs> StateChangedEvent
+ public event EventHandler<StateChangedEventArgs> StateChangedEvent
{
add
{
/// Icon orientation.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public enum IconOrientation
{
/// <summary>
/// Top.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
Top,
/// <summary>
/// Bottom.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
Bottom,
/// <summary>
/// Left.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
Left,
/// <summary>
/// Right.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
Right,
}
/// <summary>
/// Flag to decide Button can be selected or not.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public bool IsSelectable
{
get
/// Text string in Button.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string Text
{
get
/// Translate text string in Button.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string TranslatableText
{
get
/// Text point size in Button.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public float PointSize
{
get
/// Text font family in Button.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string FontFamily
{
get
/// Text color in Button.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Color TextColor
{
get
/// Text horizontal alignment in Button.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public HorizontalAlignment TextAlignment
{
get
/// Icon image's resource url in Button.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string IconURL
{
get
/// Text string selector in Button.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public StringSelector TextSelector
{
get
/// Translateable text string selector in Button.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public StringSelector TranslatableTextSelector
{
get
/// Text color selector in Button.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public ColorSelector TextColorSelector
{
get
/// Text font size selector in Button.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public FloatSelector PointSizeSelector
{
get
/// Icon image's resource url selector in Button.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public StringSelector IconURLSelector
{
get
/// Flag to decide selected state in Button.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public bool IsSelected
{
get
/// Flag to decide enable or disable in Button.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public bool IsEnabled
{
get
}
}
- /// <summary>
- /// Icon left padding in Button, work only when show icon and text.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int IconPaddingLeft
- {
- get
- {
- return buttonAttributes?.IconAttributes?.PaddingLeft ?? 0;
- }
- set
- {
- CreateIconAttributes();
- buttonAttributes.IconAttributes.PaddingLeft = value;
- RelayoutRequest();
- }
- }
-
- /// <summary>
- /// Icon right padding in Button, work only when show icon and text.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int IconPaddingRight
- {
- get
- {
- return buttonAttributes?.IconAttributes?.PaddingRight ?? 0;
- }
- set
- {
- CreateIconAttributes();
- buttonAttributes.IconAttributes.PaddingRight = value;
- RelayoutRequest();
- }
- }
-
- /// <summary>
- /// Icon top padding in Button, work only when show icon and text.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int IconPaddingTop
- {
- get
- {
- return buttonAttributes?.IconAttributes?.PaddingTop ?? 0;
- }
- set
- {
- CreateIconAttributes();
- buttonAttributes.IconAttributes.PaddingTop = value;
- RelayoutRequest();
- }
- }
-
- /// <summary>
- /// Icon bottom padding in Button, work only when show icon and text.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int IconPaddingBottom
- {
- get
- {
- return buttonAttributes?.IconAttributes?.PaddingBottom ?? 0;
- }
- set
- {
- CreateIconAttributes();
- buttonAttributes.IconAttributes.PaddingBottom = value;
- RelayoutRequest();
- }
- }
-
- /// <summary>
- /// Text left padding in Button, work only when show icon and text.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int TextPaddingLeft
- {
- get
- {
- return buttonAttributes?.TextAttributes?.PaddingLeft ?? 0;
- }
- set
- {
- CreateTextAttributes();
- buttonAttributes.TextAttributes.PaddingLeft = value;
- RelayoutRequest();
- }
- }
-
- /// <summary>
- /// Text right padding in Button, work only when show icon and text.
+ // <summary>
+ /// Icon padding in Button, work only when show icon and text.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int TextPaddingRight
+ public Extents IconPadding
{
get
{
- return buttonAttributes?.TextAttributes?.PaddingRight ?? 0;
+ if (null == buttonAttributes || null == buttonAttributes.IconAttributes)
+ {
+ return null;
+ }
+ else
+ {
+ return new Extents((ushort)buttonAttributes.IconAttributes.PaddingLeft, (ushort)buttonAttributes.IconAttributes.PaddingRight, (ushort)buttonAttributes.IconAttributes.PaddingTop, (ushort)buttonAttributes.IconAttributes.PaddingBottom);
+ }
}
set
{
- CreateTextAttributes();
- buttonAttributes.TextAttributes.PaddingRight = value;
- RelayoutRequest();
+ if (null != value)
+ {
+ CreateIconAttributes();
+ buttonAttributes.IconAttributes.PaddingLeft = value.Start;
+ buttonAttributes.IconAttributes.PaddingRight = value.End;
+ buttonAttributes.IconAttributes.PaddingTop = value.Top;
+ buttonAttributes.IconAttributes.PaddingBottom = value.Bottom;
+ RelayoutRequest();
+ }
}
}
- /// <summary>
- /// Text top padding in Button, work only when show icon and text.
+ // <summary>
+ /// Text padding in Button, work only when show icon and text.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int TextPaddingTop
+ public Extents TextPadding
{
get
{
- return buttonAttributes?.TextAttributes?.PaddingTop ?? 0;
+ if (null == buttonAttributes || null == buttonAttributes.TextAttributes)
+ {
+ return null;
+ }
+ else
+ {
+ return new Extents((ushort)buttonAttributes.TextAttributes.PaddingLeft, (ushort)buttonAttributes.TextAttributes.PaddingRight, (ushort)buttonAttributes.TextAttributes.PaddingTop, (ushort)buttonAttributes.TextAttributes.PaddingBottom);
+ }
}
set
{
- CreateTextAttributes();
- buttonAttributes.TextAttributes.PaddingTop = value;
- RelayoutRequest();
+ if (null != value)
+ {
+ CreateTextAttributes();
+ buttonAttributes.TextAttributes.PaddingLeft = value.Start;
+ buttonAttributes.TextAttributes.PaddingRight = value.End;
+ buttonAttributes.TextAttributes.PaddingTop = value.Top;
+ buttonAttributes.TextAttributes.PaddingBottom = value.Bottom;
+ RelayoutRequest();
+ }
}
}
/// <summary>
- /// Text bottom padding in Button, work only when show icon and text.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int TextPaddingBottom
- {
- get
- {
- return buttonAttributes?.TextAttributes?.PaddingBottom ?? 0;
- }
- set
- {
- CreateTextAttributes();
- buttonAttributes.TextAttributes.PaddingBottom = value;
- RelayoutRequest();
- }
- }
- /// <summary>
/// Dispose Button and all children on it.
/// </summary>
/// <param name="type">Dispose type.</param>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
protected override void Dispose(DisposeTypes type)
{
if (disposed)
/// <param name="key">The key event.</param>
/// <returns>True if the key event should be consumed.</returns>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public override bool OnKey(Key key)
{
if (key.State == Key.StateType.Down)
}
return base.OnKey(key);
}
+
/// <summary>
/// Called when the control gain key input focus. Should be overridden by derived classes if they need to customize what happens when the focus is gained.
/// </summary>
base.OnFocusLost();
UpdateState();
}
+
/// <summary>
/// Tap gesture event callback.
/// </summary>
base.OnTapGestureDetected(source, e);
}
}
-
/// <summary>
/// Called after a touch event is received by the owning view.<br />
/// CustomViewBehaviour.REQUIRES_TOUCH_EVENTS must be enabled during construction. See CustomView(ViewWrapperImpl.CustomViewBehaviour behaviour).<br />
OnUpdate();
- StateChangeEventArgs e = new StateChangeEventArgs
+ StateChangedEventArgs e = new StateChangedEventArgs
{
PreviousState = sourceState,
CurrentState = targetState
/// ClickEventArgs is a class to record button click event arguments which will sent to user.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public class ClickEventArgs : EventArgs
{
}
/// StateChangeEventArgs is a class to record button state change event arguments which will sent to user.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class StateChangeEventArgs : EventArgs
+ public class StateChangedEventArgs : EventArgs
{
/// <summary> previous state of Button </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public ControlStates PreviousState;
/// <summary> current state of Button </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public ControlStates CurrentState;
}
return;
}
- if (attrs.Position2D != null)
+ if (attrs.Position != null)
{
- view.Position2D = attrs.Position2D;
+ view.Position = attrs.Position;
}
- if (attrs.Size2D != null)
+ if (attrs.Size != null)
{
- view.Size2D = attrs.Size2D;
+ view.Size = attrs.Size;
}
if (attrs.MinimumSize != null)
{
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D ButtonIconSize2D
+ public Size ButtonIconSize
{
get
{
- return dropDownAttributes.ButtonAttributes?.IconAttributes?.Size2D;
+ return dropDownAttributes.ButtonAttributes?.IconAttributes?.Size;
}
set
{
if (value != null)
{
CreateButtonIconAttributes();
- dropDownAttributes.ButtonAttributes.IconAttributes.Size2D = value;
+ dropDownAttributes.ButtonAttributes.IconAttributes.Size = value;
RelayoutRequest();
}
}
}
/// <summary>
+ /// Bottom space in list.
+ /// </summary>
+ /// <since_tizen> 6 </since_tizen>
+ /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public int ListBottomMargin
+ {
+ get
+ {
+ return (int)dropDownAttributes.ListMargin.W;
+ }
+ set
+ {
+ dropDownAttributes.ListMargin.W = value;
+ RelayoutRequest();
+ }
+ }
+
+ /// <summary>
/// Focused item index in list.
/// </summary>
/// <since_tizen> 6 </since_tizen>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D ListSize2D
+ public Size ListSize
{
get
{
- return dropDownAttributes.ListSize2D;
+ return dropDownAttributes.ListSize;
}
set
{
- dropDownAttributes.ListSize2D = value;
+ dropDownAttributes.ListSize = value;
RelayoutRequest();
}
}
button.IconURLSelector = dropDownAttributes.ButtonAttributes.IconAttributes.ResourceURL;
int iconWidth = 0;
int buttonTextWidth = 0;
- if (dropDownAttributes.ButtonAttributes.IconAttributes.Size2D != null)
+ if (dropDownAttributes.ButtonAttributes.IconAttributes.Size != null)
{
- iconWidth = dropDownAttributes.ButtonAttributes.IconAttributes.Size2D.Width;
+ iconWidth = (int)dropDownAttributes.ButtonAttributes.IconAttributes.Size.Width;
}
if (buttonText.NaturalSize2D != null)
{
}
ApplyAttributes(listBackgroundImage, dropDownAttributes.ListBackgroundImageAttributes);
list.FocusedItemIndex = dropDownAttributes.FocusedItemIndex;
- list.Size2D = dropDownAttributes.ListSize2D;
+ list.Size = dropDownAttributes.ListSize;
list.Padding = dropDownAttributes.ListPadding;
int listBackgroundImageX = 0;
PivotPoint = Tizen.NUI.PivotPoint.TopLeft,
WidthResizePolicy = ResizePolicyType.UseNaturalSize,
HeightResizePolicy = ResizePolicyType.FillToParent,
- Position2D = new Position2D(0, 0),
+ Position = new Position(0, 0),
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
};
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D Size2D
+ public Size Size
{
get
{
- return itemDataAttributes.Size2D;
+ return itemDataAttributes.Size;
}
set
{
- itemDataAttributes.Size2D = value;
+ itemDataAttributes.Size = value;
}
}
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Position2D TextPosition2D
+ public Position TextPosition
{
get
{
- return itemDataAttributes.TextAttributes?.Position2D;
+ return itemDataAttributes.TextAttributes?.Position;
}
set
{
CreateTextAttributes();
- itemDataAttributes.TextAttributes.Position2D = value;
+ itemDataAttributes.TextAttributes.Position = value;
}
}
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D IconSize2D
+ public Size IconSize
{
get
{
- return itemDataAttributes.IconAttributes?.Size2D;
+ return itemDataAttributes.IconAttributes?.Size;
}
set
{
CreateIconAttributes();
- itemDataAttributes.IconAttributes.Size2D = value;
+ itemDataAttributes.IconAttributes.Size = value;
}
}
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Position2D IconPosition2D
+ public Position IconPosition
{
get
{
- return itemDataAttributes.IconAttributes.Position2D;
+ return itemDataAttributes.IconAttributes.Position;
}
set
{
CreateIconAttributes();
- itemDataAttributes.IconAttributes.Position2D = value;
+ itemDataAttributes.IconAttributes.Position = value;
}
}
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D CheckImageSize2D
+ public Size CheckImageSize
{
get
{
- return itemDataAttributes.CheckImageAttributes?.Size2D;
+ return itemDataAttributes.CheckImageAttributes?.Size;
}
set
{
CreateCheckImageAttributes();
- itemDataAttributes.CheckImageAttributes.Size2D = value;
+ itemDataAttributes.CheckImageAttributes.Size = value;
}
}
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Position2D TextPosition2D
+ public Position TextPosition
{
get
{
{
return null;
}
- return mText.Position2D;
+ return mText.Position;
}
set
{
CreateText();
- mText.Position2D = value;
+ mText.Position = value;
}
}
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D IconSize2D
+ public Size IconSize
{
get
{
{
return null;
}
- return mIcon.Size2D;
+ return mIcon.Size;
}
set
{
CreateIcon();
- mIcon.Size2D = value;
+ mIcon.Size = value;
}
}
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Position2D IconPosition2D
+ public Position IconPosition
{
get
{
{
return null;
}
- return mIcon.Position2D;
+ return mIcon.Position;
}
set
{
CreateIcon();
- mIcon.Position2D = value;
+ mIcon.Position = value;
}
}
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Position2D CheckPosition2D
+ public Position CheckPosition
{
get
{
{
return null;
}
- return mCheck.Position2D;
+ return mCheck.Position;
}
set
{
CreateCheckImage();
- mCheck.Position2D = value;
+ mCheck.Position = value;
}
}
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D CheckImageSize2D
+ public Size CheckImageSize
{
get
{
{
return null;
}
- return mCheck.Size2D;
+ return mCheck.Size;
}
set
{
CreateCheckImage();
- mCheck.Size2D = value;
+ mCheck.Size = value;
}
}
}
DropDownItemView listItemView = holder.ItemView as DropDownItemView;
listItemView.Name = "Item" + position;
- if (listItemData.Size2D != null)
+ if (listItemData.Size != null)
{
- holder.ItemView.Size2D = listItemData.Size2D;
+ holder.ItemView.Size = listItemData.Size;
}
if (listItemView != null)
listItemView.Text = listItemData.Text;
listItemView.PointSize = listItemData.PointSize;
listItemView.FontFamily = listItemData.FontFamily;
- listItemView.TextPosition2D = listItemData.TextPosition2D;
+ listItemView.TextPosition = listItemData.TextPosition;
}
if (listItemData.IconResourceUrl != null)
{
listItemView.IconResourceUrl = listItemData.IconResourceUrl;
- listItemView.IconSize2D = listItemData.IconSize2D;
- if (listItemView.IconSize2D != null)
+ listItemView.IconSize = listItemData.IconSize;
+ if (listItemView.IconSize != null)
{
- listItemView.IconPosition2D = new Position2D(listItemData.IconPosition2D.X, (listItemView.Size2D.Height - listItemView.IconSize2D.Height) / 2);
+ listItemView.IconPosition = new Position(listItemData.IconPosition.X, (listItemView.Size2D.Height - listItemView.IconSize.Height) / 2);
}
}
if (listItemData.CheckImageResourceUrl != null)
{
listItemView.CheckResourceUrl = listItemData.CheckImageResourceUrl;
- listItemView.CheckImageSize2D = listItemData.CheckImageSize2D;
- if (listItemView.CheckImageSize2D != null)
+ listItemView.CheckImageSize = listItemData.CheckImageSize;
+ if (listItemView.CheckImageSize != null)
{
- listItemView.CheckPosition2D = new Position2D(listItemView.Size2D.Width - listItemData.CheckImageRightSpace - listItemView.CheckImageSize2D.Width, (listItemView.Size2D.Height - listItemView.CheckImageSize2D.Height) / 2);
+ listItemView.CheckPosition = new Position(listItemView.Size2D.Width - listItemData.CheckImageRightSpace - listItemView.CheckImageSize.Width, (listItemView.Size2D.Height - listItemView.CheckImageSize.Height) / 2);
}
}
}
if (mScrollBar.Direction == ScrollBar.DirectionType.Vertical)
{
- mScrollBar.ThumbSize = new Size2D((int)thickness, (int)length);
+ mScrollBar.ThumbSize = new Size(thickness, length);
}
else
{
- mScrollBar.ThumbSize = new Size2D((int)length, (int)thickness);
+ mScrollBar.ThumbSize = new Size(length, thickness);
}
mScrollBar.MinValue = 0;
mScrollBar.MaxValue = (int)(range - extent);
mFocusedItemIndex = nextFocusPosition;
- ShowScrollBar();
+ ShowScrollBar();
}
private void DispatchChildAttached(ViewHolder holder)
}
}
-
private void OnItemEvent(object sender, Adapter.ItemEventArgs e)
{
switch (e.EventType)
{
}
-
/// <summary>
/// Gets the current focus position in adapter.
/// </summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public int GetChildCount()
+ public int ChildCount
{
- return mChildHelper != null ? mChildHelper.GetChildCount() : 0;
+ get
+ {
+ return mChildHelper != null ? mChildHelper.GetChildCount() : 0;
+ }
}
/// <summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public float GetWidth()
+ public float Width
{
- return mFlexibleView != null ? mFlexibleView.SizeWidth : 0;
+ get
+ {
+ return mFlexibleView != null ? mFlexibleView.SizeWidth : 0;
+ }
}
/// <summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public float GetHeight()
+ public float Height
{
- return mFlexibleView != null ? mFlexibleView.SizeHeight : 0;
+ get
+ {
+ return mFlexibleView != null ? mFlexibleView.SizeHeight : 0;
+ }
}
/// <summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public int GetPaddingLeft()
+ public int PaddingLeft
{
- return mFlexibleView != null ? mFlexibleView.Padding.Start : 0;
+ get
+ {
+ return mFlexibleView?.Padding?.Start ?? 0;
+ }
}
/// <summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public int GetPaddingTop()
+ public int PaddingTop
{
- return mFlexibleView != null ? mFlexibleView.Padding.Top : 0;
+ get
+ {
+ return mFlexibleView?.Padding?.Top ?? 0;
+ }
}
/// <summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public int GetPaddingRight()
+ public int PaddingRight
{
- return mFlexibleView != null ? mFlexibleView.Padding.End : 0;
+ get
+ {
+ return mFlexibleView?.Padding?.End ?? 0;
+ }
}
/// <summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public int GetPaddingBottom()
+ public int PaddingBottom
{
- return mFlexibleView != null ? mFlexibleView.Padding.Bottom : 0;
+ get
+ {
+ return mFlexibleView?.Padding?.Bottom ?? 0;
+ }
}
/// <summary>
private Vector2 GetChildRectangleOnScreenScrollAmount(FlexibleView parent, FlexibleView.ViewHolder child)
{
Vector2 ret = new Vector2(0, 0);
- int parentLeft = GetPaddingLeft();
- int parentTop = GetPaddingTop();
- int parentRight = (int)GetWidth() - GetPaddingRight();
- int parentBottom = (int)GetHeight() - GetPaddingBottom();
+ int parentLeft = PaddingLeft;
+ int parentTop = PaddingTop;
+ int parentRight = (int)Width - PaddingRight;
+ int parentBottom = (int)Height - PaddingBottom;
int childLeft = (int)child.Left;
int childTop = (int)child.Top;
int childRight = (int)child.Right;
else
{
// choose the max span we can get. hopefully last one
- int indexLimit = GetChildCount() - 1;
+ int indexLimit = ChildCount - 1;
int pos = anchorInfo.Position;
int bestSpan = span;
while (pos < indexLimit)
float left, top, width, height;
if (mOrientation == VERTICAL)
{
- width = (GetWidth() - GetPaddingLeft() - GetPaddingRight()) / count;
+ width = (Width - PaddingLeft - PaddingRight) / count;
height = result.Consumed;
if (layoutState.LayoutDirection == LayoutState.LAYOUT_END)
{
- left = GetPaddingLeft() + width * i;
+ left = PaddingLeft + width * i;
top = layoutState.Offset;
}
else
{
- left = GetPaddingLeft() + width * (count - 1 - i);
+ left = PaddingLeft + width * (count - 1 - i);
top = layoutState.Offset - height;
}
LayoutChild(holder, left, top, width, height);
else
{
width = result.Consumed;
- height = (GetHeight() - GetPaddingTop() - GetPaddingBottom()) / count;
+ height = (Height - PaddingTop - PaddingBottom) / count;
if (layoutState.LayoutDirection == LayoutState.LAYOUT_END)
{
- top = GetPaddingTop() + height * i;
+ top = PaddingTop + height * i;
left = layoutState.Offset;
}
else
{
- top = GetPaddingTop() + height * (count - 1 - i);
+ top = PaddingTop + height * (count - 1 - i);
left = layoutState.Offset - width;
}
LayoutChild(holder, left, top, width, height);
private LayoutState mLayoutState;
private AnchorInfo mAnchorInfo = new AnchorInfo();
- /**
- * Stashed to avoid allocation, currently only used in #fill()
- */
+ // Stashed to avoid allocation, currently only used in #fill()
private LayoutChunkResult mLayoutChunkResult = new LayoutChunkResult();
private bool mShouldReverseLayout = false;
- /**
- * When LayoutManager needs to scroll to a position, it sets this variable and requests a
- * layout which will check this variable and re-layout accordingly.
- */
+ // When LayoutManager needs to scroll to a position, it sets this variable and requests a
+ // layout which will check this variable and re-layout accordingly.
private int mPendingScrollPosition = NO_POSITION;
- /**
- * Used to keep the offset value when {@link #scrollToPositionWithOffset(int, int)} is
- * called.
- */
+ // Used to keep the offset value when {@link #scrollToPositionWithOffset(int, int)} is
+ // called.
private int mPendingScrollPositionOffset = INVALID_OFFSET;
/// <summary>
{
return 0;
}
- return ScrollBy(dy, recycler, immediate); ;
+ return ScrollBy(dy, recycler, immediate);
}
/// <summary>
{
FlexibleView.ViewHolder startChild = FindFirstVisibleItemView();
FlexibleView.ViewHolder endChild = FindLastVisibleItemView();
- if (GetChildCount() == 0 || startChild == null || endChild == null)
+ if (ChildCount == 0 || startChild == null || endChild == null)
{
return 0;
}
{
FlexibleView.ViewHolder startChild = FindFirstVisibleItemView();
FlexibleView.ViewHolder endChild = FindLastVisibleItemView();
- if (GetChildCount() == 0 || startChild == null || endChild == null)
+ if (ChildCount == 0 || startChild == null || endChild == null)
{
return 0;
}
{
FlexibleView.ViewHolder startChild = FindFirstVisibleItemView();
FlexibleView.ViewHolder endChild = FindLastVisibleItemView();
- if (GetChildCount() == 0 || startChild == null || endChild == null)
+ if (ChildCount == 0 || startChild == null || endChild == null)
{
return 0;
}
float left, top, width, height;
if (mOrientation == VERTICAL)
{
- width = GetWidth() - GetPaddingLeft() - GetPaddingRight();
+ width = Width - PaddingLeft - PaddingRight;
height = result.Consumed;
- left = GetPaddingLeft();
+ left = PaddingLeft;
if (layoutState.LayoutDirection == LayoutState.LAYOUT_END)
{
top = layoutState.Offset;
else
{
width = result.Consumed;
- height = GetHeight() - GetPaddingTop() - GetPaddingBottom();
- top = GetPaddingTop();
+ height = Height - PaddingTop - PaddingBottom;
+ top = PaddingTop;
if (layoutState.LayoutDirection == LayoutState.LAYOUT_END)
{
left = layoutState.Offset;
internal override FlexibleView.ViewHolder OnFocusSearchFailed(FlexibleView.ViewHolder focused, FlexibleView.LayoutManager.Direction direction, FlexibleView.Recycler recycler)
{
- if (GetChildCount() == 0)
+ if (ChildCount == 0)
{
return null;
}
}
else
{
- nextFocus = GetChildAt(GetChildCount() - 1);
+ nextFocus = GetChildAt(ChildCount - 1);
}
return nextFocus;
}
anchorInfo.Coordinate = anchorInfo.LayoutFromEnd ? mOrientationHelper.GetEndAfterPadding() : mOrientationHelper.GetStartAfterPadding();
}
- /**
- * If there is a pending scroll position or saved states, updates the anchor info from that
- * data and returns true
- */
+
+ // If there is a pending scroll position or saved states, updates the anchor info from that
+ // data and returns true
private bool UpdateAnchorFromPendingData(AnchorInfo anchorInfo)
{
if (mPendingScrollPosition == NO_POSITION)
+ mPendingScrollPositionOffset;
}
}
+
return true;
}
- /**
- * Finds an anchor child from existing Views. Most of the time, this is the view closest to
- * start or end that has a valid position (e.g. not removed).
- * If a child has focus, it is given priority.
- */
+ // Finds an anchor child from existing Views. Most of the time, this is the view closest to
+ // start or end that has a valid position (e.g. not removed).
+ // If a child has focus, it is given priority.
private bool UpdateAnchorFromChildren(FlexibleView.Recycler recycler, AnchorInfo anchorInfo)
{
- if (GetChildCount() == 0)
+ if (ChildCount == 0)
{
return false;
}
return true;
}
- /**
- * Converts a focusDirection to orientation.
- *
- * @param focusDirection One of {@link View#FOCUS_UP}, {@link View#FOCUS_DOWN},
- * {@link View#FOCUS_LEFT}, {@link View#FOCUS_RIGHT},
- * {@link View#FOCUS_BACKWARD}, {@link View#FOCUS_FORWARD}
- * or 0 for not applicable
- * @return {@link LayoutState#LAYOUT_START} or {@link LayoutState#LAYOUT_END} if focus direction
- * is applicable to current state, {@link LayoutState#INVALID_LAYOUT} otherwise.
- */
+ // Converts a focusDirection to orientation.
+ //
+ // @param focusDirection One of {@link View#FOCUS_UP}, {@link View#FOCUS_DOWN},
+ // {@link View#FOCUS_LEFT}, {@link View#FOCUS_RIGHT},
+ // {@link View#FOCUS_BACKWARD}, {@link View#FOCUS_FORWARD}
+ // or 0 for not applicable
+ // @return {@link LayoutState#LAYOUT_START} or {@link LayoutState#LAYOUT_END} if focus direction
+ // is applicable to current state, {@link LayoutState#INVALID_LAYOUT} otherwise.
private int ConvertFocusDirectionToLayoutDirection(FlexibleView.LayoutManager.Direction focusDirection)
{
switch (focusDirection)
private float Fill(FlexibleView.Recycler recycler, LayoutState layoutState, bool stopOnFocusable, bool immediate)
{
float start = layoutState.Available;
+
if (layoutState.ScrollingOffset != LayoutState.SCROLLING_OFFSET_NaN)
{
// TODO ugly bug fix. should not happen
break;
}
layoutState.Offset += layoutChunkResult.Consumed * layoutState.LayoutDirection;
- /**
- * Consume the available space if:
- * layoutChunk did not request to be ignored
- * OR we are laying out scrap children
- * OR we are not doing pre-layout
- */
+
+ // Consume the available space if:
+ // layoutChunk did not request to be ignored
+ // OR we are laying out scrap children
+ // OR we are not doing pre-layout
if (!layoutChunkResult.IgnoreConsumed)
{
layoutState.Available -= layoutChunkResult.Consumed;
}
// ignore padding, ViewGroup may not clip children.
float limit = dt;
- int childCount = GetChildCount();
+ int childCount = ChildCount;
if (mShouldReverseLayout)
{
for (int i = childCount - 1; i >= 0; i--)
private void RecycleViewsFromEnd(FlexibleView.Recycler recycler, float dt, bool immediate)
{
- int childCount = GetChildCount();
+ int childCount = ChildCount;
if (dt < 0)
{
return;
private float ScrollBy(float dy, FlexibleView.Recycler recycler, bool immediate)
{
- if (GetChildCount() == 0 || dy == 0)
+ if (ChildCount == 0 || dy == 0)
{
return 0;
}
mOrientationHelper.OffsetChildren(scrolled, immediate);
-
return scrolled;
}
mLayoutState.ScrollingOffset = scrollingOffset;
}
- /**
- * Convenience method to find the child closes to start. Caller should check it has enough
- * children.
- *
- * @return The child closes to start of the layout from user's perspective.
- */
+
+ // Convenience method to find the child closes to start. Caller should check it has enough
+ // children.
+ //
+ // @return The child closes to start of the layout from user's perspective.
private FlexibleView.ViewHolder GetChildClosestToStart()
{
- return GetChildAt(mShouldReverseLayout ? GetChildCount() - 1 : 0);
+ return GetChildAt(mShouldReverseLayout ? ChildCount - 1 : 0);
}
- /**
- * Convenience method to find the child closes to end. Caller should check it has enough
- * children.
- *
- * @return The child closes to end of the layout from user's perspective.
- */
+ // Convenience method to find the child closes to end. Caller should check it has enough
+ // children.
+ //
+ // @return The child closes to end of the layout from user's perspective.
private FlexibleView.ViewHolder GetChildClosestToEnd()
{
- return GetChildAt(mShouldReverseLayout ? 0 : GetChildCount() - 1);
+ return GetChildAt(mShouldReverseLayout ? 0 : ChildCount - 1);
}
private void UpdateLayoutStateToFillEnd(int itemPosition, float offset)
private FlexibleView.ViewHolder FindFirstVisibleItemView()
{
- int childCount = GetChildCount();
+ int childCount = ChildCount;
if (mShouldReverseLayout == false)
{
for (int i = 0; i < childCount; i++)
private FlexibleView.ViewHolder FindFirstCompleteVisibleItemView()
{
- int childCount = GetChildCount();
+ int childCount = ChildCount;
if (mShouldReverseLayout == false)
{
for (int i = 0; i < childCount; i++)
private FlexibleView.ViewHolder FindLastVisibleItemView()
{
- int childCount = GetChildCount();
+ int childCount = ChildCount;
if (mShouldReverseLayout == false)
{
for (int i = childCount - 1; i >= 0; i--)
private FlexibleView.ViewHolder FindLastCompleteVisibleItemView()
{
- int childCount = GetChildCount();
+ int childCount = ChildCount;
if (mShouldReverseLayout == false)
{
for (int i = childCount - 1; i >= 0; i--)
return null;
}
-
- /**
- * Helper class that keeps temporary state while {LayoutManager} is filling out the empty space.
- **/
+ // Helper class that keeps temporary state while {LayoutManager} is filling out the empty space.
internal class LayoutState
{
public static readonly int LAYOUT_START = -1;
public static readonly int SCROLLING_OFFSET_NaN = -10000;
- /**
- * We may not want to recycle children in some cases (e.g. layout)
- */
+ // We may not want to recycle children in some cases (e.g. layout)
public bool Recycle = true;
- /**
- * Pixel offset where layout should start
- */
+ // Pixel offset where layout should start
public float Offset;
- /**
- * Number of pixels that we should fill, in the layout direction.
- */
+ // Number of pixels that we should fill, in the layout direction.
public float Available;
- /**
- * Current position on the adapter to get the next item.
- */
+ // Current position on the adapter to get the next item.
public int CurrentPosition;
- /**
- * Defines the direction in which the data adapter is traversed.
- * Should be {@link #ITEM_DIRECTION_HEAD} or {@link #ITEM_DIRECTION_TAIL}
- */
+ // Defines the direction in which the data adapter is traversed.
+ // Should be {@link #ITEM_DIRECTION_HEAD} or {@link #ITEM_DIRECTION_TAIL}
public int ItemDirection;
- /**
- * Defines the direction in which the layout is filled.
- * Should be {@link #LAYOUT_START} or {@link #LAYOUT_END}
- */
+ // Defines the direction in which the layout is filled.
+ // Should be {@link #LAYOUT_START} or {@link #LAYOUT_END}
public int LayoutDirection;
- /**
- * Used when LayoutState is constructed in a scrolling state.
- * It should be set the amount of scrolling we can make without creating a new view.
- * Settings this is required for efficient view recycling.
- */
+ // Used when LayoutState is constructed in a scrolling state.
+ // It should be set the amount of scrolling we can make without creating a new view.
+ // Settings this is required for efficient view recycling.
public float ScrollingOffset;
- /**
- * Used if you want to pre-layout items that are not yet visible.
- * The difference with {@link #mAvailable} is that, when recycling, distance laid out for
- * {@link #mExtra} is not considered to avoid recycling visible children.
- */
+ // Used if you want to pre-layout items that are not yet visible.
+ // The difference with {@link #mAvailable} is that, when recycling, distance laid out for
+ // {@link #mExtra} is not considered to avoid recycling visible children.
public float Extra = 0;
- /**
- * @return true if there are more items in the data adapter
- */
+ // @return true if there are more items in the data adapter
public bool HasMore(int itemCount)
{
return CurrentPosition >= 0 && CurrentPosition < itemCount;
}
- /**
- * Gets the view for the next element that we should layout.
- * Also updates current item index to the next item, based on {@link #mItemDirection}
- *
- * @return The next element that we should layout.
- */
+ // Gets the view for the next element that we should layout.
+ // Also updates current item index to the next item, based on {@link #mItemDirection}
+ //
+ // @return The next element that we should layout.
public FlexibleView.ViewHolder Next(FlexibleView.Recycler recycler)
{
FlexibleView.ViewHolder itemView = recycler.GetViewForPosition(CurrentPosition);
namespace Tizen.NUI.Components
{
- /**
- * Helper class for LayoutManagers to abstract measurements depending on the View's orientation.
- * It is developed to easily support vertical and horizontal orientations in a LayoutManager but
- * can also be used to abstract calls around view bounds and child measurements with margins and
- * decorations.
- *
- * @see #createHorizontalHelper(RecyclerView.LayoutManager)
- * @see #createVerticalHelper(RecyclerView.LayoutManager)
- */
+ // Helper class for LayoutManagers to abstract measurements depending on the View's orientation.
+ // It is developed to easily support vertical and horizontal orientations in a LayoutManager but
+ // can also be used to abstract calls around view bounds and child measurements with margins and
+ // decorations.
+ //
+ // @see #createHorizontalHelper(RecyclerView.LayoutManager)
+ // @see #createVerticalHelper(RecyclerView.LayoutManager)
internal abstract class OrientationHelper
{
public static readonly int HORIZONTAL = 0;
mLayoutManager = layoutManager;
}
- /**
- * Call this method after onLayout method is complete if state is NOT pre-layout.
- * This method records information like layout bounds that might be useful in the next layout
- * calculations.
- */
+ // Call this method after onLayout method is complete if state is NOT pre-layout.
+ // This method records information like layout bounds that might be useful in the next layout
+ // calculations.
public void OnLayoutComplete()
{
mLastTotalSpace = GetTotalSpace();
}
- /**
- * Returns the layout space change between the previous layout pass and current layout pass.
- * Make sure you call {@link #onLayoutComplete()} at the end of your LayoutManager's
- * {@link RecyclerView.LayoutManager#onLayoutChildren(RecyclerView.Recycler,
- * RecyclerView.State)} method.
- *
- * @return The difference between the current total space and previous layout's total space.
- * @see #onLayoutComplete()
- */
+ // Returns the layout space change between the previous layout pass and current layout pass.
+ // Make sure you call {@link #onLayoutComplete()} at the end of your LayoutManager's
+ // {@link RecyclerView.LayoutManager#onLayoutChildren(RecyclerView.Recycler,
+ // RecyclerView.State)} method.
+ //
+ // @return The difference between the current total space and previous layout's total space.
+ // @see #onLayoutComplete()
public float GetTotalSpaceChange()
{
return INVALID_SIZE == mLastTotalSpace ? 0 : GetTotalSpace() - mLastTotalSpace;
}
- /**
- * Returns the start of the view including its decoration and margin.
- * For example, for the horizontal helper, if a View's left is at pixel 20, has 2px left
- * decoration and 3px left margin, returned value will be 15px.
- *
- * @param view The view element to check
- * @return The first pixel of the element
- * @see #getDecoratedEnd(android.view.View)
- */
+ // Returns the start of the view including its decoration and margin.
+ // For example, for the horizontal helper, if a View's left is at pixel 20, has 2px left
+ // decoration and 3px left margin, returned value will be 15px.
+ //
+ // @param view The view element to check
+ // @return The first pixel of the element
+ // @see #getDecoratedEnd(android.view.View)
public abstract float GetViewHolderStart(FlexibleView.ViewHolder holder);
- /**
- * Returns the end of the view including its decoration and margin.
- * For example, for the horizontal helper, if a View's right is at pixel 200, has 2px right
- * decoration and 3px right margin, returned value will be 205.
- *
- * @param view The view element to check
- * @return The last pixel of the element
- * @see #getDecoratedStart(android.view.View)
- */
+ // Returns the end of the view including its decoration and margin.
+ // For example, for the horizontal helper, if a View's right is at pixel 200, has 2px right
+ // decoration and 3px right margin, returned value will be 205.
+ //
+ // @param view The view element to check
+ // @return The last pixel of the element
+ // @see #getDecoratedStart(android.view.View)
public abstract float GetViewHolderEnd(FlexibleView.ViewHolder holder);
- /**
- * Returns the space occupied by this View in the current orientation including decorations and
- * margins.
- *
- * @param view The view element to check
- * @return Total space occupied by this view
- * @see #getDecoratedMeasurementInOther(View)
- */
+ // Returns the space occupied by this View in the current orientation including decorations and
+ // margins.
+ //
+ // @param view The view element to check
+ // @return Total space occupied by this view
+ // @see #getDecoratedMeasurementInOther(View)
+
public abstract float GetViewHolderMeasurement(FlexibleView.ViewHolder holder);
- /**
- * Returns the space occupied by this View in the perpendicular orientation including
- * decorations and margins.
- *
- * @param view The view element to check
- * @return Total space occupied by this view in the perpendicular orientation to current one
- * @see #getDecoratedMeasurement(View)
- */
+ // Returns the space occupied by this View in the perpendicular orientation including
+ // decorations and margins.
+ //
+ // @param view The view element to check
+ // @return Total space occupied by this view in the perpendicular orientation to current one
+ // @see #getDecoratedMeasurement(View)
public abstract float GetViewHolderMeasurementInOther(FlexibleView.ViewHolder holder);
- /**
- * Returns the start position of the layout after the start padding is added.
- *
- * @return The very first pixel we can draw.
- */
+ // Returns the start position of the layout after the start padding is added.
+ //
+ // @return The very first pixel we can draw.
public abstract float GetStartAfterPadding();
- /**
- * Returns the end position of the layout after the end padding is removed.
- *
- * @return The end boundary for this layout.
- */
+ // Returns the end position of the layout after the end padding is removed.
+ //
+ // @return The end boundary for this layout.
public abstract float GetEndAfterPadding();
- /**
- * Returns the end position of the layout without taking padding into account.
- *
- * @return The end boundary for this layout without considering padding.
- */
+ // Returns the end position of the layout without taking padding into account.
+ //
+ // @return The end boundary for this layout without considering padding.
public abstract float GetEnd();
- /**
- * Offsets all children's positions by the given amount.
- *
- * @param amount Value to add to each child's layout parameters
- */
+ // Offsets all children's positions by the given amount.
+ //
+ // @param amount Value to add to each child's layout parameters
public abstract void OffsetChildren(float amount, bool immediate);
- /**
- * Returns the total space to layout. This number is the difference between
- * {@link #getEndAfterPadding()} and {@link #getStartAfterPadding()}.
- *
- * @return Total space to layout children
- */
+ // Returns the total space to layout. This number is the difference between
+ // {@link #getEndAfterPadding()} and {@link #getStartAfterPadding()}.
+ //
+ // @return Total space to layout children
public abstract float GetTotalSpace();
- /**
- * Offsets the child in this orientation.
- *
- * @param view View to offset
- * @param offset offset amount
- */
+ // Offsets the child in this orientation.
+ //
+ // @param view View to offset
+ // @param offset offset amount
internal abstract void OffsetChild(FlexibleView.ViewHolder holder, int offset);
- /**
- * Returns the padding at the end of the layout. For horizontal helper, this is the right
- * padding and for vertical helper, this is the bottom padding. This method does not check
- * whether the layout is RTL or not.
- *
- * @return The padding at the end of the layout.
- */
+ // Returns the padding at the end of the layout. For horizontal helper, this is the right
+ // padding and for vertical helper, this is the bottom padding. This method does not check
+ // whether the layout is RTL or not.
+ //
+ // @return The padding at the end of the layout.
public abstract float GetEndPadding();
- /**
- * Creates an OrientationHelper for the given LayoutManager and orientation.
- *
- * @param layoutManager LayoutManager to attach to
- * @param orientation Desired orientation. Should be {@link #HORIZONTAL} or {@link #VERTICAL}
- * @return A new OrientationHelper
- */
+ // Creates an OrientationHelper for the given LayoutManager and orientation.
+ //
+ // @param layoutManager LayoutManager to attach to
+ // @param orientation Desired orientation. Should be {@link #HORIZONTAL} or {@link #VERTICAL}
+ // @return A new OrientationHelper
public static OrientationHelper CreateOrientationHelper(
FlexibleView.LayoutManager layoutManager, int orientation)
{
}
- /**
- * Creates a horizontal OrientationHelper for the given LayoutManager.
- *
- * @param layoutManager The LayoutManager to attach to.
- * @return A new OrientationHelper
- */
+ // Creates a horizontal OrientationHelper for the given LayoutManager.
+ //
+ // @param layoutManager The LayoutManager to attach to.
+ // @return A new OrientationHelper
public static OrientationHelper CreateHorizontalHelper(FlexibleView.LayoutManager layoutManager)
{
return new HorizontalHelper(layoutManager);
}
- /**
- * Creates a vertical OrientationHelper for the given LayoutManager.
- *
- * @param layoutManager The LayoutManager to attach to.
- * @return A new OrientationHelper
- */
+
+ // Creates a vertical OrientationHelper for the given LayoutManager.
+ //
+ // @param layoutManager The LayoutManager to attach to.
+ // @return A new OrientationHelper
public static OrientationHelper CreateVerticalHelper(FlexibleView.LayoutManager layoutManager)
{
return new VerticalHelper(layoutManager);
public override float GetEndAfterPadding()
{
- return mLayoutManager.GetWidth() - mLayoutManager.GetPaddingRight();
+ return mLayoutManager.Width - mLayoutManager.PaddingRight;
}
public override float GetEnd()
{
- return mLayoutManager.GetWidth();
+ return mLayoutManager.Width;
}
public override void OffsetChildren(float amount, bool immediate)
public override float GetStartAfterPadding()
{
- return mLayoutManager.GetPaddingLeft();
+ return mLayoutManager.PaddingLeft;
}
public override float GetViewHolderMeasurement(FlexibleView.ViewHolder holder)
public override float GetTotalSpace()
{
- return mLayoutManager.GetWidth() - mLayoutManager.GetPaddingLeft()
- - mLayoutManager.GetPaddingRight();
+ return mLayoutManager.Width - mLayoutManager.PaddingLeft
+ - mLayoutManager.PaddingRight;
}
internal override void OffsetChild(FlexibleView.ViewHolder holder, int offset)
public override float GetEndPadding()
{
- return mLayoutManager.GetPaddingRight();
+ return mLayoutManager.PaddingRight;
}
}
public override float GetEndAfterPadding()
{
- return mLayoutManager.GetHeight() - mLayoutManager.GetPaddingBottom();
+ return mLayoutManager.Height - mLayoutManager.PaddingBottom;
}
public override float GetEnd()
{
- return mLayoutManager.GetHeight();
+ return mLayoutManager.Height;
}
public override void OffsetChildren(float amount, bool immediate)
public override float GetStartAfterPadding()
{
- return mLayoutManager.GetPaddingTop();
+ return mLayoutManager.PaddingTop;
}
public override float GetViewHolderMeasurement(FlexibleView.ViewHolder holder)
public override float GetTotalSpace()
{
- return mLayoutManager.GetHeight() - mLayoutManager.GetPaddingTop()
- - mLayoutManager.GetPaddingBottom();
+ return mLayoutManager.Height - mLayoutManager.PaddingTop
+ - mLayoutManager.PaddingBottom;
}
internal override void OffsetChild(FlexibleView.ViewHolder holder, int offset)
public override float GetEndPadding()
{
- return mLayoutManager.GetPaddingBottom();
+ return mLayoutManager.PaddingBottom;
}
}
/// The Loading class of nui component. It's used to indicate informs users of the ongoing operation.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public class Loading : Control
{
private LoadingAttributes loadingAttrs = null; // Loading Attributes
/// The constructor of Loading
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Loading() : base()
{
Initialize();
/// Gets or sets loading image resource array.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string[] ImageArray
{
get
/// Gets or sets loading size.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D LoadingSize
+ public new Size Size
{
get
{
- return loadingAttrs.LoadingSize ?? new Size2D(100, 100);
+ return loadingAttrs.Size ?? new Size(100, 100);
}
set
{
- loadingAttrs.LoadingSize = value;
- imageVisual.Size = value;
+ loadingAttrs.Size = value;
+ base.Size = value;
+ imageVisual.Size = new Size2D((int)value.Width, (int)value.Height);
}
}
/// Gets or sets FPS of loading.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int FPS
+ public int FrameRate
{
get
{
- return loadingAttrs?.FPS?.All ?? (int)(1000.0f / 16.6f);
+ return loadingAttrs?.FrameRate?.All ?? (int)(1000.0f / 16.6f);
}
set
{
if (value != 0) //It will crash if 0
{
- if (null == loadingAttrs.FPS)
+ if (null == loadingAttrs.FrameRate)
{
- loadingAttrs.FPS = new IntSelector();
+ loadingAttrs.FrameRate = new IntSelector();
}
- loadingAttrs.FPS.All = value;
+ loadingAttrs.FrameRate.All = value;
imageVisual.FrameDelay = 1000.0f / value;
}
}
/// </summary>
/// <param name="type">Dispose type.</param>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
protected override void Dispose(DisposeTypes type)
{
if (disposed)
{
imageVisual.URLS = new List<string>(loadingAttrs.ImageArray);
}
- if (null != loadingAttrs.FPS)
+ if (null != loadingAttrs.FrameRate)
{
- imageVisual.FrameDelay = 1000.0f / (float)loadingAttrs.FPS.All;
+ imageVisual.FrameDelay = 1000.0f / (float)loadingAttrs.FrameRate.All;
}
if (null != loadingAttrs.LoadingSize)
{
- imageVisual.Size = loadingAttrs.LoadingSize;
+ imageVisual.Size = new Size2D((int)loadingAttrs.LoadingSize.Width, (int)loadingAttrs.LoadingSize.Height);
}
}
}
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D IndicatorSize
+ public Size IndicatorSize
{
get
{
{
ImageVisual indicator = indicatorList[i];
indicator.URL = paginationAttributes.IndicatorBackgroundURL;
- indicator.Size = paginationAttributes.IndicatorSize;
+ indicator.Size = new Size2D((int)paginationAttributes.IndicatorSize.Width, (int)paginationAttributes.IndicatorSize.Height);
indicator.Position = new Position2D((int)(paginationAttributes.IndicatorSize.Width + paginationAttributes.IndicatorSpacing) * i, 0);
}
selectIndicator.URL = paginationAttributes.IndicatorSelectURL;
- selectIndicator.Size = paginationAttributes.IndicatorSize;
+ selectIndicator.Size = new Size2D((int)paginationAttributes.IndicatorSize.Width, (int)paginationAttributes.IndicatorSize.Height);
//UpdateContainer();
}
ImageVisual indicator = new ImageVisual
{
URL = paginationAttributes.IndicatorBackgroundURL,
- Size = paginationAttributes.IndicatorSize
+ Size = new Size2D((int)paginationAttributes.IndicatorSize.Width, (int)paginationAttributes.IndicatorSize.Height)
};
indicator.Position = new Position2D((int)(paginationAttributes.IndicatorSize.Width + paginationAttributes.IndicatorSpacing) * indicatorList.Count, 0);
container.AddVisual("Indicator" + indicatorList.Count, indicator);
/// User can handle Popup button count, head title and content area.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public class Popup : Control
{
private ImageView backgroundImage;
/// Creates a new instance of a Popup.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Popup() : base()
{
Initialize();
}
+
/// <summary>
/// Creates a new instance of a Popup with style.
/// </summary>
{
Initialize();
}
+
/// <summary>
/// Creates a new instance of a Popup with attributes.
/// </summary>
{
Initialize();
}
+
/// <summary>
/// An event for the button clicked signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<ButtonClickEventArgs> PopupButtonClickedEvent;
+ public event EventHandler<ButtonClickEventArgs> PopupButtonClickEvent;
/// <summary>
/// Title text string in Popup.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string TitleText
{
get
/// Button count in Popup.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public int ButtonCount
{
get
/// Content view in Popup, only can be gotten.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public View ContentView
{
get;
/// Title text point size in Popup.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public float TitlePointSize
{
get
/// Title text color in Popup.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Color TitleTextColor
{
get
/// Title text horizontal alignment in Popup.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public HorizontalAlignment TitleTextHorizontalAlignment
{
get
/// Title text's position in Popup.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Position2D TitleTextPosition2D
+ public Position TitleTextPosition
{
get
{
- return popupAttributes?.TitleTextAttributes?.Position2D ?? new Position2D(0, 0);
+ return popupAttributes?.TitleTextAttributes?.Position ?? new Position(0, 0, 0);
}
set
{
CreateTitleTextAttributes();
- popupAttributes.TitleTextAttributes.Position2D = value;
+ popupAttributes.TitleTextAttributes.Position = value;
RelayoutRequest();
}
}
/// Title text's height in Popup.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public int TitleHeight
{
get
{
- return popupAttributes?.TitleTextAttributes?.Size2D?.Height ?? 0;
+ return (int)(popupAttributes?.TitleTextAttributes?.Size?.Height ?? 0);
}
set
{
CreateTitleTextAttributes();
- popupAttributes.TitleTextAttributes.Size2D.Height = value;
+ popupAttributes.TitleTextAttributes.Size.Height = value;
RelayoutRequest();
}
}
/// Button height in Popup.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public int ButtonHeight
{
get
{
- return popupAttributes?.ButtonAttributes?.Size2D?.Height ?? 0;
+ return (int)(popupAttributes?.ButtonAttributes?.Size?.Height ?? 0);
}
set
{
CreateButtonAttributes();
- popupAttributes.ButtonAttributes.Size2D.Height = value;
+ popupAttributes.ButtonAttributes.Size.Height = value;
RelayoutRequest();
}
}
/// Button text point size in Popup.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public float ButtonPointSize
+ public float ButtonTextPointSize
{
get
{
/// Button text font family in Popup.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string ButtonFontFamily
{
get
/// Button text color in Popup.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Color ButtonTextColor
{
get
/// Button text horizontal alignment in Popup.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public HorizontalAlignment ButtonTextAlignment
{
get
/// <param name="index">Button index.</param>
/// <param name="text">Button text string.</param>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public void SetButtonText(int index, string text)
{
if(index < 0 && index >= buttonCount)
/// </summary>
/// <param name="type">Dispose type.</param>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
protected override void Dispose(DisposeTypes type)
{
if (disposed)
{
base.OnFocusGained();
}
+
/// <summary>
/// Focus lost callback.
/// </summary>
popupAttributes.TitleTextAttributes.Text = new StringSelector { All = titleText.Text };
w = (int)(Size2D.Width - titleText.PositionX * 2);
- if (popupAttributes.TitleTextAttributes.Size2D != null)
+ if (popupAttributes.TitleTextAttributes.Size != null)
{
- titleH = titleText.Size2D.Height;
+ titleH = (int)titleText.Size.Height;
}
titleText.Size2D = new Size2D(w, titleH);
- if (popupAttributes.TitleTextAttributes.Position2D != null)
+ if (popupAttributes.TitleTextAttributes.Position != null)
{
- titleX = popupAttributes.TitleTextAttributes.Position2D.X;
- titleY = popupAttributes.TitleTextAttributes.Position2D.Y;
+ titleX = (int)popupAttributes.TitleTextAttributes.Position.X;
+ titleY = (int)popupAttributes.TitleTextAttributes.Position.Y;
}
}
else
UpdateButton(buttonCount);
- if (buttonList != null && popupAttributes.ButtonAttributes != null && popupAttributes.ButtonAttributes.Size2D != null)
+ if (buttonList != null && popupAttributes.ButtonAttributes != null && popupAttributes.ButtonAttributes.Size != null)
{
- buttonH = popupAttributes.ButtonAttributes.Size2D.Height;
+ buttonH = (int)popupAttributes.ButtonAttributes.Size.Height;
}
ContentView.Size2D = new Size2D(Size2D.Width - titleX * 2, Size2D.Height - titleY - titleH - buttonH);
ContentView.Position2D = new Position2D(titleX, titleY + titleH);
{
popupAttributes.TitleTextAttributes = new TextAttributes()
{
- Size2D = new Size2D(0, 0),
+ Size = new Size(0, 0),
PositionUsesPivotPoint = true,
ParentOrigin = Tizen.NUI.ParentOrigin.TopLeft,
PivotPoint = Tizen.NUI.PivotPoint.TopLeft,
{
popupAttributes.ButtonAttributes = new ButtonAttributes()
{
- Size2D = new Size2D(0, 0),
+ Size = new Size(0, 0),
PositionUsesPivotPoint = true,
ParentOrigin = Tizen.NUI.ParentOrigin.BottomLeft,
PivotPoint = Tizen.NUI.PivotPoint.BottomLeft,
return;
}
int buttonWidth = Size2D.Width / count;
- int buttonHeight = popupAttributes.ButtonAttributes.Size2D.Height;
+ int buttonHeight = (int)popupAttributes.ButtonAttributes.Size.Height;
int pos = 0;
buttonList = new List<Button>();
for (int i = 0; i < count; i++)
{
Button btn = null;
- popupAttributes.ButtonAttributes.Size2D.Width = buttonWidth;
+ popupAttributes.ButtonAttributes.Size.Width = buttonWidth;
btn = new Button(popupAttributes.ButtonAttributes);
btn.Position2D = new Position2D(pos, 0);
private void ButtonClickEvent(object sender, Button.ClickEventArgs e)
{
- if (PopupButtonClickedEvent != null && buttonList != null)
+ if (PopupButtonClickEvent != null && buttonList != null)
{
Button button = sender as Button;
for (int i = 0; i < buttonList.Count; i++)
{
ButtonClickEventArgs args = new ButtonClickEventArgs();
args.ButtonIndex = i;
- PopupButtonClickedEvent(this, args);
+ PopupButtonClickEvent(this, args);
}
}
}
/// ButtonClickEventArgs is a class to record button click event arguments which will sent to user.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public class ButtonClickEventArgs : EventArgs
{
/// <summary> Button index which is clicked in Popup </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public int ButtonIndex;
}
}
/// The Progress class of nui component. It's used to show the ongoing status with a long narrow bar.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public class Progress : Control
{
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
/// The constructor of Progress
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Progress() : base()
{
Initialize();
/// The status type of the Progress.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public enum ProgressStatusType
{
/// <summary>
/// Show TrackImage
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
Buffering,
/// <summary>
/// Show ProgressImage
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
Determinate,
/// <summary>
/// Show LoadingImage
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
Indeterminate
}
/// The property to get/set Track image object URL of the Progress.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string TrackImageURL
{
get
/// The property to get/set Progress object image URL of the Progress.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string ProgressImageURL
{
get
/// The property to get/set Buffer object image resource URL of the Progress.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string BufferImageURL
{
get
/// The property to get/set Track object color of the Progress.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Color TrackColor
{
get
/// The property to get/set Progress object color of the Progress.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Color ProgressColor
{
get
/// The property to get/set Buffer object color of the Progress.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Color BufferColor
{
get
/// The property to get/set the maximum value of the Progress.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public float MaxValue
{
get
/// The property to get/set the minim value of the Progress.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public float MinValue
{
get
/// The property to get/set the current value of the Progress.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public float CurrentValue
{
get
/// The property to get/set the buffer value of the Progress.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public float BufferValue
{
get
/// Gets or sets state of progress.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public ProgressStatusType ProgressState
{
get
/// </summary>
/// <param name="type">Dispose type.</param>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
protected override void Dispose(DisposeTypes type)
{
if (disposed)
/// The ScrollBar class of nui component. It allows users to recognize the direction and the range of lists/content. .
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public class ScrollBar : Control
{
private ScrollBarAttributes scrollBarAttrs;
/// The constructor of ScrollBar
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public ScrollBar() : base()
{
Initialize();
/// The direction type of the Scroll.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public enum DirectionType
{
/// <summary>
/// The Horizontal type.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
Horizontal,
/// <summary>
/// The Vertical type.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
Vertical
}
/// The property to get/set the direction of the ScrollBar.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public DirectionType Direction
{
get
/// </code>
/// </example>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D ThumbSize
+ public Size ThumbSize
{
get
{
- if (scrollBarAttrs.ThumbImageAttributes.Size2D == null)
+ if (scrollBarAttrs.ThumbImageAttributes.Size == null)
{
- scrollBarAttrs.ThumbImageAttributes.Size2D = new Size2D();
+ scrollBarAttrs.ThumbImageAttributes.Size = new Size();
}
- return scrollBarAttrs.ThumbImageAttributes.Size2D;
+ return scrollBarAttrs.ThumbImageAttributes.Size;
}
set
{
- if (scrollBarAttrs.ThumbImageAttributes.Size2D == null)
+ if (scrollBarAttrs.ThumbImageAttributes.Size == null)
{
- scrollBarAttrs.ThumbImageAttributes.Size2D = new Size2D();
+ scrollBarAttrs.ThumbImageAttributes.Size = new Size();
}
if (thumbImage != null)
{
- scrollBarAttrs.ThumbImageAttributes.Size2D.Width = value.Width;
- scrollBarAttrs.ThumbImageAttributes.Size2D.Height = value.Height;
+ scrollBarAttrs.ThumbImageAttributes.Size.Width = value.Width;
+ scrollBarAttrs.ThumbImageAttributes.Size.Height = value.Height;
RelayoutRequest();
}
}
/// The property to get/set the image URL of the track object.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string TrackImageURL
{
get
/// The property to get/set the color of the track object.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Color TrackColor
{
get
/// The property to get/set the color of the thumb object.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Color ThumbColor
{
get
/// The property to get/set the max value of the ScrollBar.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public int MaxValue
{
get
/// The property to get/set the min value of the ScrollBar.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public int MinValue
{
get
/// </code>
/// </example>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public int CurrentValue
{
get
/// Property to set/get animation duration.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public uint Duration
{
get
/// </code>
/// </example>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetCurrentValue(int currentValue, bool isEnableAni = true)
+ public void SetCurrentValue(int currentValue, bool EnableAnimation = true)
{
if (currentValue < minValue || currentValue > maxValue)
{
throw new ArgumentOutOfRangeException("Wrong Current value. It shoud be greater than the Min value, and less than the Max value!");
}
- enableAni = isEnableAni;
+ enableAni = EnableAnimation;
CurrentValue = currentValue;
}
/// </summary>
/// <param name="type">The DisposeTypes value.</param>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
protected override void Dispose(DisposeTypes type)
{
if (disposed)
float height = (float)Size2D.Height;
float thumbW = 0.0f;
float thumbH = 0.0f;
- if (scrollBarAttrs.ThumbImageAttributes.Size2D == null)
+ if (scrollBarAttrs.ThumbImageAttributes.Size == null)
{
return;
}
else
{
- thumbW = scrollBarAttrs.ThumbImageAttributes.Size2D.Width;
- thumbH = scrollBarAttrs.ThumbImageAttributes.Size2D.Height;
+ thumbW = scrollBarAttrs.ThumbImageAttributes.Size.Width;
+ thumbH = scrollBarAttrs.ThumbImageAttributes.Size.Height;
}
float ratio = (float)(curValue - minValue) / (float)(maxValue - minValue);
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D CheckImageSize2D
+ public Size CheckImageSize
{
get
{
- return selectButtonAttributes?.CheckImageAttributes?.Size2D ?? new Size2D(0, 0);
+ return selectButtonAttributes?.CheckImageAttributes?.Size ?? new Size(0, 0, 0);
}
set
{
CreateCheckImageAttributes();
- selectButtonAttributes.CheckImageAttributes.Size2D = value;
+ selectButtonAttributes.CheckImageAttributes.Size = value;
RelayoutRequest();
}
}
selectButtonAttributes.TextAttributes.WidthResizePolicy = ResizePolicyType.Fixed;
selectButtonAttributes.TextAttributes.HeightResizePolicy = ResizePolicyType.Fixed;
- int iconWidth = CheckImageSize2D.Width;
+ int iconWidth = (int)CheckImageSize.Width;
int textPaddingLeft = selectButtonAttributes.TextAttributes.PaddingLeft;
int textPaddingRight = selectButtonAttributes.TextAttributes.PaddingRight;
- if(selectButtonAttributes.TextAttributes.Size2D == null)
+ if(selectButtonAttributes.TextAttributes.Size == null)
{
- selectButtonAttributes.TextAttributes.Size2D = new Size2D(Size2D.Width - iconWidth - CheckImagePaddingLeft - CheckImagePaddingRight - textPaddingLeft - textPaddingRight, Size2D.Height);
+ selectButtonAttributes.TextAttributes.Size = new Size(Size2D.Width - iconWidth - CheckImagePaddingLeft - CheckImagePaddingRight - textPaddingLeft - textPaddingRight, Size2D.Height);
}
- if(selectButtonAttributes.TextAttributes.Position2D == null)
+ if(selectButtonAttributes.TextAttributes.Position == null)
{
- selectButtonAttributes.TextAttributes.Position2D = new Position2D(CheckImagePaddingLeft + iconWidth + CheckImagePaddingRight + textPaddingLeft, 0);
+ selectButtonAttributes.TextAttributes.Position = new Position(CheckImagePaddingLeft + iconWidth + CheckImagePaddingRight + textPaddingLeft, 0);
}
selectButtonAttributes.TextAttributes.VerticalAlignment = VerticalAlignment.Center;
UpdateTextAttributes();
- int iconWidth = CheckImageSize2D.Width;
+ int iconWidth = (int)CheckImageSize.Width;
int textPaddingLeft = selectButtonAttributes.TextAttributes.PaddingLeft;
int textPaddingRight = selectButtonAttributes.TextAttributes.PaddingRight;
if (LayoutDirection == ViewLayoutDirectionType.RTL)
{
selectButtonAttributes.TextAttributes.HorizontalAlignment = HorizontalAlignment.End;
- selectButtonAttributes.TextAttributes.Position2D.X = textPaddingRight;
- checkShadowImage.Position2D.X = checkBackgroundImage.Position2D.X = checkImage.Position2D.X = selectButtonAttributes.TextAttributes.Size2D.Width + textPaddingLeft + textPaddingRight + IconPaddingRight;
+ selectButtonAttributes.TextAttributes.Position.X = textPaddingRight;
+ checkShadowImage.Position2D.X = checkBackgroundImage.Position2D.X = checkImage.Position2D.X = (int)(selectButtonAttributes.TextAttributes.Size.Width) + textPaddingLeft + textPaddingRight + IconPadding.End;
}
else if (LayoutDirection == ViewLayoutDirectionType.LTR)
{
selectButtonAttributes.TextAttributes.HorizontalAlignment = HorizontalAlignment.Begin;
- selectButtonAttributes.TextAttributes.Position2D.X = IconPaddingLeft + iconWidth + IconPaddingRight + textPaddingLeft;
- checkShadowImage.Position2D.X = checkBackgroundImage.Position2D.X = checkImage.Position2D.X = IconPaddingLeft;
+ selectButtonAttributes.TextAttributes.Position.X = IconPadding.Start + iconWidth + IconPadding.End + textPaddingLeft;
+ checkShadowImage.Position2D.X = checkBackgroundImage.Position2D.X = checkImage.Position2D.X = IconPadding.Start;
}
}
/// A slider lets users select a value from a continuous or discrete range of values by moving the slider thumb.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public class Slider : Control
{
// the background track image object
// the current value
private float? curValue = null;
// the size of the low indicator
- private Size2D lowIndicatorSize = null;
+ private Size lowIndicatorSize = null;
// the size of the high indicator
- private Size2D highIndicatorSize = null;
+ private Size highIndicatorSize = null;
// the track thickness value
private uint? trackThickness = null;
// the value of the space between track and indicator object
/// The constructor of the Slider class.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Slider()
{
Initialize();
/// The value changed event handler.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandler<ValueChangedArgs> ValueChangedEvent
{
add
/// The sliding finished event handler.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandler<SlidingFinishedArgs> SlidingFinishedEvent
{
add
/// The state changed event handler.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandler<StateChangedArgs> StateChangedEvent
{
add
/// The direction type of slider.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public enum DirectionType
{
/// <summary>
/// The Horizontal type.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
Horizontal,
/// <summary>
/// The Vertical type.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
Vertical
}
/// The indicator type of slider.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public enum IndicatorType
{
/// <summary> Only contains slider bar.</summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
None,
/// <summary> Contains slider bar, IndicatorImage.</summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
Image,
/// <summary> Contains slider bar, IndicatorText.</summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
Text
}
/// Gets or sets the direction type of slider.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public DirectionType Direction
{
get
/// Gets or sets the indicator type, arrow or sign.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public IndicatorType Indicator
{
get
/// Gets or sets the minimum value of slider.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public float MinValue
{
get
/// Gets or sets the maximum value of slider.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public float MaxValue
{
get
/// Gets or sets the current value of slider.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public float CurrentValue
{
get
/// Gets or sets the size of the thumb image object.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D ThumbSize
+ public Size ThumbSize
{
get
{
- return sliderAttrs.ThumbAttributes?.Size2D;
+ return sliderAttrs.ThumbAttributes?.Size;
}
set
{
CreateThumbAttributes();
- sliderAttrs.ThumbAttributes.Size2D = value;
+ sliderAttrs.ThumbAttributes.Size = value;
RelayoutRequest();
}
}
/// Gets or sets the resource url of the thumb image object.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string ThumbImageURL
{
get
/// Gets or sets the resource url selector of the thumb image object.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public StringSelector ThumbImageURLSelector
{
get
/// Gets or sets the color of the background track image object.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Color BgTrackColor
{
get
/// Gets or sets the color of the slided track image object.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Color SlidedTrackColor
{
get
/// Gets or sets the thickness value of the track.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public uint TrackThickness
{
get
/// Gets or sets the resource url of the low indicator image object.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string LowIndicatorImageURL
{
get
/// Gets or sets the resource url of the high indicator image object.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string HighIndicatorImageURL
{
get
/// Gets or sets the text content of the low indicator text object.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string LowIndicatorTextContent
{
get
/// Gets or sets the text content of the high indicator text object.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string HighIndicatorTextContent
{
get
/// Gets or sets the size of the low indicator object(image or text).
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D LowIndicatorSize
+ public Size LowIndicatorSize
{
get
{
/// Gets or sets the size of the high indicator object(image or text).
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D HighIndicatorSize
+ public Size HighIndicatorSize
{
get
{
/// Gets or sets the value of the space between track and indicator.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public uint SpaceBetweenTrackAndIndicator
{
get
/// </summary>
/// <param name="type">Dispose type.</param>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
protected override void Dispose(DisposeTypes type)
{
if (disposed)
}
else if (type == IndicatorType.Image)
{// <lowIndicatorImage> <spaceBetweenTrackAndIndicator> <bgTrack> <spaceBetweenTrackAndIndicator> <highIndicatorImage>
- Size2D lowIndicatorImageSize = LowIndicatorImageSize();
- Size2D highIndicatorImageSize = HighIndicatorImageSize();
+ Size lowIndicatorImageSize = LowIndicatorImageSize();
+ Size highIndicatorImageSize = HighIndicatorImageSize();
int curSpace = (int)CurrentSpaceBetweenTrackAndIndicator();
if (direction == DirectionType.Horizontal)
{
- int lowIndicatorSpace = ((lowIndicatorImageSize.Width == 0) ? (0) : (curSpace + lowIndicatorImageSize.Width));
- int highIndicatorSpace = ((highIndicatorImageSize.Width == 0) ? (0) : (curSpace + highIndicatorImageSize.Width));
+ int lowIndicatorSpace = ((lowIndicatorImageSize.Width == 0) ? (0) : ((int)(curSpace + lowIndicatorImageSize.Width)));
+ int highIndicatorSpace = ((highIndicatorImageSize.Width == 0) ? (0) : ((int)(curSpace + highIndicatorImageSize.Width)));
bgTrackLength = this.Size2D.Width - lowIndicatorSpace - highIndicatorSpace;
}
else if (direction == DirectionType.Vertical)
{
- int lowIndicatorSpace = ((lowIndicatorImageSize.Height == 0) ? (0) : (curSpace + lowIndicatorImageSize.Height));
- int highIndicatorSpace = ((highIndicatorImageSize.Height == 0) ? (0) : (curSpace + highIndicatorImageSize.Height));
+ int lowIndicatorSpace = ((lowIndicatorImageSize.Height == 0) ? (0) : ((int)(curSpace + lowIndicatorImageSize.Height)));
+ int highIndicatorSpace = ((highIndicatorImageSize.Height == 0) ? (0) : ((int)(curSpace + highIndicatorImageSize.Height)));
bgTrackLength = this.Size2D.Height - lowIndicatorSpace - highIndicatorSpace;
}
}
else if (type == IndicatorType.Text)
{// <lowIndicatorText> <spaceBetweenTrackAndIndicator> <bgTrack> <spaceBetweenTrackAndIndicator> <highIndicatorText>
- Size2D lowIndicatorTextSize = LowIndicatorTextSize();
- Size2D highIndicatorTextSize = HighIndicatorTextSize();
+ Size lowIndicatorTextSize = LowIndicatorTextSize();
+ Size highIndicatorTextSize = HighIndicatorTextSize();
int curSpace = (int)CurrentSpaceBetweenTrackAndIndicator();
if (direction == DirectionType.Horizontal)
{
- int lowIndicatorSpace = ((lowIndicatorTextSize.Width == 0) ? (0) : (curSpace + lowIndicatorTextSize.Width));
- int highIndicatorSpace = ((highIndicatorTextSize.Width == 0) ? (0) : (curSpace + highIndicatorTextSize.Width));
+ int lowIndicatorSpace = ((lowIndicatorTextSize.Width == 0) ? (0) : ((int)(curSpace + lowIndicatorTextSize.Width)));
+ int highIndicatorSpace = ((highIndicatorTextSize.Width == 0) ? (0) : ((int)(curSpace + highIndicatorTextSize.Width)));
bgTrackLength = this.Size2D.Width - lowIndicatorSpace - highIndicatorSpace;
}
else if (direction == DirectionType.Vertical)
{
- int lowIndicatorSpace = ((lowIndicatorTextSize.Height == 0) ? (0) : (curSpace + lowIndicatorTextSize.Height));
- int highIndicatorSpace = ((highIndicatorTextSize.Height == 0) ? (0) : (curSpace + highIndicatorTextSize.Height));
+ int lowIndicatorSpace = ((lowIndicatorTextSize.Height == 0) ? (0) : ((int)(curSpace + lowIndicatorTextSize.Height)));
+ int highIndicatorSpace = ((highIndicatorTextSize.Height == 0) ? (0) : ((int)(curSpace + highIndicatorTextSize.Height)));
bgTrackLength = this.Size2D.Height - lowIndicatorSpace - highIndicatorSpace;
}
}
{
if (lowIndicatorImage != null)
{
- lowIndicatorImage.Size2D = lowIndicatorSize;
+ lowIndicatorImage.Size = lowIndicatorSize;
}
if (lowIndicatorText != null)
{
- lowIndicatorText.Size2D = lowIndicatorSize;
+ lowIndicatorText.Size = lowIndicatorSize;
}
}
else
{
- if (lowIndicatorImage != null && sliderAttrs != null && sliderAttrs.LowIndicatorImageAttributes != null && sliderAttrs.LowIndicatorImageAttributes.Size2D != null)
+ if (lowIndicatorImage != null && sliderAttrs != null && sliderAttrs.LowIndicatorImageAttributes != null && sliderAttrs.LowIndicatorImageAttributes.Size != null)
{
- lowIndicatorImage.Size2D = sliderAttrs.LowIndicatorImageAttributes.Size2D;
+ lowIndicatorImage.Size = sliderAttrs.LowIndicatorImageAttributes.Size;
}
- if (lowIndicatorText != null && sliderAttrs != null && sliderAttrs.LowIndicatorTextAttributes != null && sliderAttrs.LowIndicatorTextAttributes.Size2D != null)
+ if (lowIndicatorText != null && sliderAttrs != null && sliderAttrs.LowIndicatorTextAttributes != null && sliderAttrs.LowIndicatorTextAttributes.Size != null)
{
- lowIndicatorText.Size2D = sliderAttrs.LowIndicatorTextAttributes.Size2D;
+ lowIndicatorText.Size = sliderAttrs.LowIndicatorTextAttributes.Size;
}
}
}
{
if (highIndicatorImage != null)
{
- highIndicatorImage.Size2D = highIndicatorSize;
+ highIndicatorImage.Size = highIndicatorSize;
}
if (highIndicatorText != null)
{
- highIndicatorText.Size2D = highIndicatorSize;
+ highIndicatorText.Size = highIndicatorSize;
}
}
else
{
- if (highIndicatorImage != null && sliderAttrs != null && sliderAttrs.HighIndicatorImageAttributes != null && sliderAttrs.HighIndicatorImageAttributes.Size2D != null)
+ if (highIndicatorImage != null && sliderAttrs != null && sliderAttrs.HighIndicatorImageAttributes != null && sliderAttrs.HighIndicatorImageAttributes.Size != null)
{
- highIndicatorImage.Size2D = sliderAttrs.HighIndicatorImageAttributes.Size2D;
+ highIndicatorImage.Size = sliderAttrs.HighIndicatorImageAttributes.Size;
}
- if (highIndicatorText != null && sliderAttrs != null && sliderAttrs.HighIndicatorTextAttributes != null && sliderAttrs.HighIndicatorTextAttributes.Size2D != null)
+ if (highIndicatorText != null && sliderAttrs != null && sliderAttrs.HighIndicatorTextAttributes != null && sliderAttrs.HighIndicatorTextAttributes.Size != null)
{
- highIndicatorText.Size2D = sliderAttrs.HighIndicatorTextAttributes.Size2D;
+ highIndicatorText.Size = sliderAttrs.HighIndicatorTextAttributes.Size;
}
}
}
}
else if (type == IndicatorType.Image)
{
- Size2D lowIndicatorImageSize = LowIndicatorImageSize();
- Size2D highIndicatorImageSize = HighIndicatorImageSize();
+ Size lowIndicatorImageSize = LowIndicatorImageSize();
+ Size highIndicatorImageSize = HighIndicatorImageSize();
int curSpace = (int)CurrentSpaceBetweenTrackAndIndicator();
if (direction == DirectionType.Horizontal)
{
- int lowIndicatorSpace = ((lowIndicatorImageSize.Width == 0) ? (0) : (curSpace + lowIndicatorImageSize.Width));
- int highIndicatorSpace = ((highIndicatorImageSize.Width == 0) ? (0) : (curSpace + highIndicatorImageSize.Width));
+ int lowIndicatorSpace = ((lowIndicatorImageSize.Width == 0) ? (0) : ((int)(curSpace + lowIndicatorImageSize.Width)));
+ int highIndicatorSpace = ((highIndicatorImageSize.Width == 0) ? (0) : ((int)(curSpace + highIndicatorImageSize.Width)));
bgTrackImage.Position2D = new Position2D(lowIndicatorSpace - (lowIndicatorSpace + highIndicatorSpace) / 2, 0);
}
else if (direction == DirectionType.Vertical)
{
- int lowIndicatorSpace = ((lowIndicatorImageSize.Height == 0) ? (0) : (curSpace + lowIndicatorImageSize.Height));
- int highIndicatorSpace = ((highIndicatorImageSize.Height == 0) ? (0) : (curSpace + highIndicatorImageSize.Height));
+ int lowIndicatorSpace = ((lowIndicatorImageSize.Height == 0) ? (0) : ((int)(curSpace + lowIndicatorImageSize.Height)));
+ int highIndicatorSpace = ((highIndicatorImageSize.Height == 0) ? (0) : ((int)(curSpace + highIndicatorImageSize.Height)));
bgTrackImage.Position2D = new Position2D(0, lowIndicatorSpace - (lowIndicatorSpace + highIndicatorSpace) / 2);
}
}
else if (type == IndicatorType.Text)
{
- Size2D lowIndicatorTextSize = LowIndicatorTextSize();
- Size2D highIndicatorTextSize = HighIndicatorTextSize();
+ Size lowIndicatorTextSize = LowIndicatorTextSize();
+ Size highIndicatorTextSize = HighIndicatorTextSize();
int curSpace = (int)CurrentSpaceBetweenTrackAndIndicator();
if (direction == DirectionType.Horizontal)
{
- int lowIndicatorSpace = ((lowIndicatorTextSize.Width == 0) ? (0) : (curSpace + lowIndicatorTextSize.Width));
- int highIndicatorSpace = ((highIndicatorTextSize.Width == 0) ? (0) : (curSpace + highIndicatorTextSize.Width));
+ int lowIndicatorSpace = ((lowIndicatorTextSize.Width == 0) ? (0) : ((int)(curSpace + lowIndicatorTextSize.Width)));
+ int highIndicatorSpace = ((highIndicatorTextSize.Width == 0) ? (0) : ((int)(curSpace + highIndicatorTextSize.Width)));
bgTrackImage.Position2D = new Position2D(lowIndicatorSpace - (lowIndicatorSpace + highIndicatorSpace) / 2, 0);
}
else if (direction == DirectionType.Vertical)
{
- int lowIndicatorSpace = ((lowIndicatorTextSize.Height == 0) ? (0) : (curSpace + lowIndicatorTextSize.Height));
- int highIndicatorSpace = ((highIndicatorTextSize.Height == 0) ? (0) : (curSpace + highIndicatorTextSize.Height));
+ int lowIndicatorSpace = ((lowIndicatorTextSize.Height == 0) ? (0) : ((int)(curSpace + lowIndicatorTextSize.Height)));
+ int highIndicatorSpace = ((highIndicatorTextSize.Height == 0) ? (0) : ((int)(curSpace + highIndicatorTextSize.Height)));
bgTrackImage.Position2D = new Position2D(0, -(lowIndicatorSpace - (lowIndicatorSpace + highIndicatorSpace) / 2));
}
}
return type;
}
- private Size2D LowIndicatorImageSize()
+ private Size LowIndicatorImageSize()
{
- Size2D size = new Size2D(0, 0);
+ Size size = new Size(0, 0);
if (lowIndicatorSize != null)
{
size = lowIndicatorSize;
}
else
{
- if (sliderAttrs != null && sliderAttrs.LowIndicatorImageAttributes != null && sliderAttrs.LowIndicatorImageAttributes.Size2D != null)
+ if (sliderAttrs != null && sliderAttrs.LowIndicatorImageAttributes != null && sliderAttrs.LowIndicatorImageAttributes.Size != null)
{
- size = sliderAttrs.LowIndicatorImageAttributes.Size2D;
+ size = sliderAttrs.LowIndicatorImageAttributes.Size;
}
}
return size;
}
- private Size2D HighIndicatorImageSize()
+ private Size HighIndicatorImageSize()
{
- Size2D size = new Size2D(0, 0);
+ Size size = new Size(0, 0);
if (highIndicatorSize != null)
{
size = highIndicatorSize;
}
else
{
- if (sliderAttrs != null && sliderAttrs.HighIndicatorImageAttributes != null && sliderAttrs.HighIndicatorImageAttributes.Size2D != null)
+ if (sliderAttrs != null && sliderAttrs.HighIndicatorImageAttributes != null && sliderAttrs.HighIndicatorImageAttributes.Size != null)
{
- size = sliderAttrs.HighIndicatorImageAttributes.Size2D;
+ size = sliderAttrs.HighIndicatorImageAttributes.Size;
}
}
return size;
}
- private Size2D LowIndicatorTextSize()
+ private Size LowIndicatorTextSize()
{
- Size2D size = new Size2D(0, 0);
+ Size size = new Size(0, 0);
if (lowIndicatorSize != null)
{
size = lowIndicatorSize;
}
else
{
- if (sliderAttrs != null && sliderAttrs.LowIndicatorTextAttributes != null && sliderAttrs.LowIndicatorTextAttributes.Size2D != null)
+ if (sliderAttrs != null && sliderAttrs.LowIndicatorTextAttributes != null && sliderAttrs.LowIndicatorTextAttributes.Size != null)
{
- size = sliderAttrs.LowIndicatorTextAttributes.Size2D;
+ size = sliderAttrs.LowIndicatorTextAttributes.Size;
}
}
return size;
}
- private Size2D HighIndicatorTextSize()
+ private Size HighIndicatorTextSize()
{
- Size2D size = new Size2D(0, 0);
+ Size size = new Size(0, 0);
if (highIndicatorSize != null)
{
size = highIndicatorSize;
}
else
{
- if (sliderAttrs != null && sliderAttrs.HighIndicatorTextAttributes != null && sliderAttrs.HighIndicatorTextAttributes.Size2D != null)
+ if (sliderAttrs != null && sliderAttrs.HighIndicatorTextAttributes != null && sliderAttrs.HighIndicatorTextAttributes.Size != null)
{
- size = sliderAttrs.HighIndicatorTextAttributes.Size2D;
+ size = sliderAttrs.HighIndicatorTextAttributes.Size;
}
}
return size;
/// Value Changed event data.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public class ValueChangedArgs : EventArgs
{
/// <summary>
/// Curren value
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public float CurrentValue;
}
/// Value Changed event data.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public class SlidingFinishedArgs : EventArgs
{
/// <summary>
/// Curren value
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public float CurrentValue;
}
/// State Changed event data.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public class StateChangedArgs : EventArgs
{
/// <summary>
/// Curent state
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public ControlStates CurrentState;
}
}
/// User can handle Navigation by adding/inserting/deleting NavigationItem.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public class Switch : Button
{
private const int aniTime = 100; // will be defined in const file later
/// Creates a new instance of a Switch.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Switch() : base()
{
Initialize();
}
+
/// <summary>
/// Creates a new instance of a Switch with style.
/// </summary>
{
Initialize();
}
+
/// <summary>
/// Creates a new instance of a Switch with attributes.
/// </summary>
/// An event for the item selected signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandler<SelectEventArgs> SelectedEvent;
/// <summary>
/// Background image's resource url selector in Switch.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public StringSelector SwitchBackgroundImageURLSelector
{
get
/// Handler image's resource url in Switch.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string SwitchHandlerImageURL
{
get
/// Handler image's resource url selector in Switch.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public StringSelector SwitchHandlerImageURLSelector
{
get
/// Handler image's size in Switch.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D SwitchHandlerImageSize2D
+ public Size SwitchHandlerImageSize
{
get
{
- return switchAttributes?.SwitchHandlerImageAttributes?.Size2D ?? new Size2D(0, 0);
+ return switchAttributes?.SwitchHandlerImageAttributes?.Size ?? new Size(0, 0);
}
set
{
CreateSwitchHandlerImageAttributes();
- switchAttributes.SwitchHandlerImageAttributes.Size2D = value;
+ switchAttributes.SwitchHandlerImageAttributes.Size = value;
RelayoutRequest();
}
}
/// </summary>
/// <param name="type">Dispose type.</param>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
protected override void Dispose(DisposeTypes type)
{
if (disposed)
/// SelectEventArgs is a class to record item selected arguments which will sent to user.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public class SelectEventArgs : EventArgs
{
/// <summary> Select state of Switch </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public bool IsSelected;
}
}
/// User can handle Tab by adding/inserting/deleting TabItem.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public class Tab : Control
{
private const int aniTime = 100; // will be defined in const file later
/// Creates a new instance of a Tab.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Tab() : base()
{
Initialize();
/// An event for the item changed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<ItemChangeEventArgs> ItemChangedEvent;
+ public event EventHandler<ItemChangedEventArgs> ItemChangedEvent;
/// <summary>
/// Selected item's index in Tab.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public int SelectedItemIndex
{
get
/// If true, TabItem's width will be equal as text's natural width, if false, it will be decided by Tab's width and tab item count.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool IsNatureTextWidth
+ public bool UseTextNaturalSize
{
get
{
- return tabAttributes.IsNatureTextWidth;
+ return tabAttributes.UseTextNaturalSize;
}
set
{
- tabAttributes.IsNatureTextWidth = value;
+ tabAttributes.UseTextNaturalSize = value;
RelayoutRequest();
}
}
/// Gap between items.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int ItemGap
- {
- get
- {
- return tabAttributes.ItemGap;
- }
- set
- {
- tabAttributes.ItemGap = value;
- RelayoutRequest();
- }
- }
-
- /// <summary>
- /// Left space in Tab.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int LeftSpace
- {
- get
- {
- return (int)tabAttributes.Space.X;
- }
- set
- {
- tabAttributes.Space.X = value;
- RelayoutRequest();
- }
- }
-
- /// <summary>
- /// Bottom space in Tab.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int BottomSpace
- {
- get
- {
- return (int)tabAttributes.Space.W;
- }
- set
- {
- tabAttributes.Space.W = value;
- RelayoutRequest();
- }
- }
-
- /// <summary>
- /// Right space in Tab.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int RightSpace
+ public int ItemSpace
{
get
{
- return (int)tabAttributes.Space.Y;
+ return tabAttributes.ItemSpace;
}
set
{
- tabAttributes.Space.Y = value;
+ tabAttributes.ItemSpace = value;
RelayoutRequest();
}
}
/// <summary>
- /// Top space in Tab.
+ /// Space in Tab. Sequence as Left, Right, Top, Bottom
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int TopSpace
+ public Extents Space
{
get
{
- return (int)tabAttributes.Space.Z;
+ if(null == tabAttributes || null == tabAttributes.Space)
+ {
+ return null;
+ }
+ else
+ {
+ return new Extents((ushort)tabAttributes.Space.X, (ushort)tabAttributes.Space.Y, (ushort)tabAttributes.Space.Z, (ushort)tabAttributes.Space.W);
+ }
}
set
{
- tabAttributes.Space.Z = value;
- RelayoutRequest();
+ if(null != value)
+ {
+ tabAttributes.Space = new Vector4(value.Start, value.End, value.Top, value.Bottom);
+ RelayoutRequest();
+ }
}
}
/// UnderLine view's size in Tab.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Size2D UnderLineSize2D
+ public Size UnderLineSize
{
get
{
- return tabAttributes.UnderLineAttributes?.Size2D;
+ return tabAttributes.UnderLineAttributes?.Size;
}
set
{
if (value != null)
{
CreateUnderLineAttributes();
- tabAttributes.UnderLineAttributes.Size2D = value;
+ tabAttributes.UnderLineAttributes.Size = value;
RelayoutRequest();
}
}
/// UnderLine view's background in Tab.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Color UnderLineBackgroundColor
{
get
/// Text point size in Tab.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public float PointSize
{
get
/// Text font family in Tab.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string FontFamily
{
get
/// Text color in Tab.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Color TextColor
{
get
/// Text color selector in Tab.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public ColorSelector TextColorSelector
{
get
/// </summary>
/// <param name="itemData">Item data which will apply to tab item view.</param>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public void AddItem(TabItemData itemData)
{
AddItemByIndex(itemData, itemList.Count);
/// <param name="itemData">Item data which will apply to tab item view.</param>
/// <param name="index">Position index where will be inserted.</param>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public void InsertItem(TabItemData itemData, int index)
{
AddItemByIndex(itemData, index);
/// </summary>
/// <param name="itemIndex">Position index where will be deleted.</param>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public void DeleteItem(int itemIndex)
{
if(itemList == null || itemIndex < 0 || itemIndex >= itemList.Count)
/// </summary>
/// <param name="type">Dispose type.</param>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
protected override void Dispose(DisposeTypes type)
{
if (disposed)
TabAttributes tempAttributes = StyleManager.Instance.GetAttributes(style) as TabAttributes;
if (tempAttributes != null)
{
- tempAttributes.IsNatureTextWidth = tabAttributes.IsNatureTextWidth; // keep IsNatureTextWidth as original
+ tempAttributes.UseTextNaturalSize = tabAttributes.UseTextNaturalSize; // keep IsNatureTextWidth as original
attributes = tabAttributes = tempAttributes;
RelayoutRequest();
}
int preX = (int)tabAttributes.Space.X;
int preW = 0;
- int itemGap = tabAttributes.ItemGap;
+ int itemSpace = tabAttributes.ItemSpace;
if (LayoutDirection == ViewLayoutDirectionType.LTR)
{
- if (tabAttributes.IsNatureTextWidth == true)
+ if (tabAttributes.UseTextNaturalSize == true)
{
for (int i = 0; i < totalNum; i++)
{
preW = itemList[i].TextItem.NaturalSize2D.Width;
itemList[i].Position2D.X = preX;
itemList[i].Size2D.Width = preW;
- preX = itemList[i].Position2D.X + preW + itemGap;
+ preX = itemList[i].Position2D.X + preW + itemSpace;
itemList[i].Index = i;
}
}
{
itemList[i].Position2D.X = preX;
itemList[i].Size2D.Width = preW;
- preX = itemList[i].Position2D.X + preW + itemGap;
+ preX = itemList[i].Position2D.X + preW + itemSpace;
itemList[i].Index = i;
}
}
else
{
preX = (int)tabAttributes.Space.Y;
- if (tabAttributes.IsNatureTextWidth == true)
+ if (tabAttributes.UseTextNaturalSize == true)
{
int w = Size2D.Width;
for (int i = 0; i < totalNum; i++)
preW = (itemList[i].TextItem.NaturalSize2D != null ? itemList[i].TextItem.NaturalSize2D.Width : 0);
itemList[i].Position2D.X = w - preW - preX;
itemList[i].Size2D.Width = preW;
- preX = w - itemList[i].Position2D.X + itemGap;
+ preX = w - itemList[i].Position2D.X + itemSpace;
itemList[i].Index = i;
}
}
{
itemList[i].Position2D.X = preX;
itemList[i].Size2D.Width = preW;
- preX = itemList[i].Position2D.X + preW + itemGap;
+ preX = itemList[i].Position2D.X + preW + itemSpace;
itemList[i].Index = i;
}
}
{
int h = 0;
int topSpace = (int)tabAttributes.Space.Z;
- if (tabAttributes.UnderLineAttributes != null && tabAttributes.UnderLineAttributes.Size2D != null)
+ if (tabAttributes.UnderLineAttributes != null && tabAttributes.UnderLineAttributes.Size != null)
{
- h = tabAttributes.UnderLineAttributes.Size2D.Height;
+ h = (int)tabAttributes.UnderLineAttributes.Size.Height;
}
Tab.TabItem item = new TabItem();
ApplyAttributes(item.TextItem, tabAttributes.TextAttributes);
private void UpdateUnderLinePos()
{
- if (underline == null || tabAttributes.UnderLineAttributes == null || tabAttributes.UnderLineAttributes.Size2D == null
+ if (underline == null || tabAttributes.UnderLineAttributes == null || tabAttributes.UnderLineAttributes.Size == null
|| itemList == null || itemList.Count <= 0)
{
return;
}
- tabAttributes.UnderLineAttributes.Size2D.Width = itemList[curIndex].Size2D.Width;
+ tabAttributes.UnderLineAttributes.Size.Width = itemList[curIndex].Size2D.Width;
- underline.Size2D = new Size2D(itemList[curIndex].Size2D.Width, tabAttributes.UnderLineAttributes.Size2D.Height);
+ underline.Size2D = new Size2D(itemList[curIndex].Size2D.Width, (int)tabAttributes.UnderLineAttributes.Size.Height);
underline.BackgroundColor = tabAttributes.UnderLineAttributes.BackgroundColor.All;
if (isNeedAnimation)
{
return;
}
- ItemChangeEventArgs e = new ItemChangeEventArgs
+ ItemChangedEventArgs e = new ItemChangedEventArgs
{
PreviousIndex = curIndex,
CurrentIndex = item.Index
/// TabItemData is a class to record all data which will be applied to Tab item.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public class TabItemData
{
/// <summary>
/// Text string in tab item view.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string Text
{
get;
}
/// <summary>
- /// ItemChangeEventArgs is a class to record item change event arguments which will sent to user.
+ /// ItemChangedEventArgs is a class to record item change event arguments which will sent to user.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class ItemChangeEventArgs : EventArgs
+ public class ItemChangedEventArgs : EventArgs
{
/// <summary> Previous selected index of Tab </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public int PreviousIndex;
/// <summary> Current selected index of Tab </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public int CurrentIndex;
}
}
/// A toast will automatically disappear after a certain time.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public class Toast : Control
{
/// <summary>
/// Construct Toast with null.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Toast() : base()
{
Initialize();
/// Gets or sets the text array of toast.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string[] TextArray
{
get
/// Gets or sets text point size in toast.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public float PointSize
{
get
/// Gets or sets text font family in toast.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public string FontFamily
{
get
/// Gets or sets text color in toast.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public Color TextColor
{
get
/// Gets or sets text horizontal alignment in toast.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public HorizontalAlignment TextAlignment
{
get
}
/// <summary>
- /// Gets or sets text left padding in toast.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int TextPaddingLeft
- {
- get
- {
- return toastAttributes.TextAttributes?.PaddingLeft ?? textPaddingLeft;
- }
- set
- {
- CreateTextAttributes();
- toastAttributes.TextAttributes.PaddingLeft = value;
- RelayoutRequest();
- }
- }
-
- /// <summary>
- /// Gets or sets text right padding in toast.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int TextPaddingRight
- {
- get
- {
- return toastAttributes.TextAttributes?.PaddingRight ?? textPaddingRight;
- }
- set
- {
- CreateTextAttributes();
- toastAttributes.TextAttributes.PaddingRight = value;
- RelayoutRequest();
- }
- }
-
- /// <summary>
- /// Gets or sets text top padding in toast.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int TextPaddingTop
- {
- get
- {
- return toastAttributes.TextAttributes?.PaddingTop ?? textPaddingTop;
- }
- set
- {
- CreateTextAttributes();
- toastAttributes.TextAttributes.PaddingTop = value;
- RelayoutRequest();
- }
- }
-
- /// <summary>
- /// Gets or sets text bottom padding in toast.
+ /// Gets or sets text padding in toast.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int TextPaddingBottom
+ public Extents TextPadding
{
get
{
- return toastAttributes.TextAttributes?.PaddingBottom ?? textPaddingBottom;
+ if (null != toastAttributes?.TextAttributes)
+ {
+ return new Extents((ushort)toastAttributes.TextAttributes.PaddingLeft, (ushort)toastAttributes.TextAttributes.PaddingRight, (ushort)toastAttributes.TextAttributes.PaddingTop, (ushort)toastAttributes.TextAttributes.PaddingBottom);
+ }
+ else
+ {
+ return null;
+ }
}
set
{
- CreateTextAttributes();
- toastAttributes.TextAttributes.PaddingBottom = value;
- RelayoutRequest();
+ if (null != value)
+ {
+ CreateTextAttributes();
+ toastAttributes.TextAttributes.PaddingLeft = value.Start;
+ toastAttributes.TextAttributes.PaddingRight = value.End;
+ toastAttributes.TextAttributes.PaddingTop = value.Top;
+ toastAttributes.TextAttributes.PaddingBottom = value.Bottom;
+ RelayoutRequest();
+ }
}
}
/// Gets or sets text line height in toast.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public uint TextLineHeight
{
get
/// Gets or sets text line space in toast.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public uint TextLineSpace
{
get
/// Gets or sets duration of toast.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
public uint Duration
{
get
/// </summary>
/// <param name="type">dispose types.</param>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
protected override void Dispose(DisposeTypes type)
{
if (disposed)
/// </summary>
/// <param name="x">The x component.</param>
/// <param name="y">The y component.</param>
- /// <param name="z">The z component.</param>
+ /// <param name="z">The z component(optional).</param>
/// <since_tizen> 3 </since_tizen>
- public Position(float x, float y, float z) : this(Interop.Vector3.new_Vector3__SWIG_1(x, y, z), true)
+ public Position(float x, float y, float z = 0.0f) : this(Interop.Vector3.new_Vector3__SWIG_1(x, y, z), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
private PositionChangedCallback callback = null;
}
-}
\ No newline at end of file
+}
/// </summary>
/// <param name="x">The x (or width) component.</param>
/// <param name="y">The y (or height) component.</param>
- /// <param name="z">The z (or depth) component.</param>
+ /// <param name="z">The z (or depth) component(optional).</param>
/// <since_tizen> 5 </since_tizen>
- public Size(float x, float y, float z) : this(Interop.Vector3.new_Vector3__SWIG_1(x, y, z), true)
+ public Size(float x, float y, float z = 0.0f) : this(Interop.Vector3.new_Vector3__SWIG_1(x, y, z), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}