AccessibilityManager.Instance.SetAccessibilityAttribute(this, AccessibilityManager.AccessibilityAttribute.Trait, "Button");
- #if PROFILE_MOBILE
+#if PROFILE_MOBILE
Feedback = true;
- #endif
+#endif
}
private void UpdateUIContent()
{
int frameRate = (int)newValue;
if (0 != frameRate) //It will crash if 0
- {
+ {
instance.loadingStyle.FrameRate = frameRate;
instance.imageVisual.FrameDelay = 1000.0f / frameRate;
}
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty SelectedItemProperty =
BindableProperty.Create(nameof(SelectedItem), typeof(object), typeof(CollectionView), null,
- propertyChanged: (bindable, oldValue, newValue)=>
+ propertyChanged: (bindable, oldValue, newValue) =>
{
var colView = (CollectionView)bindable;
oldValue = colView.selectedItem;
SelectionPropertyChanged(colView, args);
},
- defaultValueCreator: (bindable)=>
+ defaultValueCreator: (bindable) =>
{
var colView = (CollectionView)bindable;
return colView.selectedItem;
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty SelectedItemsProperty =
BindableProperty.Create(nameof(SelectedItems), typeof(IList<object>), typeof(CollectionView), null,
- propertyChanged: (bindable, oldValue, newValue)=>
+ propertyChanged: (bindable, oldValue, newValue) =>
{
var colView = (CollectionView)bindable;
var oldSelection = colView.selectedItems ?? selectEmpty;
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty SelectionModeProperty =
BindableProperty.Create(nameof(SelectionMode), typeof(ItemSelectionMode), typeof(CollectionView), ItemSelectionMode.None,
- propertyChanged: (bindable, oldValue, newValue)=>
+ propertyChanged: (bindable, oldValue, newValue) =>
{
var colView = (CollectionView)bindable;
oldValue = colView.selectionMode;
/// Base constructor with ItemsSource
/// </summary>
/// <param name="itemsSource">item's data source</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public CollectionView(IEnumerable itemsSource) : this()
{
ItemsSource = itemsSource;
/// <param name="itemsSource">item's data source</param>
/// <param name="layouter">item's layout manager</param>
/// <param name="template">item's view template with data bindings</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public CollectionView(IEnumerable itemsSource, ItemsLayouter layouter, DataTemplate template) : this()
{
ItemsSource = itemsSource;
/// <summary>
/// Align item in the viewport when ScrollTo() calls.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public enum ItemScrollTo
{
/// <summary>
/// Boolean flag of group feature existence.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public bool IsGrouped
- {
+ public bool IsGrouped
+ {
get => isGrouped;
set
{
switch (direction)
{
case View.FocusDirection.Left:
- {
- nextFocusedView = LeftFocusableView;
- break;
- }
+ {
+ nextFocusedView = LeftFocusableView;
+ break;
+ }
case View.FocusDirection.Right:
- {
- nextFocusedView = RightFocusableView;
- break;
- }
+ {
+ nextFocusedView = RightFocusableView;
+ break;
+ }
case View.FocusDirection.Up:
- {
- nextFocusedView = UpFocusableView;
- break;
- }
+ {
+ nextFocusedView = UpFocusableView;
+ break;
+ }
case View.FocusDirection.Down:
- {
- nextFocusedView = DownFocusableView;
- break;
- }
+ {
+ nextFocusedView = DownFocusableView;
+ break;
+ }
}
- if(nextFocusedView != null)
+ if (nextFocusedView != null)
{
focusedView = null;
}
{
case ItemScrollTo.Start:
//nothing necessary.
- break;
+ break;
case ItemScrollTo.Center:
scrollPos = scrollPos - (curSize / 2) + (curItemSize / 2);
- break;
+ break;
case ItemScrollTo.End:
scrollPos = scrollPos - curSize + curItemSize;
- break;
+ break;
case ItemScrollTo.Nearest:
if (scrollPos < curPos - curItemSize)
{
// item is in the scroller. ScrollTo() is ignored.
return;
}
- break;
+ break;
}
//Console.WriteLine("[NUI] ScrollTo [{0}]-------------------", scrollPos);
}
}
- static DefaultGridItem() {}
+ static DefaultGridItem() { }
/// <summary>
/// Creates a new instance of DefaultGridItem.
{
get
{
- if ( itemImage == null)
+ if (itemImage == null)
{
itemImage = CreateImage(ItemStyle.Image);
if (itemImage != null)
}
}
-/* open when ImageView using Uri not string
- /// <summary>
- /// Image image's resource url in DefaultGridItem.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public string ImageUrl
- {
- get
- {
- return Image.ResourceUrl;
- }
- set
- {
- Image.ResourceUrl = value;
- }
- }
-*/
+ /* open when ImageView using Uri not string
+ /// <summary>
+ /// Image image's resource url in DefaultGridItem.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public string ImageUrl
+ {
+ get
+ {
+ return Image.ResourceUrl;
+ }
+ set
+ {
+ Image.ResourceUrl = value;
+ }
+ }
+ */
/// <summary>
/// DefaultGridItem's text part.
return new ImageView(imageStyle);
}
- /// <inheritdoc/>
+ /// <inheritdoc/>
[EditorBrowsable(EditorBrowsableState.Never)]
protected override void MeasureChild()
{
}
}
- static DefaultLinearItem() {}
+ static DefaultLinearItem() { }
/// <summary>
/// Creates a new instance of DefaultLinearItem.
/// <summary>
/// The text of DefaultLinearItem.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public string Text
{
get
/// <summary>
/// The text of DefaultLinearItem.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public string SubText
{
get
var margin = itemSeperator.Margin;
itemSeperator.SizeWidth = SizeWidth - margin.Start - margin.End;
itemSeperator.SizeHeight = itemSeperator.HeightSpecification;
- itemSeperator.Position = new Position(margin.Start, SizeHeight - margin.Bottom -itemSeperator.SizeHeight);
+ itemSeperator.Position = new Position(margin.Start, SizeHeight - margin.Bottom - itemSeperator.SizeHeight);
}
}
}
var margin = itemSeperator.Margin;
itemSeperator.SizeWidth = SizeWidth - margin.Start - margin.End;
itemSeperator.SizeHeight = itemSeperator.HeightSpecification;
- itemSeperator.Position = new Position(margin.Start, SizeHeight - margin.Bottom -itemSeperator.SizeHeight);
+ itemSeperator.Position = new Position(margin.Start, SizeHeight - margin.Bottom - itemSeperator.SizeHeight);
}
}
}
{
MeasureChild();
LayoutChild();
- }
+ }
}
}
}
}
- static DefaultTitleItem() {}
+ static DefaultTitleItem() { }
/// <summary>
/// Creates a new instance of DefaultTitleItem.
/// <summary>
/// The text of DefaultTitleItem.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public string Text
{
get
var margin = itemSeperator.Margin;
itemSeperator.SizeWidth = SizeWidth - margin.Start - margin.End;
itemSeperator.SizeHeight = itemSeperator.HeightSpecification;
- itemSeperator.Position = new Position(margin.Start, SizeHeight - margin.Bottom -itemSeperator.SizeHeight);
+ itemSeperator.Position = new Position(margin.Start, SizeHeight - margin.Bottom - itemSeperator.SizeHeight);
}
}
}
var margin = itemSeperator.Margin;
itemSeperator.SizeWidth = SizeWidth - margin.Start - margin.End;
itemSeperator.SizeHeight = itemSeperator.HeightSpecification;
- itemSeperator.Position = new Position(margin.Start, SizeHeight - margin.Bottom -itemSeperator.SizeHeight);
+ itemSeperator.Position = new Position(margin.Start, SizeHeight - margin.Bottom - itemSeperator.SizeHeight);
}
}
}
{
MeasureChild();
LayoutChild();
- }
+ }
}
}
CollectionView colView = ParentItemsView as CollectionView;
switch (colView.SelectionMode)
{
- case ItemSelectionMode.SingleSelection :
+ case ItemSelectionMode.SingleSelection:
colView.SelectedItem = IsSelected ? null : BindingContext;
break;
- case ItemSelectionMode.MultipleSelections :
+ case ItemSelectionMode.MultipleSelections:
var selectedItems = colView.SelectedItems;
if (selectedItems.Contains(BindingContext)) selectedItems.Remove(BindingContext);
else selectedItems.Add(BindingContext);
break;
- case ItemSelectionMode.None :
+ case ItemSelectionMode.None:
break;
}
}
}
}
- static RecyclerViewItem() {}
+ static RecyclerViewItem() { }
/// <summary>
/// Creates a new instance of RecyclerViewItem.
[EditorBrowsable(EditorBrowsableState.Never)]
public bool IsEnabled
{
- get => (bool)GetValue(IsEnabledProperty);
- set => SetValue(IsEnabledProperty, value);
+ get => (bool)GetValue(IsEnabledProperty);
+ set => SetValue(IsEnabledProperty, value);
}
/// <summary>
public bool IsRealized { get; internal set; }
internal bool IsHeader { get; set; }
internal bool IsFooter { get; set; }
- internal bool IsPressed { get; set; } = false;
+ internal bool IsPressed { get; set; } = false;
/// <summary>
/// Called after a key event is received by the view that has had its focus set.
CollectionView colView = ParentItemsView as CollectionView;
switch (colView.SelectionMode)
{
- case ItemSelectionMode.SingleSelection :
+ case ItemSelectionMode.SingleSelection:
colView.SelectedItem = IsSelected ? null : BindingContext;
break;
- case ItemSelectionMode.MultipleSelections :
+ case ItemSelectionMode.MultipleSelections:
var selectedItems = colView.SelectedItems;
if (selectedItems.Contains(BindingContext)) selectedItems.Remove(BindingContext);
else selectedItems.Add(BindingContext);
break;
- case ItemSelectionMode.None :
+ case ItemSelectionMode.None:
break;
}
}
/// <summary>
/// None of item can be selected.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
None,
/// <summary>
/// Single selection. select item exculsively so previous selected item will be unselected.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
SingleSelection,
/// <summary>
/// Multiple selections. select multiple items and previous selected item still remains selected.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
MultipleSelections
}
}
/// <summary>
/// Count of data source.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
int Count { get; }
/// <summary>
/// Position integer value of data object.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
int GetPosition(object item);
/// <summary>
/// Item object in position.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
object GetItem(int position);
/// <summary>
/// Flag of header existence.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
bool HasHeader { get; set; }
/// <summary>
/// Flag of Footer existence.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
bool HasFooter { get; set; }
/// <summary>
/// warning: if header exist, all item index will be increased.
/// </summary>
/// <param name="position">The position for checking header.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
bool IsHeader(int position);
/// <summary>
/// warning: footer will be place original data count or data count + 1.
/// </summary>
/// <param name="position">The position for checking footer.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
bool IsFooter(int position);
}
/// Boolean checker for position is group header or not
/// </summary>
/// <param name="position">The position for checking group header.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
bool IsGroupHeader(int position);
/// <summary>
/// Boolean checker for position is group footer or not
/// </summary>
/// <param name="position">The position for checking group footer.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
bool IsGroupFooter(int position);
/// <summary>
/// Boolean checker for position is group footer or not
/// </summary>
/// <param name="position">The position for checking group footer.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
object GetGroupParent(int position);
}
args = new ResetNotifyCollectionChangedEventArgs(items);
}
-/*
- if (Device.IsInvokeRequired)
- {
- Device.BeginInvokeOnMainThread(() => HandleCollectionChange(args));
- }
- else
- {
- HandleCollectionChange(args);
- }
-*/
+ /*
+ if (Device.IsInvokeRequired)
+ {
+ Device.BeginInvokeOnMainThread(() => HandleCollectionChange(args));
+ }
+ else
+ {
+ HandleCollectionChange(args);
+ }
+ */
HandleCollectionChange(args);
}
return;
}
- disposed = true;
+ disposed = true;
if (disposing)
{
else
{
*/
- CollectionChanged(args);
+ CollectionChanged(args);
//}
}
}
else
{*/
- CollectionChanged(args);
+ CollectionChanged(args);
//}
}
/// Container which contains ViewItems.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- protected View Container{ get ; set; }
+ protected View Container { get; set; }
/// <summary>
/// Parent ItemsView.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- protected RecyclerView ItemsView{ get; set; }
+ protected RecyclerView ItemsView { get; set; }
/// <summary>
/// The last scrolled position which is calculated by ScrollableBase. The value should be updated in the Recycle() method.
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual void RequestLayout(float scrollPosition, bool force = false)
{
- // Layouting Items in scrollPosition.
+ // Layouting Items in scrollPosition.
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual (float X, float Y) GetItemPosition(object item)
{
- if (item == null) throw new ArgumentNullException(nameof(item));
- // Layouting Items in scrollPosition.
- return (0, 0);
+ if (item == null) throw new ArgumentNullException(nameof(item));
+ // Layouting Items in scrollPosition.
+ return (0, 0);
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual (float X, float Y) GetItemSize(object item)
{
- if (item == null) throw new ArgumentNullException(nameof(item));
- // Layouting Items in scrollPosition.
- return (0, 0);
+ if (item == null) throw new ArgumentNullException(nameof(item));
+ // Layouting Items in scrollPosition.
+ return (0, 0);
}
/// <summary>
headerSize = IsHorizontal ? width : height;
hasHeader = true;
-
+
colView.UnrealizeItem(header);
}
else hasHeader = false;
footerSize = IsHorizontal ? width : height;
footer.Index = count - 1;
hasFooter = true;
-
+
colView.UnrealizeItem(footer);
}
else hasFooter = false;
//No Internal Source exist.
- if (count == (hasHeader? (hasFooter? 2 : 1) : 0)) return;
+ if (count == (hasHeader ? (hasFooter ? 2 : 1) : 0)) return;
int firstIndex = hasHeader ? 1 : 0;
RecyclerViewItem groupHeader = colView.RealizeItem(firstIndex);
firstIndex++;
- if (groupHeader == null) throw new Exception("["+firstIndex+"] Group Header failed to realize!");
+ if (groupHeader == null) throw new Exception("[" + firstIndex + "] Group Header failed to realize!");
// Need to Set proper hieght or width on scroll direciton.
if (groupHeader.Layout == null)
{
- width = groupHeader.WidthSpecification;
+ width = groupHeader.WidthSpecification;
height = groupHeader.HeightSpecification;
}
else
{
RecyclerViewItem groupFooter = colView.RealizeItem(firstFooter);
- if (groupFooter == null) throw new Exception("["+firstFooter+"] Group Footer failed to realize!");
+ if (groupFooter == null) throw new Exception("[" + firstFooter + "] Group Footer failed to realize!");
// Need to Set proper hieght or width on scroll direciton.
if (groupFooter.Layout == null)
{
- width = groupFooter.WidthSpecification;
+ width = groupFooter.WidthSpecification;
height = groupFooter.HeightSpecification;
}
else
// Need to Set proper hieght or width on scroll direciton.
if (sizeDeligate.Layout == null)
{
- width = sizeDeligate.WidthSpecification;
+ width = sizeDeligate.WidthSpecification;
height = sizeDeligate.HeightSpecification;
}
else
// pick the StepCandidate.
StepCandidate = IsHorizontal ? width : height;
if (StepCandidate == 0) StepCandidate = 1; //????
-
+
colView.UnrealizeItem(sizeDeligate);
}
{
if (i == 0 && hasHeader)
ItemSize.Add(headerSize);
- else if (i == count -1 && hasFooter)
+ else if (i == count - 1 && hasFooter)
ItemSize.Add(footerSize);
else if (source.IsGroupHeader(i))
ItemSize.Add(groupHeaderSize);
//ItemPosition.Add(Current);
Current += headerSize;
}
- else if (i == count -1 && hasFooter)
+ else if (i == count - 1 && hasFooter)
{
//ItemPosition.Add(Current);
Current += footerSize;
ItemPosition.Add(Current);
if (i == 0 && hasHeader) Current += headerSize;
- else if (i == count -1 && hasFooter) Current += footerSize;
+ else if (i == count - 1 && hasFooter) Current += footerSize;
else Current += StepCandidate;
}
}
{
// Layouting is only possible after once it intialized.
if (!IsInitialized) return;
- int LastIndex = colView.InternalItemSource.Count -1;
+ int LastIndex = colView.InternalItemSource.Count - 1;
if (!force && PrevScrollPosition == Math.Abs(scrollPosition)) return;
PrevScrollPosition = Math.Abs(scrollPosition);
int prevLastVisible = LastVisible;
(float X, float Y) visibleArea = (PrevScrollPosition,
- PrevScrollPosition + ( IsHorizontal ? colView.Size.Width : colView.Size.Height)
+ PrevScrollPosition + (IsHorizontal ? colView.Size.Width : colView.Size.Height)
);
// 1. Set First/Last Visible Item Index.
{
if (item.Index < FirstVisible || item.Index > LastVisible)
{
- //Console.WriteLine("[NUI] Unrealize{0}!", item.Index);
- unrealizedItems.Add(item);
- colView.UnrealizeItem(item);
+ //Console.WriteLine("[NUI] Unrealize{0}!", item.Index);
+ unrealizedItems.Add(item);
+ colView.UnrealizeItem(item);
}
}
VisibleItems.RemoveAll(unrealizedItems.Contains);
else if (colView.Footer == item)
{
posX = (IsHorizontal ? ScrollContentSize - item.SizeWidth : 0F);
- posY =(IsHorizontal ? 0F : ScrollContentSize - item.SizeHeight);
+ posY = (IsHorizontal ? 0F : ScrollContentSize - item.SizeHeight);
}
else
{
[EditorBrowsable(EditorBrowsableState.Never)]
public override (float X, float Y) GetItemPosition(object item)
{
- if (item == null) throw new ArgumentNullException(nameof(item));
- // Layouting Items in scrollPosition.
- float pos = ItemPosition[colView.InternalItemSource.GetPosition(item)];
+ if (item == null) throw new ArgumentNullException(nameof(item));
+ // Layouting Items in scrollPosition.
+ float pos = ItemPosition[colView.InternalItemSource.GetPosition(item)];
- return (IsHorizontal ? (pos, 0.0F) : (0.0F, pos));
+ return (IsHorizontal ? (pos, 0.0F) : (0.0F, pos));
}
/// <Inheritdoc/>
[EditorBrowsable(EditorBrowsableState.Never)]
public override (float X, float Y) GetItemSize(object item)
{
- if (item == null) throw new ArgumentNullException(nameof(item));
- // Layouting Items in scrollPosition.
- float size = GetItemSize(colView.InternalItemSource.GetPosition(item));
- float view = (IsHorizontal ? colView.Size.Height : colView.Size.Width);
+ if (item == null) throw new ArgumentNullException(nameof(item));
+ // Layouting Items in scrollPosition.
+ float size = GetItemSize(colView.InternalItemSource.GetPosition(item));
+ float view = (IsHorizontal ? colView.Size.Height : colView.Size.Width);
- return (IsHorizontal ? (size, view) : (view, size));
+ return (IsHorizontal ? (size, view) : (view, size));
}
/// <inheritdoc/>
return;
float PrevSize, CurrentSize;
- if (item.Index == (colView.InternalItemSource.Count-1))
+ if (item.Index == (colView.InternalItemSource.Count - 1))
{
PrevSize = ScrollContentSize - ItemPosition[item.Index];
}
if (CurrentSize != PrevSize)
{
if (colView.SizingStrategy == ItemSizingStrategy.MeasureAll)
- ItemSize[item.Index] = CurrentSize;
+ ItemSize[item.Index] = CurrentSize;
else
- StepCandidate = CurrentSize;
+ StepCandidate = CurrentSize;
}
if (ItemSizeChanged == -1) ItemSizeChanged = item.Index;
else ItemSizeChanged = Math.Min(ItemSizeChanged, item.Index);
View nextFocusedView = null;
int targetSibling = -1;
- switch(direction)
+ switch (direction)
{
- case View.FocusDirection.Left :
- {
- targetSibling = IsHorizontal ? currentFocusedView.SiblingOrder - 1 : targetSibling;
- break;
- }
- case View.FocusDirection.Right :
- {
- targetSibling = IsHorizontal ? currentFocusedView.SiblingOrder + 1 : targetSibling;
- break;
- }
- case View.FocusDirection.Up :
- {
- targetSibling = IsHorizontal ? targetSibling : currentFocusedView.SiblingOrder - 1;
- break;
- }
- case View.FocusDirection.Down :
- {
- targetSibling = IsHorizontal ? targetSibling : currentFocusedView.SiblingOrder + 1;
- break;
- }
+ case View.FocusDirection.Left:
+ {
+ targetSibling = IsHorizontal ? currentFocusedView.SiblingOrder - 1 : targetSibling;
+ break;
+ }
+ case View.FocusDirection.Right:
+ {
+ targetSibling = IsHorizontal ? currentFocusedView.SiblingOrder + 1 : targetSibling;
+ break;
+ }
+ case View.FocusDirection.Up:
+ {
+ targetSibling = IsHorizontal ? targetSibling : currentFocusedView.SiblingOrder - 1;
+ break;
+ }
+ case View.FocusDirection.Down:
+ {
+ targetSibling = IsHorizontal ? targetSibling : currentFocusedView.SiblingOrder + 1;
+ break;
+ }
}
- if(targetSibling > -1 && targetSibling < Container.Children.Count)
+ if (targetSibling > -1 && targetSibling < Container.Children.Count)
{
RecyclerViewItem candidate = Container.Children[targetSibling] as RecyclerViewItem;
- if(candidate.Index >= 0 && candidate.Index < colView.InternalItemSource.Count)
+ if (candidate.Index >= 0 && candidate.Index < colView.InternalItemSource.Count)
{
nextFocusedView = candidate;
}
if (isGrouped)
{
bool failed = true;
- foreach(GroupInfo gInfo in groups)
+ foreach (GroupInfo gInfo in groups)
{
skipGroup++;
// in the Group
found.start = gInfo.StartIndex + i - adds;
failed = false;
break;
-
+
}
else if (gInfo.ItemPosition[i] <= visibleArea.X - gInfo.GroupPosition &&
gInfo.ItemPosition[i + 1] >= visibleArea.X - gInfo.GroupPosition)
bool failed = true;
// can it be start from founded group...?
//foreach(GroupInfo gInfo in groups.Skip(skipGroup))
- foreach(GroupInfo gInfo in groups)
+ foreach (GroupInfo gInfo in groups)
{
// in the Group
if (gInfo.GroupPosition <= visibleArea.Y &&
found.end = gInfo.StartIndex + i + adds;
failed = false;
break;
-
+
}
else if (gInfo.ItemPosition[i] <= visibleArea.Y - gInfo.GroupPosition &&
gInfo.ItemPosition[i + 1] >= visibleArea.Y - gInfo.GroupPosition)
}
else
{
- float visibleAreaY = visibleArea.Y - (hasHeader ? headerSize : 0);
+ float visibleAreaY = visibleArea.Y - (hasHeader ? headerSize : 0);
found.end = (Convert.ToInt32(Math.Abs(visibleAreaY / StepCandidate)) + adds);
if (hasHeader) found.end += 1;
}
if (index <= 0) return;
if (index >= colView.InternalItemSource.Count)
- if (IsGroup)
- {
- //IsGroupHeader = (colView.InternalItemSource as IGroupableItemSource).IsGroupHeader(index);
- //IsGroupFooter = (colView.InternalItemSource as IGroupableItemSource).IsGroupFooter(index);
- //Do Something
- }
+ if (IsGroup)
+ {
+ //IsGroupHeader = (colView.InternalItemSource as IGroupableItemSource).IsGroupHeader(index);
+ //IsGroupFooter = (colView.InternalItemSource as IGroupableItemSource).IsGroupFooter(index);
+ //Do Something
+ }
- ItemPosition[index] = ItemPosition[index-1] + GetItemSize(index-1);
+ ItemPosition[index] = ItemPosition[index - 1] + GetItemSize(index - 1);
}
private RecyclerViewItem GetVisibleItem(int index)
if (Visited != null)
{
if (Visited.StartIndex <= index && Visited.StartIndex + Visited.Count > index)
- return Visited;
+ return Visited;
}
if (hasHeader && index == 0) return null;
foreach (GroupInfo group in groups)
Visited = null;
return null;
}
-/*
- private object GetGroupParent(int index)
- {
- if (Visited != null)
- {
- if (Visited.StartIndex <= index && Visited.StartIndex + Visited.Count > index)
- return Visited.GroupParent;
- }
- if (hasHeader && index == 0) return null;
- foreach (GroupInfo group in groups)
- {
- if (group.StartIndex <= index && group.StartIndex + group.Count > index)
+ /*
+ private object GetGroupParent(int index)
{
- Visited = group;
- return group.GroupParent;
+ if (Visited != null)
+ {
+ if (Visited.StartIndex <= index && Visited.StartIndex + Visited.Count > index)
+ return Visited.GroupParent;
+ }
+ if (hasHeader && index == 0) return null;
+ foreach (GroupInfo group in groups)
+ {
+ if (group.StartIndex <= index && group.StartIndex + group.Count > index)
+ {
+ Visited = group;
+ return group.GroupParent;
+ }
+ }
+ Visited = null;
+ return null;
}
- }
- Visited = null;
- return null;
- }
-*/
+ */
class GroupInfo
{
public object GroupParent;
public int StartIndex;
public int Count;
public float GroupSize;
- public float GroupPosition;
+ public float GroupPosition;
//Items relative position from the GroupPosition
public List<float> ItemPosition = new List<float>();
}
/// <summary>
/// Base Constructor
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public RecyclerView() : base()
{
Scrolling += OnScrolling;
/// <summary>
/// Internal encapsulated items data source.
/// </summary>
- internal IItemSource InternalItemSource { get; set;}
+ internal IItemSource InternalItemSource { get; set; }
/// <summary>
/// RecycleCache of ViewItem.
/// Internal Items Layouter.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- protected ItemsLayouter InternalItemsLayouter {get; set; }
+ protected ItemsLayouter InternalItemsLayouter { get; set; }
/// <summary>
/// Max size of RecycleCache. Default is 50.
{
//Console.WriteLine("[NUI] On ReLayout [{0} {0}]", size.X, size.Y);
base.OnRelayout(size, container);
- if (InternalItemsLayouter != null && ItemsSource != null && ItemTemplate != null)
+ if (InternalItemsLayouter != null && ItemsSource != null && ItemTemplate != null)
{
InternalItemsLayouter.Initialize(this);
InternalItemsLayouter.RequestLayout(ScrollingDirection == Direction.Horizontal ? ContentContainer.CurrentPosition.X : ContentContainer.CurrentPosition.Y, true);
}
else
{
- // pop item
- RecyclerViewItem item = PopRecycleCache(ItemTemplate);
- if (item != null)
- {
+ // pop item
+ RecyclerViewItem item = PopRecycleCache(ItemTemplate);
+ if (item != null)
+ {
DecorateItem(item, index, context);
return item;
- }
+ }
}
object content = DataTemplateExtensions.CreateContent(ItemTemplate, context, (BindableObject)this) ?? throw new Exception("Template return null object.");
[EditorBrowsable(EditorBrowsableState.Never)]
protected virtual RecyclerViewItem PopRecycleCache(DataTemplate Template)
{
- for (int i = 0; i < RecycleCache.Count; i++)
- {
- RecyclerViewItem item = RecycleCache[i];
- if (item.Template == Template)
- {
- RecycleCache.Remove(item);
- item.Show();
- return item;
- }
- }
- return null;
+ for (int i = 0; i < RecycleCache.Count; i++)
+ {
+ RecyclerViewItem item = RecycleCache[i];
+ if (item.Template == Template)
+ {
+ RecycleCache.Remove(item);
+ item.Show();
+ return item;
+ }
+ }
+ return null;
}
/// <summary>
/// <summary>
/// Previous selection list.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public IReadOnlyList<object> PreviousSelection { get; }
/// <summary>
}
}
- private PaddingType EnsurePadding(Extents padding) => padding == null ? new PaddingType(0, 0, 0 ,0) : new PaddingType(padding.Start, padding.End, padding.Top, padding.Bottom);
+ private PaddingType EnsurePadding(Extents padding) => padding == null ? new PaddingType(0, 0, 0, 0) : new PaddingType(padding.Start, padding.End, padding.Top, padding.Bottom);
#endregion Methods
{
EmitAccessibilityStateChangedEvent(AccessibilityState.Checked, info.CurrentState.Contains(ControlState.Selected));
}
-
+
// SelectedChanged is invoked when button or key is unpressed.
if (invokeSelectedChanged == false)
{
}
set
{
- if (value == null || thumbImage == null)
+ if (value == null || thumbImage == null)
{
throw new NullReferenceException("Slider.WarningThumbImageUri is null");
}
private void Initialize()
{
IsSelectable = true;
- #if PROFILE_MOBILE
+#if PROFILE_MOBILE
Feedback = true;
- #endif
+#endif
}
private void OnSelect()
* limitations under the License.
*
*/
-
+
using System.ComponentModel;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Binding;
[EditorBrowsable(EditorBrowsableState.Never)]
public class DefaultGridItemStyle : RecyclerViewItemStyle
{
-
+
static DefaultGridItemStyle() { }
/// <summary>
* limitations under the License.
*
*/
-
+
using System.ComponentModel;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Binding;
* limitations under the License.
*
*/
-
+
using System.ComponentModel;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Binding;
* limitations under the License.
*
*/
-
+
using System.ComponentModel;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Binding;
Instance.GetExternalThemeKeyListSet();
}
- private static void SetBackgroundColor(ViewStyle style, Selector<Color> value) => style.BackgroundColor = value;
+ private static void SetBackgroundColor(ViewStyle style, Selector<Color> value) => style.BackgroundColor = value;
private static void SetBackgroundImage(ViewStyle style, Selector<string> value) => style.BackgroundImage = value;
Selected = new Color(0.701f, 0.898f, 0.937f, 1),
},
});
-
+
theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultLinearItem", new DefaultLinearItemStyle()
{
SizeHeight = 130,
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
Id="Tizen.NUI.Theme.Common" >
- <!--Button-->
- <c:ButtonStyle x:Key="Tizen.NUI.Components.Button" Size="100, 45">
- <c:ButtonStyle.BackgroundColor>
- <Selector x:TypeArguments="Color" Normal="0.88, 0.88, 0.88, 1" Pressed="0.77, 0.77, 0.77, 1" Disabled="0.88, 0.88, 0.88, 1"/>
- </c:ButtonStyle.BackgroundColor>
- <c:ButtonStyle.Text> <!--Button Text-->
- <TextLabelStyle PointSize="12">
- <TextLabelStyle.TextColor>
- <Selector x:TypeArguments="Color" Normal="0.22, 0.22, 0.22, 1" Pressed="0.11, 0.11, 0.11, 1" Disabled="0.66, 0.66, 0.66, 1"/>
- </TextLabelStyle.TextColor>
- </TextLabelStyle>
- </c:ButtonStyle.Text>
- </c:ButtonStyle>
-
- <!--CheckBox-->
- <c:ButtonStyle x:Key="Tizen.NUI.Components.CheckBox" Size="30, 30">
- <c:ButtonStyle.Icon> <!--CheckBox Icon-->
- <ImageViewStyle>
- <ImageViewStyle.Opacity>
- <Selector x:TypeArguments="x:Single?" Normal="1.0" Selected="1.0" Disabled="0.4" DisabledSelected="0.4"/>
- </ImageViewStyle.Opacity>
- <ImageViewStyle.BackgroundImage>
- <Selector x:TypeArguments="x:String" Pressed="{NUIResourcePath nui_component_default_checkbox_bg_p.png}" Selected="{NUIResourcePath nui_component_default_checkbox_bg_p.png}" Other="{NUIResourcePath nui_component_default_checkbox_bg_n.png}"/>
- </ImageViewStyle.BackgroundImage>
- <ImageViewStyle.ResourceUrl>
- <Selector x:TypeArguments="x:String" Selected="{NUIResourcePath nui_component_default_checkbox_s.png}" Other=""/>
- </ImageViewStyle.ResourceUrl>
- </ImageViewStyle>
- </c:ButtonStyle.Icon>
- <c:ButtonStyle.Text> <!--CheckBox Text-->
- <TextLabelStyle PointSize="12">
- <TextLabelStyle.TextColor>
- <Selector x:TypeArguments="Color" Normal="0.22, 0.22, 0.22, 1" Pressed="0.11, 0.11, 0.11, 1" Disabled="0.66, 0.66, 0.66, 1"/>
- </TextLabelStyle.TextColor>
- </TextLabelStyle>
- </c:ButtonStyle.Text>
- </c:ButtonStyle>
-
- <!--DropDown-->
- <c:DropDownStyle x:Key="Tizen.NUI.Components.DropDown" SpaceBetweenButtonTextAndIcon="10" ListPadding="5">
- <c:DropDownStyle.Button> <!--DropDown Button-->
- <c:ButtonStyle BackgroundImageBorder="6, 6, 6, 6" IconPadding="6">
- <c:ButtonStyle.BackgroundImage>
- <Selector x:TypeArguments="x:String" Pressed="{NUIResourcePath nui_component_default_checkbox_bg_p.png}" Other="{NUIResourcePath nui_component_default_checkbox_bg_n.png}"/>
- </c:ButtonStyle.BackgroundImage>
+ <!--Button-->
+ <c:ButtonStyle x:Key="Tizen.NUI.Components.Button" Size="100, 45">
+ <c:ButtonStyle.BackgroundColor>
+ <Selector x:TypeArguments="Color" Normal="0.88, 0.88, 0.88, 1" Pressed="0.77, 0.77, 0.77, 1" Disabled="0.88, 0.88, 0.88, 1"/>
+ </c:ButtonStyle.BackgroundColor>
<c:ButtonStyle.Text>
- <TextLabelStyle Text="Select an item" PointSize="12"/>
+ <!--Button Text-->
+ <TextLabelStyle PointSize="12">
+ <TextLabelStyle.TextColor>
+ <Selector x:TypeArguments="Color" Normal="0.22, 0.22, 0.22, 1" Pressed="0.11, 0.11, 0.11, 1" Disabled="0.66, 0.66, 0.66, 1"/>
+ </TextLabelStyle.TextColor>
+ </TextLabelStyle>
</c:ButtonStyle.Text>
+ </c:ButtonStyle>
+
+ <!--CheckBox-->
+ <c:ButtonStyle x:Key="Tizen.NUI.Components.CheckBox" Size="30, 30">
<c:ButtonStyle.Icon>
- <ImageViewStyle Size="28, 28" ResourceUrl="{NUIResourcePath nui_component_default_dropdown_button_icon.png}"/>
+ <!--CheckBox Icon-->
+ <ImageViewStyle>
+ <ImageViewStyle.Opacity>
+ <Selector x:TypeArguments="x:Single?" Normal="1.0" Selected="1.0" Disabled="0.4" DisabledSelected="0.4"/>
+ </ImageViewStyle.Opacity>
+ <ImageViewStyle.BackgroundImage>
+ <Selector x:TypeArguments="x:String" Pressed="{NUIResourcePath nui_component_default_checkbox_bg_p.png}" Selected="{NUIResourcePath nui_component_default_checkbox_bg_p.png}" Other="{NUIResourcePath nui_component_default_checkbox_bg_n.png}"/>
+ </ImageViewStyle.BackgroundImage>
+ <ImageViewStyle.ResourceUrl>
+ <Selector x:TypeArguments="x:String" Selected="{NUIResourcePath nui_component_default_checkbox_s.png}" Other=""/>
+ </ImageViewStyle.ResourceUrl>
+ </ImageViewStyle>
+ </c:ButtonStyle.Icon>
+ <c:ButtonStyle.Text>
+ <!--CheckBox Text-->
+ <TextLabelStyle PointSize="12">
+ <TextLabelStyle.TextColor>
+ <Selector x:TypeArguments="Color" Normal="0.22, 0.22, 0.22, 1" Pressed="0.11, 0.11, 0.11, 1" Disabled="0.66, 0.66, 0.66, 1"/>
+ </TextLabelStyle.TextColor>
+ </TextLabelStyle>
+ </c:ButtonStyle.Text>
+ </c:ButtonStyle>
+
+ <!--DropDown-->
+ <c:DropDownStyle x:Key="Tizen.NUI.Components.DropDown" SpaceBetweenButtonTextAndIcon="10" ListPadding="5">
+ <c:DropDownStyle.Button>
+ <!--DropDown Button-->
+ <c:ButtonStyle BackgroundImageBorder="6, 6, 6, 6" IconPadding="6">
+ <c:ButtonStyle.BackgroundImage>
+ <Selector x:TypeArguments="x:String" Pressed="{NUIResourcePath nui_component_default_checkbox_bg_p.png}" Other="{NUIResourcePath nui_component_default_checkbox_bg_n.png}"/>
+ </c:ButtonStyle.BackgroundImage>
+ <c:ButtonStyle.Text>
+ <TextLabelStyle Text="Select an item" PointSize="12"/>
+ </c:ButtonStyle.Text>
+ <c:ButtonStyle.Icon>
+ <ImageViewStyle Size="28, 28" ResourceUrl="{NUIResourcePath nui_component_default_dropdown_button_icon.png}"/>
+ </c:ButtonStyle.Icon>
+ </c:ButtonStyle>
+ </c:DropDownStyle.Button>
+ <c:DropDownStyle.ListBackgroundImage>
+ <!--DropDown ListBackgroundImage-->
+ <ImageViewStyle ResourceUrl="{NUIResourcePath nui_component_default_dropdown_list_bg.png}" Border="6, 6, 6, 6" Size="280, 360"/>
+ </c:DropDownStyle.ListBackgroundImage>
+ </c:DropDownStyle>
+
+ <!--DropDownDataItem-->
+ <c:DropDownItemStyle x:Key="Tizen.NUI.Components.DropDown.DropDownDataItem" Size="360, 50">
+ <c:DropDownItemStyle.BackgroundColor>
+ <Selector x:TypeArguments="Color" Pressed="0.05, 0.63, 0.9, 1" Selected="0.8, 0.8, 0.8, 1" Normal="1, 1, 1, 1"/>
+ </c:DropDownItemStyle.BackgroundColor>
+ <c:DropDownItemStyle.Text>
+ <TextLabelStyle PointSize="12" Position="28, 0"/>
+ </c:DropDownItemStyle.Text>
+ </c:DropDownItemStyle>
+
+ <!--DropDownDataItem (for legacy FH)-->
+ <c:DropDownItemStyle x:Key="Tizen.FH.NUI.Components.DropDownDataItem" Size="360, 50">
+ <c:DropDownItemStyle.BackgroundColor>
+ <Selector x:TypeArguments="Color" Pressed="0.05, 0.63, 0.9, 1" Selected="0.8, 0.8, 0.8, 1" Normal="1, 1, 1, 1"/>
+ </c:DropDownItemStyle.BackgroundColor>
+ <c:DropDownItemStyle.Text>
+ <TextLabelStyle PointSize="12" Position="28, 0"/>
+ </c:DropDownItemStyle.Text>
+ </c:DropDownItemStyle>
+
+ <!--DropDownDataItem (for legacy FH)-->
+ <c:DropDownItemStyle x:Key="DropDownDataItem" Size="360, 50">
+ <c:DropDownItemStyle.BackgroundColor>
+ <Selector x:TypeArguments="Color" Pressed="0.05, 0.63, 0.9, 1" Selected="0.8, 0.8, 0.8, 1" Normal="1, 1, 1, 1"/>
+ </c:DropDownItemStyle.BackgroundColor>
+ <c:DropDownItemStyle.Text>
+ <TextLabelStyle PointSize="12" Position="28, 0"/>
+ </c:DropDownItemStyle.Text>
+ </c:DropDownItemStyle>
+
+ <!--Popup-->
+ <c:PopupStyle x:Key="Tizen.NUI.Components.Popup" Size="500, 280" BackgroundColor="0.9, 0.9, 0.9, 1">
+ <c:PopupStyle.ImageShadow>
+ <ImageShadow Url="{NUIResourcePath nui_component_default_popup_shadow.png}" Border="24, 24, 24, 24" Extents="48, 48"/>
+ </c:PopupStyle.ImageShadow>
+ <c:PopupStyle.Title>
+ <TextLabelStyle PointSize="16" Padding="20" />
+ </c:PopupStyle.Title>
+ <c:PopupStyle.Buttons>
+ <c:ButtonStyle Size="0, 80">
+ <c:ButtonStyle.BackgroundColor>
+ <Selector x:TypeArguments="Color" Normal="1, 1, 1, 1" Pressed="1, 1, 1, 0.5"/>
+ </c:ButtonStyle.BackgroundColor>
+ <c:ButtonStyle.Overlay>
+ <ImageViewStyle>
+ <ImageViewStyle.BackgroundColor>
+ <Selector x:TypeArguments="Color" Normal="1, 1, 1, 1" Pressed="0, 0, 0, 0.1" Selected="1, 1, 1, 1"/>
+ </ImageViewStyle.BackgroundColor>
+ </ImageViewStyle>
+ </c:ButtonStyle.Overlay>
+ <c:ButtonStyle.Text>
+ <TextLabelStyle TextColor="0.05, 0.63, 0.9, 1" />
+ </c:ButtonStyle.Text>
+ </c:ButtonStyle>
+ </c:PopupStyle.Buttons>
+ </c:PopupStyle>
+
+ <!--Progress-->
+ <c:ProgressStyle x:Key="Tizen.NUI.Components.Progress" Size="200, 5">
+ <c:ProgressStyle.Track>
+ <ImageViewStyle BackgroundColor="0, 0, 0, 0.1" />
+ </c:ProgressStyle.Track>
+ <c:ProgressStyle.Buffer>
+ <ImageViewStyle BackgroundColor="0.05, 0.63, 0.9, 0.3" />
+ </c:ProgressStyle.Buffer>
+ <c:ProgressStyle.Progress>
+ <ImageViewStyle BackgroundColor="0.05, 0.63, 0.9, 1" />
+ </c:ProgressStyle.Progress>
+ </c:ProgressStyle>
+
+ <!--RadioButton-->
+ <c:ButtonStyle x:Key="Tizen.NUI.Components.RadioButton" Size="30, 30">
+ <c:ButtonStyle.Icon>
+ <ImageViewStyle>
+ <ImageViewStyle.Opacity>
+ <Selector x:TypeArguments="x:Single?" Normal="1" Selected="1" Disabled="0.4" DisabledSelected="0.4"/>
+ </ImageViewStyle.Opacity>
+ <ImageViewStyle.BackgroundImage>
+ <Selector x:TypeArguments="x:String" Pressed="{NUIResourcePath nui_component_default_radiobutton_p.png}" Selected="{NUIResourcePath nui_component_default_radiobutton_s.png}" Other="{NUIResourcePath nui_component_default_radiobutton_n.png}" />
+ </ImageViewStyle.BackgroundImage>
+ </ImageViewStyle>
</c:ButtonStyle.Icon>
- </c:ButtonStyle>
- </c:DropDownStyle.Button>
- <c:DropDownStyle.ListBackgroundImage> <!--DropDown ListBackgroundImage-->
- <ImageViewStyle ResourceUrl="{NUIResourcePath nui_component_default_dropdown_list_bg.png}" Border="6, 6, 6, 6" Size="280, 360"/>
- </c:DropDownStyle.ListBackgroundImage>
- </c:DropDownStyle>
-
- <!--DropDownDataItem-->
- <c:DropDownItemStyle x:Key="Tizen.NUI.Components.DropDown.DropDownDataItem" Size="360, 50">
- <c:DropDownItemStyle.BackgroundColor>
- <Selector x:TypeArguments="Color" Pressed="0.05, 0.63, 0.9, 1" Selected="0.8, 0.8, 0.8, 1" Normal="1, 1, 1, 1"/>
- </c:DropDownItemStyle.BackgroundColor>
- <c:DropDownItemStyle.Text>
- <TextLabelStyle PointSize="12" Position="28, 0"/>
- </c:DropDownItemStyle.Text>
- </c:DropDownItemStyle>
-
- <!--DropDownDataItem (for legacy FH)-->
- <c:DropDownItemStyle x:Key="Tizen.FH.NUI.Components.DropDownDataItem" Size="360, 50">
- <c:DropDownItemStyle.BackgroundColor>
- <Selector x:TypeArguments="Color" Pressed="0.05, 0.63, 0.9, 1" Selected="0.8, 0.8, 0.8, 1" Normal="1, 1, 1, 1"/>
- </c:DropDownItemStyle.BackgroundColor>
- <c:DropDownItemStyle.Text>
- <TextLabelStyle PointSize="12" Position="28, 0"/>
- </c:DropDownItemStyle.Text>
- </c:DropDownItemStyle>
-
- <!--DropDownDataItem (for legacy FH)-->
- <c:DropDownItemStyle x:Key="DropDownDataItem" Size="360, 50">
- <c:DropDownItemStyle.BackgroundColor>
- <Selector x:TypeArguments="Color" Pressed="0.05, 0.63, 0.9, 1" Selected="0.8, 0.8, 0.8, 1" Normal="1, 1, 1, 1"/>
- </c:DropDownItemStyle.BackgroundColor>
- <c:DropDownItemStyle.Text>
- <TextLabelStyle PointSize="12" Position="28, 0"/>
- </c:DropDownItemStyle.Text>
- </c:DropDownItemStyle>
-
- <!--Popup-->
- <c:PopupStyle x:Key="Tizen.NUI.Components.Popup" Size="500, 280" BackgroundColor="0.9, 0.9, 0.9, 1">
- <c:PopupStyle.ImageShadow>
- <ImageShadow Url="{NUIResourcePath nui_component_default_popup_shadow.png}" Border="24, 24, 24, 24" Extents="48, 48"/>
- </c:PopupStyle.ImageShadow>
- <c:PopupStyle.Title>
- <TextLabelStyle PointSize="16" Padding="20" />
- </c:PopupStyle.Title>
- <c:PopupStyle.Buttons>
- <c:ButtonStyle Size="0, 80">
- <c:ButtonStyle.BackgroundColor>
- <Selector x:TypeArguments="Color" Normal="1, 1, 1, 1" Pressed="1, 1, 1, 0.5"/>
- </c:ButtonStyle.BackgroundColor>
- <c:ButtonStyle.Overlay>
- <ImageViewStyle>
- <ImageViewStyle.BackgroundColor>
- <Selector x:TypeArguments="Color" Normal="1, 1, 1, 1" Pressed="0, 0, 0, 0.1" Selected="1, 1, 1, 1"/>
- </ImageViewStyle.BackgroundColor>
- </ImageViewStyle>
- </c:ButtonStyle.Overlay>
<c:ButtonStyle.Text>
- <TextLabelStyle TextColor="0.05, 0.63, 0.9, 1" />
+ <TextLabelStyle PointSize="12">
+ <TextLabelStyle.TextColor>
+ <Selector x:TypeArguments="Color" Normal="0.22, 0.22, 0.22, 1" Pressed="0.11, 0.11, 0.11, 1" Disabled="0.66, 0.66, 0.66, 1" />
+ </TextLabelStyle.TextColor>
+ </TextLabelStyle>
</c:ButtonStyle.Text>
- </c:ButtonStyle>
- </c:PopupStyle.Buttons>
- </c:PopupStyle>
-
- <!--Progress-->
- <c:ProgressStyle x:Key="Tizen.NUI.Components.Progress" Size="200, 5">
- <c:ProgressStyle.Track>
- <ImageViewStyle BackgroundColor="0, 0, 0, 0.1" />
- </c:ProgressStyle.Track>
- <c:ProgressStyle.Buffer>
- <ImageViewStyle BackgroundColor="0.05, 0.63, 0.9, 0.3" />
- </c:ProgressStyle.Buffer>
- <c:ProgressStyle.Progress>
- <ImageViewStyle BackgroundColor="0.05, 0.63, 0.9, 1" />
- </c:ProgressStyle.Progress>
- </c:ProgressStyle>
-
- <!--RadioButton-->
- <c:ButtonStyle x:Key="Tizen.NUI.Components.RadioButton" Size="30, 30">
- <c:ButtonStyle.Icon>
- <ImageViewStyle>
- <ImageViewStyle.Opacity>
- <Selector x:TypeArguments="x:Single?" Normal="1" Selected="1" Disabled="0.4" DisabledSelected="0.4"/>
- </ImageViewStyle.Opacity>
- <ImageViewStyle.BackgroundImage>
- <Selector x:TypeArguments="x:String" Pressed="{NUIResourcePath nui_component_default_radiobutton_p.png}" Selected="{NUIResourcePath nui_component_default_radiobutton_s.png}" Other="{NUIResourcePath nui_component_default_radiobutton_n.png}" />
- </ImageViewStyle.BackgroundImage>
- </ImageViewStyle>
- </c:ButtonStyle.Icon>
- <c:ButtonStyle.Text>
- <TextLabelStyle PointSize="12">
- <TextLabelStyle.TextColor>
- <Selector x:TypeArguments="Color" Normal="0.22, 0.22, 0.22, 1" Pressed="0.11, 0.11, 0.11, 1" Disabled="0.66, 0.66, 0.66, 1" />
- </TextLabelStyle.TextColor>
- </TextLabelStyle>
- </c:ButtonStyle.Text>
- </c:ButtonStyle>
-
- <!--Slider-->
- <c:SliderStyle x:Key="Tizen.NUI.Components.Slider" Size="200, 50" TrackThickness="5">
- <c:SliderStyle.Track>
- <ImageViewStyle BackgroundColor="0, 0, 0, 0.1" />
- </c:SliderStyle.Track>
- <c:SliderStyle.Progress>
- <ImageViewStyle BackgroundColor="0.5, 0.63, 0.9, 1" />
- </c:SliderStyle.Progress>
- <c:SliderStyle.Thumb>
- <ImageViewStyle Size="50, 50" ResourceUrl="{NUIResourcePath nui_component_default_slider_thumb_n.png}">
- <ImageViewStyle.BackgroundImage>
- <Selector x:TypeArguments="x:String" Normal="" Pressed="{NUIResourcePath nui_component_default_slider_thumb_bg_p.png}" />
- </ImageViewStyle.BackgroundImage>
- </ImageViewStyle>
- </c:SliderStyle.Thumb>
- </c:SliderStyle>
-
- <!--Switch-->
- <c:SwitchStyle x:Key="Tizen.NUI.Components.Switch" Size="96, 60">
- <c:Switch.Track>
- <ImageViewStyle Size="96, 60">
- <ImageViewStyle.ResourceUrl>
- <Selector x:TypeArguments="x:String" Normal="{NUIResourcePath nui_component_default_switch_track_n.png}" Selected="{NUIResourcePath nui_component_default_switch_track_s.png}" Disabled="{NUIResourcePath nui_component_default_switch_track_d.png}" DisabledSelected="{NUIResourcePath nui_component_default_switch_track_ds.png}" />
- </ImageViewStyle.ResourceUrl>
- </ImageViewStyle>
- </c:Switch.Track>
- <c:Switch.Thumb>
- <ImageViewStyle Size="60, 60">
- <ImageViewStyle.ResourceUrl>
- <Selector x:TypeArguments="x:String" Normal="{NUIResourcePath nui_component_default_switch_thumb_n.png}" Disabled="{NUIResourcePath nui_component_default_switch_thumb_d.png}" Selected="{NUIResourcePath nui_component_default_switch_thumb_n.png}" />
- </ImageViewStyle.ResourceUrl>
- </ImageViewStyle>
- </c:Switch.Thumb>
- <c:Switch.Text>
- <TextLabelStyle PointSize="12">
- <TextLabelStyle.TextColor>
- <Selector x:TypeArguments="Color" Normal="0.22, 0.22, 0.22, 1" Pressed="0.11, 0.11, 0.11, 1" Disabled="0.66, 0.66, 0.66, 1" />
- </TextLabelStyle.TextColor>
- </TextLabelStyle>
- </c:Switch.Text>
- </c:SwitchStyle>
-
- <!--Tab-->
- <c:TabStyle x:Key="Tizen.NUI.Components.Tab" Size="480, 80" BackgroundColor="Yellow">
- <c:TabStyle.UnderLine>
- <ViewStyle Size="0, 6" BackgroundColor="0.05, 0.63, 0.9, 1.0" />
- </c:TabStyle.UnderLine>
- <c:TabStyle.Text>
- <TextLabelStyle PointSize="16">
- <TextLabelStyle.TextColor>
- <Selector x:TypeArguments="Color" Normal="Black" Selected="0.05, 0.63, 0.9, 1" />
- </TextLabelStyle.TextColor>
- </TextLabelStyle>
- </c:TabStyle.Text>
- </c:TabStyle>
-
- <!--Toast-->
- <c:ToastStyle x:Key="Tizen.NUI.Components.Toast" BackgroundColor="0, 0, 0, 0.8">
- <c:ToastStyle.Text>
- <TextLabelStyle Padding="12, 12, 8, 8" />
- </c:ToastStyle.Text>
- </c:ToastStyle>
-
- <!--Loading-->
- <c:LoadingStyle x:Key="Tizen.NUI.Components.Loading" LoadingSize="100, 100" />
-
- <!--Pagination-->
- <c:PaginationStyle x:Key="Tizen.NUI.Components.Pagination">
- <c:PaginationStyle.IndicatorImageUrl>
- <Selector x:TypeArguments="x:String" Normal="{NUIResourcePath nui_component_default_pagination_normal_dot.png}" Selected="{NUIResourcePath nui_component_default_pagination_focus_dot.png}" />
- </c:PaginationStyle.IndicatorImageUrl>
- </c:PaginationStyle>
-
- <!--Scrollbar-->
- <c:ScrollbarStyle x:Key="Tizen.NUI.Components.Scrollbar" TrackThickness="8" ThumbThickness="8" TrackColor="0.435, 0.435, 0.435, 0.1" ThumbColor="0, 0, 0, 0.2" TrackPadding="8" />
+ </c:ButtonStyle>
+
+ <!--Slider-->
+ <c:SliderStyle x:Key="Tizen.NUI.Components.Slider" Size="200, 50" TrackThickness="5">
+ <c:SliderStyle.Track>
+ <ImageViewStyle BackgroundColor="0, 0, 0, 0.1" />
+ </c:SliderStyle.Track>
+ <c:SliderStyle.Progress>
+ <ImageViewStyle BackgroundColor="0.5, 0.63, 0.9, 1" />
+ </c:SliderStyle.Progress>
+ <c:SliderStyle.Thumb>
+ <ImageViewStyle Size="50, 50" ResourceUrl="{NUIResourcePath nui_component_default_slider_thumb_n.png}">
+ <ImageViewStyle.BackgroundImage>
+ <Selector x:TypeArguments="x:String" Normal="" Pressed="{NUIResourcePath nui_component_default_slider_thumb_bg_p.png}" />
+ </ImageViewStyle.BackgroundImage>
+ </ImageViewStyle>
+ </c:SliderStyle.Thumb>
+ </c:SliderStyle>
+
+ <!--Switch-->
+ <c:SwitchStyle x:Key="Tizen.NUI.Components.Switch" Size="96, 60">
+ <c:Switch.Track>
+ <ImageViewStyle Size="96, 60">
+ <ImageViewStyle.ResourceUrl>
+ <Selector x:TypeArguments="x:String" Normal="{NUIResourcePath nui_component_default_switch_track_n.png}" Selected="{NUIResourcePath nui_component_default_switch_track_s.png}" Disabled="{NUIResourcePath nui_component_default_switch_track_d.png}" DisabledSelected="{NUIResourcePath nui_component_default_switch_track_ds.png}" />
+ </ImageViewStyle.ResourceUrl>
+ </ImageViewStyle>
+ </c:Switch.Track>
+ <c:Switch.Thumb>
+ <ImageViewStyle Size="60, 60">
+ <ImageViewStyle.ResourceUrl>
+ <Selector x:TypeArguments="x:String" Normal="{NUIResourcePath nui_component_default_switch_thumb_n.png}" Disabled="{NUIResourcePath nui_component_default_switch_thumb_d.png}" Selected="{NUIResourcePath nui_component_default_switch_thumb_n.png}" />
+ </ImageViewStyle.ResourceUrl>
+ </ImageViewStyle>
+ </c:Switch.Thumb>
+ <c:Switch.Text>
+ <TextLabelStyle PointSize="12">
+ <TextLabelStyle.TextColor>
+ <Selector x:TypeArguments="Color" Normal="0.22, 0.22, 0.22, 1" Pressed="0.11, 0.11, 0.11, 1" Disabled="0.66, 0.66, 0.66, 1" />
+ </TextLabelStyle.TextColor>
+ </TextLabelStyle>
+ </c:Switch.Text>
+ </c:SwitchStyle>
+
+ <!--Tab-->
+ <c:TabStyle x:Key="Tizen.NUI.Components.Tab" Size="480, 80" BackgroundColor="Yellow">
+ <c:TabStyle.UnderLine>
+ <ViewStyle Size="0, 6" BackgroundColor="0.05, 0.63, 0.9, 1.0" />
+ </c:TabStyle.UnderLine>
+ <c:TabStyle.Text>
+ <TextLabelStyle PointSize="16">
+ <TextLabelStyle.TextColor>
+ <Selector x:TypeArguments="Color" Normal="Black" Selected="0.05, 0.63, 0.9, 1" />
+ </TextLabelStyle.TextColor>
+ </TextLabelStyle>
+ </c:TabStyle.Text>
+ </c:TabStyle>
+
+ <!--Toast-->
+ <c:ToastStyle x:Key="Tizen.NUI.Components.Toast" BackgroundColor="0, 0, 0, 0.8">
+ <c:ToastStyle.Text>
+ <TextLabelStyle Padding="12, 12, 8, 8" />
+ </c:ToastStyle.Text>
+ </c:ToastStyle>
+
+ <!--Loading-->
+ <c:LoadingStyle x:Key="Tizen.NUI.Components.Loading" LoadingSize="100, 100" />
+
+ <!--Pagination-->
+ <c:PaginationStyle x:Key="Tizen.NUI.Components.Pagination">
+ <c:PaginationStyle.IndicatorImageUrl>
+ <Selector x:TypeArguments="x:String" Normal="{NUIResourcePath nui_component_default_pagination_normal_dot.png}" Selected="{NUIResourcePath nui_component_default_pagination_focus_dot.png}" />
+ </c:PaginationStyle.IndicatorImageUrl>
+ </c:PaginationStyle>
+
+ <!--Scrollbar-->
+ <c:ScrollbarStyle x:Key="Tizen.NUI.Components.Scrollbar" TrackThickness="8" ThumbThickness="8" TrackColor="0.435, 0.435, 0.435, 0.1" ThumbColor="0, 0, 0, 0.2" TrackPadding="8" />
</Theme>
\ No newline at end of file
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
Id="Tizen.NUI.Theme.Wearable">
- <!--Button-->
- <c:ButtonStyle x:Key="Tizen.NUI.Components.Button" Size="210, 72" CornerRadius="36">
- <c:ButtonStyle.BackgroundColor>
- <Selector x:TypeArguments="Color" Normal="0, 0.1647, 0.3019, 0.85" Pressed="0, 0.2475, 0.5019, 0.85" Disabled="0.2392, 0.2392, 0.2392, 0.85"/>
- </c:ButtonStyle.BackgroundColor>
- <c:ButtonStyle.Opacity>
- <Selector x:TypeArguments="x:Single?" Other="1.0" Disabled="0.3"/>
- </c:ButtonStyle.Opacity>
- <c:ButtonStyle.Text> <!--Button Text-->
- <TextLabelStyle FontFamily="SamsungOne 700" PixelSize="28" Padding="20, 20, 0, 0" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextLabelStyle.TextColor>
- <Selector x:TypeArguments="Color" Normal="0.2196, 0.6131, 0.9882, 1" Disabled="1, 1, 1, 0.35"/>
- </TextLabelStyle.TextColor>
- </TextLabelStyle>
- </c:ButtonStyle.Text>
- </c:ButtonStyle>
+ <!--Button-->
+ <c:ButtonStyle x:Key="Tizen.NUI.Components.Button" Size="210, 72" CornerRadius="36">
+ <c:ButtonStyle.BackgroundColor>
+ <Selector x:TypeArguments="Color" Normal="0, 0.1647, 0.3019, 0.85" Pressed="0, 0.2475, 0.5019, 0.85" Disabled="0.2392, 0.2392, 0.2392, 0.85"/>
+ </c:ButtonStyle.BackgroundColor>
+ <c:ButtonStyle.Opacity>
+ <Selector x:TypeArguments="x:Single?" Other="1.0" Disabled="0.3"/>
+ </c:ButtonStyle.Opacity>
+ <c:ButtonStyle.Text>
+ <!--Button Text-->
+ <TextLabelStyle FontFamily="SamsungOne 700" PixelSize="28" Padding="20, 20, 0, 0" HorizontalAlignment="Center" VerticalAlignment="Center">
+ <TextLabelStyle.TextColor>
+ <Selector x:TypeArguments="Color" Normal="0.2196, 0.6131, 0.9882, 1" Disabled="1, 1, 1, 0.35"/>
+ </TextLabelStyle.TextColor>
+ </TextLabelStyle>
+ </c:ButtonStyle.Text>
+ </c:ButtonStyle>
- <!--CheckBox-->
- <cx:LottieButtonStyle x:Key="Tizen.NUI.Components.CheckBox" LottieUrl="NUIResourcePath nui_wearable_checkbox_icon.json">
- <cx:LottieButtonStyle.PlayRange>
- <Selector x:TypeArguments="LottieFrameInfo" Selected="19, 36" Normal="0, 18"/>
- </cx:LottieButtonStyle.PlayRange>
- <cx:LottieButtonStyle.Opacity>
- <Selector x:TypeArguments="x:Single?" Other="1" Pressed="0.6" Disabled="0.3"/>
- </cx:LottieButtonStyle.Opacity>
- </cx:LottieButtonStyle>
+ <!--CheckBox-->
+ <cx:LottieButtonStyle x:Key="Tizen.NUI.Components.CheckBox" LottieUrl="NUIResourcePath nui_wearable_checkbox_icon.json">
+ <cx:LottieButtonStyle.PlayRange>
+ <Selector x:TypeArguments="LottieFrameInfo" Selected="19, 36" Normal="0, 18"/>
+ </cx:LottieButtonStyle.PlayRange>
+ <cx:LottieButtonStyle.Opacity>
+ <Selector x:TypeArguments="x:Single?" Other="1" Pressed="0.6" Disabled="0.3"/>
+ </cx:LottieButtonStyle.Opacity>
+ </cx:LottieButtonStyle>
- <!--RadioButton-->
- <cx:LottieButtonStyle x:Key="Tizen.NUI.Components.RadioButton" LottieUrl="NUIResourcePath nui_wearable_radiobutton_icon.json">
- <cx:LottieButtonStyle.PlayRange>
- <Selector x:TypeArguments="LottieFrameInfo" Selected="0, 12" Normal="13, 25"/>
- </cx:LottieButtonStyle.PlayRange>
- <cx:LottieButtonStyle.Opacity>
- <Selector x:TypeArguments="x:Single?" Other="1" Pressed="0.6" Disabled="0.3"/>
- </cx:LottieButtonStyle.Opacity>
- </cx:LottieButtonStyle>
+ <!--RadioButton-->
+ <cx:LottieButtonStyle x:Key="Tizen.NUI.Components.RadioButton" LottieUrl="NUIResourcePath nui_wearable_radiobutton_icon.json">
+ <cx:LottieButtonStyle.PlayRange>
+ <Selector x:TypeArguments="LottieFrameInfo" Selected="0, 12" Normal="13, 25"/>
+ </cx:LottieButtonStyle.PlayRange>
+ <cx:LottieButtonStyle.Opacity>
+ <Selector x:TypeArguments="x:Single?" Other="1" Pressed="0.6" Disabled="0.3"/>
+ </cx:LottieButtonStyle.Opacity>
+ </cx:LottieButtonStyle>
- <!--Switch-->
- <cx:LottieSwitchStyle x:Key="Tizen.NUI.Components.Switch" LottieUrl="NUIResourcePath nui_wearable_switch_icon.json">
- <cx:LottieSwitchStyle.PlayRange>
- <Selector x:TypeArguments="LottieFrameInfo" Selected="0, 18" Normal="19, 36"/>
- </cx:LottieSwitchStyle.PlayRange>
- <cx:LottieSwitchStyle.Opacity>
- <Selector x:TypeArguments="x:Single?" Other="1" Pressed="0.6" Disabled="0.3"/>
- </cx:LottieSwitchStyle.Opacity>
- </cx:LottieSwitchStyle>
+ <!--Switch-->
+ <cx:LottieSwitchStyle x:Key="Tizen.NUI.Components.Switch" LottieUrl="NUIResourcePath nui_wearable_switch_icon.json">
+ <cx:LottieSwitchStyle.PlayRange>
+ <Selector x:TypeArguments="LottieFrameInfo" Selected="0, 18" Normal="19, 36"/>
+ </cx:LottieSwitchStyle.PlayRange>
+ <cx:LottieSwitchStyle.Opacity>
+ <Selector x:TypeArguments="x:Single?" Other="1" Pressed="0.6" Disabled="0.3"/>
+ </cx:LottieSwitchStyle.Opacity>
+ </cx:LottieSwitchStyle>
- <!--Loading-->
- <c:LoadingStyle x:Key="Tizen.NUI.Components.Loading" LoadingSize="360, 360" />
+ <!--Loading-->
+ <c:LoadingStyle x:Key="Tizen.NUI.Components.Loading" LoadingSize="360, 360" />
</Theme>
\ No newline at end of file
public class AccessibilityDoGestureSignal : Disposable
{
[EditorBrowsable(EditorBrowsableState.Never)]
- internal AccessibilityDoGestureSignal(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) {
+ internal AccessibilityDoGestureSignal(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
+ {
}
[EditorBrowsable(EditorBrowsableState.Never)]
- static internal uint GetSizeOfGestureInfo() {
+ static internal uint GetSizeOfGestureInfo()
+ {
uint ret = Interop.DoGestureSignal.GetSizeOfGestureInfo();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
[EditorBrowsable(EditorBrowsableState.Never)]
- static internal int GetResult(global::System.IntPtr data) {
+ static internal int GetResult(global::System.IntPtr data)
+ {
int ret = Interop.DoGestureSignal.GetResult(data);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
[EditorBrowsable(EditorBrowsableState.Never)]
- static internal void SetResult(global::System.IntPtr data, int res) {
+ static internal void SetResult(global::System.IntPtr data, int res)
+ {
Interop.DoGestureSignal.SetResult(data, res);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// The properties used for a Tooltip.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1716: Identifiers should not match keywords")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1716: Identifiers should not match keywords")]
public struct Property
{
/// <summary>
~DisposeQueue()
{
- Tizen.Log.Debug("NUI",$"DisposeQueue is destroyed\n");
+ Tizen.Log.Debug("NUI", $"DisposeQueue is destroyed\n");
}
public static DisposeQueue Instance
{
get
{
- string retVal = "" ;
+ string retVal = "";
PropertyValue material = GetProperty(Model3dView.Property.MaterialUrl);
material?.Get(out retVal);
material?.Dispose();
{ "shadow.CornerRadius", new VisualPropertyData(View.Property.SHADOW, Visual.Property.CornerRadius, ObjectIntToFloat) },
};
- static PropertyHelper() {}
+ static PropertyHelper() { }
///<summary>
/// Returns a Property if stringProperty is a valid index
private static SearchResult SearchProperty(View view, string lowercasePropertyString)
{
Property property = new Property(view, lowercasePropertyString);
-
+
if (property.propertyIndex == Property.InvalidIndex)
{
property.Dispose();
var colorValue = value as Vector4;
return new Vector3(colorValue.R, colorValue.G, colorValue.B);
}
-
+
if (value is Color)
{
var colorValue = value as Color;
}
[EditorBrowsable(EditorBrowsableState.Never)]
- static internal string ConvertParam1(global::System.IntPtr data) {
+ static internal string ConvertParam1(global::System.IntPtr data)
+ {
string result = Interop.StringToVoidSignal.ConvertParam1(data);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return result;
providerImage.Show();
int propertyCount = transition.AnimationDataList.Count;
- animation = new Animation(transition.DurationMilliSeconds+80);
+ animation = new Animation(transition.DurationMilliSeconds + 80);
for (int i = 0; i < propertyCount; i++)
{
animation.PropertyList.Add(transition.AnimationDataList[i].Property);
animation.DestValueList.Add(transition.AnimationDataList[i].DestinationValue);
- animation.StartTimeList.Add(80 +transition.AnimationDataList[i].StartTime);
- animation.EndTimeList.Add(80 +transition.AnimationDataList[i].EndTime);
+ animation.StartTimeList.Add(80 + transition.AnimationDataList[i].StartTime);
+ animation.EndTimeList.Add(80 + transition.AnimationDataList[i].EndTime);
}
animation.PlayAnimateTo(providerImage);
animation.Finished += Ani_Finished;
{
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Actor_SWIGUpcast")]
public static extern global::System.IntPtr Upcast(global::System.IntPtr jarg1);
-
+
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_Actor__SWIG_0")]
public static extern global::System.IntPtr NewActor();
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_AppendAccessibilityRelation")]
- public static extern void DaliToolkitDevelControlAppendAccessibilityRelation(global::System.Runtime.InteropServices.HandleRef arg1, global::System.Runtime.InteropServices.HandleRef arg2, int arg3);
+ public static extern void DaliToolkitDevelControlAppendAccessibilityRelation(global::System.Runtime.InteropServices.HandleRef arg1, global::System.Runtime.InteropServices.HandleRef arg2, int arg3);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_RemoveAccessibilityRelation")]
- public static extern void DaliToolkitDevelControlRemoveAccessibilityRelation(global::System.Runtime.InteropServices.HandleRef arg1, global::System.Runtime.InteropServices.HandleRef arg2, int arg3);
+ public static extern void DaliToolkitDevelControlRemoveAccessibilityRelation(global::System.Runtime.InteropServices.HandleRef arg1, global::System.Runtime.InteropServices.HandleRef arg2, int arg3);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_new_GetAccessibilityRelations")]
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_AccessibilityRelations_RelationSize")]
- public static extern uint DaliToolkitDevelControlAccessibilityRelationsRelationSize(Tizen.NUI.BaseComponents.AddressCollection arg1, int relation);
+ public static extern uint DaliToolkitDevelControlAccessibilityRelationsRelationSize(Tizen.NUI.BaseComponents.AddressCollection arg1, int relation);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_AccessibilityRelations_At")]
- public static extern string DaliToolkitDevelControlAccessibilityRelationsAt(Tizen.NUI.BaseComponents.AddressCollection arg1, int rel, int pos, int id);
+ public static extern string DaliToolkitDevelControlAccessibilityRelationsAt(Tizen.NUI.BaseComponents.AddressCollection arg1, int rel, int pos, int id);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_delete_AccessibilityRelations")]
- public static extern void DaliToolkitDevelControlDeleteAccessibilityRelations(IntPtr arg1);
+ public static extern void DaliToolkitDevelControlDeleteAccessibilityRelations(IntPtr arg1);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_ClearAccessibilityRelations")]
- public static extern void DaliToolkitDevelControlClearAccessibilityRelations(global::System.Runtime.InteropServices.HandleRef arg1);
+ public static extern void DaliToolkitDevelControlClearAccessibilityRelations(global::System.Runtime.InteropServices.HandleRef arg1);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_AppendAccessibilityAttribute")]
- public static extern void DaliToolkitDevelControlAppendAccessibilityAttribute(global::System.Runtime.InteropServices.HandleRef arg1, string arg2, string arg3);
+ public static extern void DaliToolkitDevelControlAppendAccessibilityAttribute(global::System.Runtime.InteropServices.HandleRef arg1, string arg2, string arg3);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_RemoveAccessibilityAttribute")]
- public static extern void DaliToolkitDevelControlRemoveAccessibilityAttribute(global::System.Runtime.InteropServices.HandleRef arg1, string arg2);
+ public static extern void DaliToolkitDevelControlRemoveAccessibilityAttribute(global::System.Runtime.InteropServices.HandleRef arg1, string arg2);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_ClearAccessibilityAttributes")]
- public static extern void DaliToolkitDevelControlClearAccessibilityAttributes(global::System.Runtime.InteropServices.HandleRef arg1);
+ public static extern void DaliToolkitDevelControlClearAccessibilityAttributes(global::System.Runtime.InteropServices.HandleRef arg1);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_SetAccessibilityReadingInfoType")]
- public static extern void DaliToolkitDevelControlSetAccessibilityReadingInfoType(global::System.Runtime.InteropServices.HandleRef arg1, Tizen.NUI.BaseComponents.ReadingInfoTypes arg2);
+ public static extern void DaliToolkitDevelControlSetAccessibilityReadingInfoType(global::System.Runtime.InteropServices.HandleRef arg1, Tizen.NUI.BaseComponents.ReadingInfoTypes arg2);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_new_ReadingInfoType")]
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_delete_ReadingInfoType")]
- public static extern void DaliToolkitDevelControlDeleteReadingInfoType(IntPtr arg1);
+ public static extern void DaliToolkitDevelControlDeleteReadingInfoType(IntPtr arg1);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_ReadingInfoTypes_Get")]
- public static extern bool DaliToolkitDevelControlReadingInfoTypesGet(Tizen.NUI.BaseComponents.ReadingInfoTypes arg1, int arg2);
+ public static extern bool DaliToolkitDevelControlReadingInfoTypesGet(Tizen.NUI.BaseComponents.ReadingInfoTypes arg1, int arg2);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_ReadingInfoTypes_Set")]
- public static extern void DaliToolkitDevelControlReadingInfoTypesSet(Tizen.NUI.BaseComponents.ReadingInfoTypes arg1, int arg2, int arg3);
+ public static extern void DaliToolkitDevelControlReadingInfoTypesSet(Tizen.NUI.BaseComponents.ReadingInfoTypes arg1, int arg2, int arg3);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_ClearAccessibilityHighlight")]
- public static extern bool DaliToolkitDevelControlClearAccessibilityHighlight(global::System.Runtime.InteropServices.HandleRef arg1);
+ public static extern bool DaliToolkitDevelControlClearAccessibilityHighlight(global::System.Runtime.InteropServices.HandleRef arg1);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_GrabAccessibilityHighlight")]
- public static extern bool DaliToolkitDevelControlGrabAccessibilityHighlight(global::System.Runtime.InteropServices.HandleRef arg1);
+ public static extern bool DaliToolkitDevelControlGrabAccessibilityHighlight(global::System.Runtime.InteropServices.HandleRef arg1);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_new_GetAccessibilityStates")]
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_delete_States")]
- public static extern void DaliToolkitDevelControlDeleteStates(IntPtr arg1);
+ public static extern void DaliToolkitDevelControlDeleteStates(IntPtr arg1);
[EditorBrowsable(EditorBrowsableState.Never)]
[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_States_Copy")]
- public static extern IntPtr DaliToolkitDevelControlStatesCopy(Tizen.NUI.BaseComponents.AccessibilityStates arg1);
+ public static extern IntPtr DaliToolkitDevelControlStatesCopy(Tizen.NUI.BaseComponents.AccessibilityStates arg1);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_States_Get")]
- public static extern bool DaliToolkitDevelControlStatesGet(Tizen.NUI.BaseComponents.AccessibilityStates arg1, int arg2);
+ public static extern bool DaliToolkitDevelControlStatesGet(Tizen.NUI.BaseComponents.AccessibilityStates arg1, int arg2);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_States_Set")]
- public static extern void DaliToolkitDevelControlStatesSet(Tizen.NUI.BaseComponents.AccessibilityStates arg1, int arg2, int arg3);
+ public static extern void DaliToolkitDevelControlStatesSet(Tizen.NUI.BaseComponents.AccessibilityStates arg1, int arg2, int arg3);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_NotifyAccessibilityStateChange")]
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Accessibility_delete_Range")]
- public static extern void DaliAccessibilityDeleteRange(IntPtr arg1);
+ public static extern void DaliAccessibilityDeleteRange(IntPtr arg1);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Accessibility_Bridge_Add_Popup")]
- public static extern void DaliAccessibilityBridgeAddPopup(global::System.Runtime.InteropServices.HandleRef arg1);
+ public static extern void DaliAccessibilityBridgeAddPopup(global::System.Runtime.InteropServices.HandleRef arg1);
[EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Accessibility_Bridge_Remove_Popup")]
- public static extern void DaliAccessibilityBridgeRemovePopup(global::System.Runtime.InteropServices.HandleRef arg1);
+ public static extern void DaliAccessibilityBridgeRemovePopup(global::System.Runtime.InteropServices.HandleRef arg1);
// SetAccessibilityConstructor
}
[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_SetAccessibilityConstructor_NUI")]
- public static extern void DaliToolkitDevelControlSetAccessibilityConstructor(HandleRef arg1_self, int arg2_role, int arg3_iface, IntPtr arg4_vtable, int arg5_vtableSize);
+ public static extern void DaliToolkitDevelControlSetAccessibilityConstructor(HandleRef arg1_self, int arg2_role, int arg3_iface, IntPtr arg4_vtable, int arg5_vtableSize);
[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Toolkit_DevelControl_AccessibleImpl_NUI_DuplicateString")]
public static extern IntPtr DaliToolkitDevelControlAccessibleImplNUIDuplicateString(string arg);
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_RenderTaskSignal")]
public static extern void DeleteRenderTaskSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
+
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RenderTaskList_SWIGUpcast")]
public static extern global::System.IntPtr RenderTaskListUpcast(global::System.IntPtr jarg1);
}
}
- public static Vector4 PAPAYA_WHIP
+ public static Vector4 PAPAYA_WHIP
{
get
{
{
if ((needsGetter && part.LastGetter == null) || (needsSetter && part.NextPart == null && part.LastSetter == null))
{
- Console.WriteLine($"Binding, {PropertyNotFoundErrorMessage}, {part.Content}, {current}, {target.GetType()}, {property.PropertyName}");
+ Console.WriteLine($"Binding, {PropertyNotFoundErrorMessage}, {part.Content}, {current}, {target.GetType()}, {property.PropertyName}");
break;
}
}
/// </summary>
~Accessibility()
{
- Tizen.Log.Debug("NUI",$"Accessibility is destroyed\n");
+ Tizen.Log.Debug("NUI", $"Accessibility is destroyed\n");
}
#endregion Constructor, Distructor, Dispose
var current = result;
using (var time = new TimePeriod(MilliSecondsToSeconds(startTime), MilliSecondsToSeconds(endTime - startTime)))
- while (current != null)
- {
- var targetValue = current.RefineValue(relativeValue) ?? throw new ArgumentException("Invalid " + nameof(relativeValue));
- AnimateBy(current.Property, targetValue, alphaFunction, time);
- targetValue.Dispose();
- current = current.NextResult;
- }
+ while (current != null)
+ {
+ var targetValue = current.RefineValue(relativeValue) ?? throw new ArgumentException("Invalid " + nameof(relativeValue));
+ AnimateBy(current.Property, targetValue, alphaFunction, time);
+ targetValue.Dispose();
+ current = current.NextResult;
+ }
}
}
var current = result;
using (var time = new TimePeriod(MilliSecondsToSeconds(startTime), MilliSecondsToSeconds(endTime - startTime)))
- while (current != null)
- {
- var targetValue = current.RefineValue(destinationValue) ?? throw new ArgumentException("Invalid " + nameof(destinationValue));
- AnimateTo(current.Property, targetValue, alphaFunction, time);
- targetValue.Dispose();
- current = current.NextResult;
- }
+ while (current != null)
+ {
+ var targetValue = current.RefineValue(destinationValue) ?? throw new ArgumentException("Invalid " + nameof(destinationValue));
+ AnimateTo(current.Property, targetValue, alphaFunction, time);
+ targetValue.Dispose();
+ current = current.NextResult;
+ }
}
}
while (current != null)
{
// NOTE Do not dispose keyFrames object returned by GetRefinedKeyFrames() here.
- AnimateBetween(current.Property, current.RefineKeyFrames(keyFrames) ?? throw new ArgumentException("Invalid " + nameof(keyFrames)), alphaFunction, interpolation);
+ AnimateBetween(current.Property, current.RefineKeyFrames(keyFrames) ?? throw new ArgumentException("Invalid " + nameof(keyFrames)), alphaFunction, interpolation);
current = current.NextResult;
}
}
var current = result;
using (var time = new TimePeriod(MilliSecondsToSeconds(startTime), MilliSecondsToSeconds(endTime - startTime)))
- while (current != null)
- {
- // NOTE Do not dispose keyFrames object returned by GetRefinedKeyFrames() here.
- AnimateBetween(current.Property, current.RefineKeyFrames(keyFrames) ?? throw new ArgumentException("Invalid " + nameof(keyFrames)), alphaFunction, time, interpolation);
- current = current.NextResult;
- }
+ while (current != null)
+ {
+ // NOTE Do not dispose keyFrames object returned by GetRefinedKeyFrames() here.
+ AnimateBetween(current.Property, current.RefineKeyFrames(keyFrames) ?? throw new ArgumentException("Invalid " + nameof(keyFrames)), alphaFunction, time, interpolation);
+ current = current.NextResult;
+ }
}
}
private bool disposed = false;
private ImageViewStyle defaultImageStyle;
private List<TransitionAnimationData> animationDataList;
-
+
/// <summary>
/// Create an instance of Transition.
{
if (_resourceUrl != null)
{
- Size2D imageSize = ImageLoading.GetOriginalImageSize(_resourceUrl, true);
-
- int adjustedDesiredWidth, adjustedDesiredHeight;
- float aspectOfDesiredSize = (float)_desired_height / (float)_desired_width;
- float aspectOfImageSize = (float)imageSize.Height / (float)imageSize.Width;
- if( aspectOfImageSize > aspectOfDesiredSize)
- {
- adjustedDesiredWidth = _desired_width;
- adjustedDesiredHeight = imageSize.Height * _desired_width / imageSize.Width;
- }
- else
- {
- adjustedDesiredWidth = imageSize.Width * _desired_height/ imageSize.Height;
- adjustedDesiredHeight = _desired_height;
- }
-
- PropertyValue returnWidth = new PropertyValue(adjustedDesiredWidth);
- imageMap?.Insert(ImageVisualProperty.DesiredWidth, returnWidth);
- returnWidth?.Dispose();
- PropertyValue returnHeight = new PropertyValue(adjustedDesiredHeight);
- imageMap?.Insert(ImageVisualProperty.DesiredHeight, returnHeight);
- returnHeight?.Dispose();
- PropertyValue scaleToFit = new PropertyValue((int)FittingModeType.ScaleToFill);
- imageMap?.Insert(ImageVisualProperty.FittingMode, scaleToFit);
- scaleToFit?.Dispose();
+ Size2D imageSize = ImageLoading.GetOriginalImageSize(_resourceUrl, true);
+
+ int adjustedDesiredWidth, adjustedDesiredHeight;
+ float aspectOfDesiredSize = (float)_desired_height / (float)_desired_width;
+ float aspectOfImageSize = (float)imageSize.Height / (float)imageSize.Width;
+ if (aspectOfImageSize > aspectOfDesiredSize)
+ {
+ adjustedDesiredWidth = _desired_width;
+ adjustedDesiredHeight = imageSize.Height * _desired_width / imageSize.Width;
+ }
+ else
+ {
+ adjustedDesiredWidth = imageSize.Width * _desired_height / imageSize.Height;
+ adjustedDesiredHeight = _desired_height;
+ }
+
+ PropertyValue returnWidth = new PropertyValue(adjustedDesiredWidth);
+ imageMap?.Insert(ImageVisualProperty.DesiredWidth, returnWidth);
+ returnWidth?.Dispose();
+ PropertyValue returnHeight = new PropertyValue(adjustedDesiredHeight);
+ imageMap?.Insert(ImageVisualProperty.DesiredHeight, returnHeight);
+ returnHeight?.Dispose();
+ PropertyValue scaleToFit = new PropertyValue((int)FittingModeType.ScaleToFill);
+ imageMap?.Insert(ImageVisualProperty.FittingMode, scaleToFit);
+ scaleToFit?.Dispose();
}
}
/// The default constructor.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public SelectorItem() {}
+ public SelectorItem() { }
/// <summary>
/// The constructor with the specified state and value.
/// <returns> A float value for FontSizeScale property. </returns>
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public static float GetFontSizeScale(SystemSettingsFontSize systemSettingsFontSize) {
+ public static float GetFontSizeScale(SystemSettingsFontSize systemSettingsFontSize)
+ {
float ret = FontSizeScaleNormal;
- switch (systemSettingsFontSize) {
+ switch (systemSettingsFontSize)
+ {
case SystemSettingsFontSize.Small:
ret = FontSizeScaleSmall;
break;
namespace Tizen.NUI.BaseComponents
{
[EditorBrowsable(EditorBrowsableState.Never)]
- public class Address {
+ public class Address
+ {
[EditorBrowsable(EditorBrowsableState.Never)]
- public Address(string xbus, string xpath) {
+ public Address(string xbus, string xpath)
+ {
bus = xbus;
path = xpath;
}
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public class AddressCollection : SafeHandle {
+ public class AddressCollection : SafeHandle
+ {
[EditorBrowsable(EditorBrowsableState.Never)]
- public AddressCollection(IntPtr collection) : base(collection, true) {}
+ public AddressCollection(IntPtr collection) : base(collection, true) { }
[EditorBrowsable(EditorBrowsableState.Never)]
- public override bool IsInvalid { get { return this.handle == IntPtr.Zero; }}
+ public override bool IsInvalid { get { return this.handle == IntPtr.Zero; } }
[EditorBrowsable(EditorBrowsableState.Never)]
- public uint RelationSize(View.RelationType relation) {
+ public uint RelationSize(View.RelationType relation)
+ {
uint result = Interop.ControlDevel.DaliToolkitDevelControlAccessibilityRelationsRelationSize(this, Convert.ToInt32(relation));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public Address At(View.RelationType relation, int position) {
+ public Address At(View.RelationType relation, int position)
+ {
var bus = Interop.ControlDevel.DaliToolkitDevelControlAccessibilityRelationsAt(this, Convert.ToInt32(relation), position, 0);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- protected override bool ReleaseHandle() {
+ protected override bool ReleaseHandle()
+ {
Interop.ControlDevel.DaliToolkitDevelControlDeleteAccessibilityRelations(handle);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public partial class ReadingInfoTypes : SafeHandle {
+ public partial class ReadingInfoTypes : SafeHandle
+ {
[EditorBrowsable(EditorBrowsableState.Never)]
- public ReadingInfoTypes() : base (IntPtr.Zero, true) {
+ public ReadingInfoTypes() : base(IntPtr.Zero, true)
+ {
var obj = Interop.ControlDevel.DaliToolkitDevelControlNewReadingInfoType();
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public ReadingInfoTypes(IntPtr ptr) : base(ptr, true) {}
+ public ReadingInfoTypes(IntPtr ptr) : base(ptr, true) { }
[EditorBrowsable(EditorBrowsableState.Never)]
- public override bool IsInvalid { get { return this.handle == IntPtr.Zero; }}
+ public override bool IsInvalid { get { return this.handle == IntPtr.Zero; } }
[EditorBrowsable(EditorBrowsableState.Never)]
- public void Set(ReadingInfoType type, bool v) {
+ public void Set(ReadingInfoType type, bool v)
+ {
Interop.ControlDevel.DaliToolkitDevelControlReadingInfoTypesSet(this, (int)type, Convert.ToInt32(v));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public bool Get(ReadingInfoType type) {
+ public bool Get(ReadingInfoType type)
+ {
bool result = Interop.ControlDevel.DaliToolkitDevelControlReadingInfoTypesGet(this, (int)type);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- protected override bool ReleaseHandle() {
+ protected override bool ReleaseHandle()
+ {
Interop.ControlDevel.DaliToolkitDevelControlDeleteReadingInfoType(handle);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public partial class AccessibilityStates : SafeHandle {
+ public partial class AccessibilityStates : SafeHandle
+ {
[EditorBrowsable(EditorBrowsableState.Never)]
- public AccessibilityStates() : base (IntPtr.Zero, true) {
+ public AccessibilityStates() : base(IntPtr.Zero, true)
+ {
var obj = Interop.ControlDevel.DaliToolkitDevelControlNewStates();
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public AccessibilityStates(IntPtr states) : base(states, true) {}
+ public AccessibilityStates(IntPtr states) : base(states, true) { }
[EditorBrowsable(EditorBrowsableState.Never)]
- public override bool IsInvalid { get { return this.handle == IntPtr.Zero; }}
+ public override bool IsInvalid { get { return this.handle == IntPtr.Zero; } }
[EditorBrowsable(EditorBrowsableState.Never)]
- public void Set(AccessibilityState type, bool v) {
+ public void Set(AccessibilityState type, bool v)
+ {
Interop.ControlDevel.DaliToolkitDevelControlStatesSet(this, (int)type, Convert.ToInt32(v));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public bool Get(AccessibilityState type) {
+ public bool Get(AccessibilityState type)
+ {
bool result = Interop.ControlDevel.DaliToolkitDevelControlStatesGet(this, (int)type);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- protected override bool ReleaseHandle() {
+ protected override bool ReleaseHandle()
+ {
Interop.ControlDevel.DaliToolkitDevelControlDeleteStates(handle);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public class AccessibilityRange {
+ public class AccessibilityRange
+ {
public int StartOffset { get; set; } = 0;
public int EndOffset { get; set; } = 0;
public string Content { get; set; } = "";
///////////////////////////////////////////////////////////////////
[EditorBrowsable(EditorBrowsableState.Never)]
- public void AppendAccessibilityAttribute(string key, string val) {
+ public void AppendAccessibilityAttribute(string key, string val)
+ {
Interop.ControlDevel.DaliToolkitDevelControlAppendAccessibilityAttribute(SwigCPtr, key, val);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public void RemoveAccessibilityAttribute(string key) {
+ public void RemoveAccessibilityAttribute(string key)
+ {
Interop.ControlDevel.DaliToolkitDevelControlRemoveAccessibilityAttribute(SwigCPtr, key);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public void ClearAccessibilityAttributes() {
+ public void ClearAccessibilityAttributes()
+ {
Interop.ControlDevel.DaliToolkitDevelControlClearAccessibilityAttributes(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
///////////////////////////////////////////////////////////////////
[EditorBrowsable(EditorBrowsableState.Never)]
- public bool ClearAccessibilityHighlight() {
+ public bool ClearAccessibilityHighlight()
+ {
bool result = Interop.ControlDevel.DaliToolkitDevelControlClearAccessibilityHighlight(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public bool GrabAccessibilityHighlight() {
+ public bool GrabAccessibilityHighlight()
+ {
bool result = Interop.ControlDevel.DaliToolkitDevelControlGrabAccessibilityHighlight(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
///////////////////////////////////////////////////////////////////
[EditorBrowsable(EditorBrowsableState.Never)]
- public void AppendAccessibilityRelation(View second, RelationType relation) {
+ public void AppendAccessibilityRelation(View second, RelationType relation)
+ {
Interop.ControlDevel.DaliToolkitDevelControlAppendAccessibilityRelation(SwigCPtr, second.SwigCPtr, (int)relation);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public void RemoveAccessibilityRelation(View second, RelationType relation) {
+ public void RemoveAccessibilityRelation(View second, RelationType relation)
+ {
Interop.ControlDevel.DaliToolkitDevelControlRemoveAccessibilityRelation(SwigCPtr, second.SwigCPtr, (int)relation);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public void ClearAccessibilityRelations() {
+ public void ClearAccessibilityRelations()
+ {
Interop.ControlDevel.DaliToolkitDevelControlClearAccessibilityRelations(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public AddressCollection GetAccessibilityRelations() {
+ public AddressCollection GetAccessibilityRelations()
+ {
var result = new AddressCollection(Interop.ControlDevel.DaliToolkitDevelControlNewGetAccessibilityRelations(SwigCPtr));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public void SetAccessibilityReadingInfoType(ReadingInfoTypes types) {
+ public void SetAccessibilityReadingInfoType(ReadingInfoTypes types)
+ {
Interop.ControlDevel.DaliToolkitDevelControlSetAccessibilityReadingInfoType(SwigCPtr, types);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public ReadingInfoTypes GetAccessibilityReadingInfoType() {
+ public ReadingInfoTypes GetAccessibilityReadingInfoType()
+ {
var result = new ReadingInfoTypes(Interop.ControlDevel.DaliToolkitDevelControlNewGetAccessibilityReadingInfoType(SwigCPtr));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
///////////////////////////////////////////////////////////////////
[EditorBrowsable(EditorBrowsableState.Never)]
- public void NotifyAccessibilityStateChange(AccessibilityStates states, bool recursive) {
+ public void NotifyAccessibilityStateChange(AccessibilityStates states, bool recursive)
+ {
Interop.ControlDevel.DaliToolkitDevelControlNotifyAccessibilityStateChange(SwigCPtr, states, Convert.ToInt32(recursive));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public AccessibilityStates GetAccessibilityStates() {
+ public AccessibilityStates GetAccessibilityStates()
+ {
var result = new AccessibilityStates(Interop.ControlDevel.DaliToolkitDevelControlNewGetAccessibilityStates(SwigCPtr));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
///////////////////////////////////////////////////////////////////
[EditorBrowsable(EditorBrowsableState.Never)]
- public void EmitAccessibilityEvent(ObjectPropertyChangeEvent e) {
+ public void EmitAccessibilityEvent(ObjectPropertyChangeEvent e)
+ {
Interop.ControlDevel.DaliAccessibilityEmitAccessibilityEvent(SwigCPtr, Convert.ToInt32(e));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public void EmitAccessibilityStateChangedEvent(AccessibilityState e, bool b) {
+ public void EmitAccessibilityStateChangedEvent(AccessibilityState e, bool b)
+ {
Interop.ControlDevel.DaliAccessibilityEmitAccessibilityStateChangedEvent(SwigCPtr, Convert.ToInt32(e), Convert.ToInt32(b));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public void EmitTextInsertedEvent(int position, int length, string content) {
+ public void EmitTextInsertedEvent(int position, int length, string content)
+ {
Interop.ControlDevel.DaliAccessibilityEmitTextInsertedEvent(SwigCPtr, position, length, content);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public void EmitTextDeletedEvent(int position, int length, string content) {
+ public void EmitTextDeletedEvent(int position, int length, string content)
+ {
Interop.ControlDevel.DaliAccessibilityEmitTextDeletedEvent(SwigCPtr, position, length, content);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public void EmitTextCaretMovedEvent(int position) {
+ public void EmitTextCaretMovedEvent(int position)
+ {
Interop.ControlDevel.DaliAccessibilityEmitTextCaretMovedEvent(SwigCPtr, position);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
///////////////////////////////////////////////////////////////////
[EditorBrowsable(EditorBrowsableState.Never)]
- public void AddPopup() {
+ public void AddPopup()
+ {
Interop.ControlDevel.DaliAccessibilityBridgeAddPopup(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public void RemovePopup() {
+ public void RemovePopup()
+ {
Interop.ControlDevel.DaliAccessibilityBridgeRemovePopup(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(System.Object obj)
{
- if(obj is GestureInfoType)
+ if (obj is GestureInfoType)
{
return this.Equals((GestureInfoType)obj);
}
/// <since_tizen> 3 </since_tizen>
public partial class View
{
- internal class ControlHandle : SafeHandle {
- public ControlHandle() : base (IntPtr.Zero, true) {}
+ internal class ControlHandle : SafeHandle
+ {
+ public ControlHandle() : base(IntPtr.Zero, true) { }
- public ControlHandle(IntPtr ptr) : base(ptr, true) {}
+ public ControlHandle(IntPtr ptr) : base(ptr, true) { }
- public override bool IsInvalid {
- get {
+ public override bool IsInvalid
+ {
+ get
+ {
return this.handle == IntPtr.Zero;
}
}
- protected override bool ReleaseHandle() {
+ protected override bool ReleaseHandle()
+ {
Interop.View.DeleteControlHandleView(handle);
this.SetHandle(IntPtr.Zero);
return true;
}
[EditorBrowsable(EditorBrowsableState.Never)]
- ControlHandle GetControl() {
+ ControlHandle GetControl()
+ {
var ret = new ControlHandle(Interop.View.DownCast(SwigCPtr));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
private GestureInfoHandlerType gestureInfoCallback;
private EventHandler<GestureInfoEventArgs> gestureInfoHandler;
- private void OnGestureInfoEvent(IntPtr data) {
+ private void OnGestureInfoEvent(IntPtr data)
+ {
if (data == IntPtr.Zero)
return;
- if (Marshal.SizeOf<GestureInfoType>() != AccessibilityDoGestureSignal.GetSizeOfGestureInfo()) {
+ if (Marshal.SizeOf<GestureInfoType>() != AccessibilityDoGestureSignal.GetSizeOfGestureInfo())
+ {
throw new global::System.ApplicationException("ABI mismatch SizeOf(C# GestureInfo) != SizeOf(c++ GestureInfo)");
}
// This uses DoGestureInfo signal from C++ API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<GestureInfoEventArgs> GestureInfoReceived {
- add {
- if (gestureInfoHandler == null) {
+ public event EventHandler<GestureInfoEventArgs> GestureInfoReceived
+ {
+ add
+ {
+ if (gestureInfoHandler == null)
+ {
gestureInfoCallback = OnGestureInfoEvent;
GestureInfoSignal().Connect(gestureInfoCallback);
}
gestureInfoHandler += value;
}
- remove {
+ remove
+ {
gestureInfoHandler -= value;
if (gestureInfoHandler == null && GestureInfoSignal().Empty() == false)
GestureInfoSignal().Disconnect(gestureInfoCallback);
}
}
- internal AccessibilityDoGestureSignal GestureInfoSignal() {
+ internal AccessibilityDoGestureSignal GestureInfoSignal()
+ {
var handle = GetControl();
AccessibilityDoGestureSignal ret = new AccessibilityDoGestureSignal(Interop.ControlDevel.DaliToolkitDevelControlAccessibilityDoGestureSignal(handle), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
private GetDescriptionHandlerType getDescriptionCallback;
private EventHandler<GetDescriptionEventArgs> getDescriptionHandler;
- private void OnGetDescriptionEvent(IntPtr data) {
+ private void OnGetDescriptionEvent(IntPtr data)
+ {
if (data == IntPtr.Zero)
return;
// This uses GetDescription signal from C++ API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<GetDescriptionEventArgs> DescriptionRequested {
- add {
- if (getDescriptionHandler == null) {
+ public event EventHandler<GetDescriptionEventArgs> DescriptionRequested
+ {
+ add
+ {
+ if (getDescriptionHandler == null)
+ {
getDescriptionCallback = OnGetDescriptionEvent;
GetDescriptionSignal().Connect(getDescriptionCallback);
}
getDescriptionHandler += value;
}
- remove {
+ remove
+ {
getDescriptionHandler -= value;
if (getDescriptionHandler == null && GetDescriptionSignal().Empty() == false)
GetDescriptionSignal().Disconnect(getDescriptionCallback);
}
}
- internal StringToVoidSignal GetDescriptionSignal() {
+ internal StringToVoidSignal GetDescriptionSignal()
+ {
var handle = GetControl();
StringToVoidSignal ret = new StringToVoidSignal(Interop.ControlDevel.DaliToolkitDevelControlAccessibilityGetDescriptionSignal(handle), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
private GetNameHandlerType getNameCallback;
private EventHandler<GetNameEventArgs> getNameHandler;
- private void OnGetNameEvent(IntPtr data) {
+ private void OnGetNameEvent(IntPtr data)
+ {
if (data == IntPtr.Zero)
return;
// This uses GetName signal from C++ API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<GetNameEventArgs> NameRequested {
- add {
- if (getNameHandler == null) {
+ public event EventHandler<GetNameEventArgs> NameRequested
+ {
+ add
+ {
+ if (getNameHandler == null)
+ {
getNameCallback = OnGetNameEvent;
GetNameSignal().Connect(getNameCallback);
}
getNameHandler += value;
}
- remove {
+ remove
+ {
getNameHandler -= value;
if (getNameHandler == null && GetNameSignal().Empty() == false)
GetNameSignal().Disconnect(getNameCallback);
}
}
- internal StringToVoidSignal GetNameSignal() {
+ internal StringToVoidSignal GetNameSignal()
+ {
var handle = GetControl();
StringToVoidSignal ret = new StringToVoidSignal(Interop.ControlDevel.DaliToolkitDevelControlAccessibilityGetNameSignal(handle), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
private VoidHandlerType activateCallback;
private EventHandler activateHandler;
- private void OnActivateEvent() {
+ private void OnActivateEvent()
+ {
activateHandler?.Invoke(this, null);
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler Activate {
- add {
- if (activateHandler == null) {
+ public event EventHandler Activate
+ {
+ add
+ {
+ if (activateHandler == null)
+ {
activateCallback = OnActivateEvent;
ActivateSignal().Connect(activateCallback);
}
activateHandler += value;
}
- remove {
+ remove
+ {
activateHandler -= value;
if (activateHandler == null && ActivateSignal().Empty() == false)
ActivateSignal().Disconnect(activateCallback);
}
}
- internal VoidSignal ActivateSignal() {
+ internal VoidSignal ActivateSignal()
+ {
var handle = GetControl();
VoidSignal ret = new VoidSignal(Interop.ControlDevel.DaliToolkitDevelControlAccessibilityActivateSignal(handle), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
private VoidHandlerType readingSkippedCallback;
private EventHandler readingSkippedHandler;
- private void OnReadingSkippedEvent() {
+ private void OnReadingSkippedEvent()
+ {
readingSkippedHandler?.Invoke(this, null);
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler ReadingSkipped {
- add {
- if (readingSkippedHandler == null) {
+ public event EventHandler ReadingSkipped
+ {
+ add
+ {
+ if (readingSkippedHandler == null)
+ {
readingSkippedCallback = OnReadingSkippedEvent;
ReadingSkippedSignal().Connect(readingSkippedCallback);
}
readingSkippedHandler += value;
}
- remove {
+ remove
+ {
readingSkippedHandler -= value;
if (readingSkippedHandler == null && ReadingSkippedSignal().Empty() == false)
ReadingSkippedSignal().Disconnect(readingSkippedCallback);
}
}
- internal VoidSignal ReadingSkippedSignal() {
+ internal VoidSignal ReadingSkippedSignal()
+ {
var handle = GetControl();
VoidSignal ret = new VoidSignal(Interop.ControlDevel.DaliToolkitDevelControlAccessibilityReadingSkippedSignal(handle), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
private VoidHandlerType readingPausedCallback;
private EventHandler readingPausedHandler;
- private void OnReadingPausedEvent() {
+ private void OnReadingPausedEvent()
+ {
readingPausedHandler?.Invoke(this, null);
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler ReadingPaused {
- add {
- if (readingPausedHandler == null) {
+ public event EventHandler ReadingPaused
+ {
+ add
+ {
+ if (readingPausedHandler == null)
+ {
readingPausedCallback = OnReadingPausedEvent;
ReadingPausedSignal().Connect(readingPausedCallback);
}
readingPausedHandler += value;
}
- remove {
+ remove
+ {
readingPausedHandler -= value;
if (readingPausedHandler == null && ReadingPausedSignal().Empty() == false)
ReadingPausedSignal().Disconnect(readingPausedCallback);
}
}
- internal VoidSignal ReadingPausedSignal() {
+ internal VoidSignal ReadingPausedSignal()
+ {
var handle = GetControl();
VoidSignal ret = new VoidSignal(Interop.ControlDevel.DaliToolkitDevelControlAccessibilityReadingPausedSignal(handle), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
private VoidHandlerType readingResumedCallback;
private EventHandler readingResumedHandler;
- private void OnReadingResumedEvent() {
+ private void OnReadingResumedEvent()
+ {
readingResumedHandler?.Invoke(this, null);
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler ReadingResumed {
- add {
- if (readingResumedHandler == null) {
+ public event EventHandler ReadingResumed
+ {
+ add
+ {
+ if (readingResumedHandler == null)
+ {
readingResumedCallback = OnReadingResumedEvent;
ReadingResumedSignal().Connect(readingResumedCallback);
}
readingResumedHandler += value;
}
- remove {
+ remove
+ {
readingResumedHandler -= value;
if (readingResumedHandler == null && ReadingResumedSignal().Empty() == false)
ReadingResumedSignal().Disconnect(readingResumedCallback);
}
}
- internal VoidSignal ReadingResumedSignal() {
+ internal VoidSignal ReadingResumedSignal()
+ {
var handle = GetControl();
VoidSignal ret = new VoidSignal(Interop.ControlDevel.DaliToolkitDevelControlAccessibilityReadingResumedSignal(handle), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
private VoidHandlerType readingCancelledCallback;
private EventHandler readingCancelledHandler;
- private void OnReadingCancelledEvent() {
+ private void OnReadingCancelledEvent()
+ {
readingCancelledHandler?.Invoke(this, null);
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler ReadingCancelled {
- add {
- if (readingCancelledHandler == null) {
+ public event EventHandler ReadingCancelled
+ {
+ add
+ {
+ if (readingCancelledHandler == null)
+ {
readingCancelledCallback = OnReadingCancelledEvent;
ReadingCancelledSignal().Connect(readingCancelledCallback);
}
readingCancelledHandler += value;
}
- remove {
+ remove
+ {
readingCancelledHandler -= value;
if (readingCancelledHandler == null && ReadingCancelledSignal().Empty() == false)
ReadingCancelledSignal().Disconnect(readingCancelledCallback);
}
}
- internal VoidSignal ReadingCancelledSignal() {
+ internal VoidSignal ReadingCancelledSignal()
+ {
var handle = GetControl();
VoidSignal ret = new VoidSignal(Interop.ControlDevel.DaliToolkitDevelControlAccessibilityReadingCancelledSignal(handle), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
private VoidHandlerType readingStoppedCallback;
private EventHandler readingStoppedHandler;
- private void OnReadingStoppedEvent() {
+ private void OnReadingStoppedEvent()
+ {
readingStoppedHandler?.Invoke(this, null);
}
[EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler ReadingStopped {
- add {
- if (readingStoppedHandler == null) {
+ public event EventHandler ReadingStopped
+ {
+ add
+ {
+ if (readingStoppedHandler == null)
+ {
readingStoppedCallback = OnReadingStoppedEvent;
ReadingStoppedSignal().Connect(readingStoppedCallback);
}
readingStoppedHandler += value;
}
- remove {
+ remove
+ {
readingStoppedHandler -= value;
if (readingStoppedHandler == null && ReadingStoppedSignal().Empty() == false)
ReadingStoppedSignal().Disconnect(readingStoppedCallback);
}
}
- internal VoidSignal ReadingStoppedSignal() {
+ internal VoidSignal ReadingStoppedSignal()
+ {
var handle = GetControl();
VoidSignal ret = new VoidSignal(Interop.ControlDevel.DaliToolkitDevelControlAccessibilityReadingStoppedSignal(handle), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
namespace Tizen.NUI
{
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public enum BlendEquationType
{
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
Add = 0x8006,
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
Subtract = 0x800A,
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
ReverseSubtract = 0x800B,
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
Min = 0x8007,
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
Max = 0x8008,
//Advanced Blend Equation
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
Multiply = 0x9294,
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
Screen = 0x9295,
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
Overlay = 0x9296,
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
Darken = 0x9297,
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
Lighten = 0x9298,
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
ColorDodge = 0x9299,
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
ColorBurn = 0x929A,
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
HardLight = 0x929B,
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
SoftLight = 0x929C,
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
Difference = 0x929E,
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
Exclusion = 0x92A0,
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
Hue = 0x92AD,
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
Saturation = 0x92AE,
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
Color = 0x92AF,
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
Luminosity = 0x92B0
}
}
/// Gets the Papaya_whip colored Color class.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly Color PapayaWhip = NDalic.PAPAYA_WHIP ;
+ public static readonly Color PapayaWhip = NDalic.PAPAYA_WHIP;
/// <summary>
/// Gets the Peach_puff colored Color class.
textColor = textColor.ToUpperInvariant();
textColor = textColor.Replace(" ", "");
- if ( textColor.Length > 0 && textColor[0] == '#')
+ if (textColor.Length > 0 && textColor[0] == '#')
{
textColor = textColor.Replace("#", "");
int textColorLength = textColor.Length;
bool isRGBA = textColor.StartsWith("RGBA(");
bool isRGB = textColor.StartsWith("RGB(");
- if(!isRGBA && !isRGB)
+ if (!isRGBA && !isRGB)
{
throw new global::System.ArgumentException("Please check your color text code");
}
- if(isRGBA)
+ if (isRGBA)
textColor = textColor.Substring(4);
- if(isRGB)
+ if (isRGB)
textColor = textColor.Substring(3);
- textColor = textColor.Replace(")","");
- textColor = textColor.Replace("(","");
+ textColor = textColor.Replace(")", "");
+ textColor = textColor.Replace("(", "");
string[] components = textColor.Split(',');
- if(components.Length == 3 && isRGB)
+ if (components.Length == 3 && isRGB)
{
R = Math.Min(1.0f, ((float)Convert.ToInt32(components[0], 10)) / 255.0f);
G = Math.Min(1.0f, ((float)Convert.ToInt32(components[1], 10)) / 255.0f);
B = Math.Min(1.0f, ((float)Convert.ToInt32(components[2], 10)) / 255.0f);
A = 1.0f;
}
- else if(components.Length == 4 && isRGBA)
+ else if (components.Length == 4 && isRGBA)
{
R = Math.Min(1.0f, ((float)Convert.ToInt32(components[0], 10)) / 255.0f);
G = Math.Min(1.0f, ((float)Convert.ToInt32(components[1], 10)) / 255.0f);
{
child.InternalParent = this;
}
- Interop.Actor.Add( SwigCPtr , View.getCPtr(child));
+ Interop.Actor.Add(SwigCPtr, View.getCPtr(child));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
Children.Add(child);
{
throw new ArgumentNullException(nameof(child));
}
- Interop.Actor.Remove( SwigCPtr, View.getCPtr(child));
+ Interop.Actor.Remove(SwigCPtr, View.getCPtr(child));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
[EditorBrowsable(EditorBrowsableState.Never)]
protected virtual void Dispose(bool disposing)
{
- if(disposed)
+ if (disposed)
{
return;
}
}
}
- (float childrenWidth, float childrenHeight) = CalculateChildrenSize(widthMeasureSpec.Size.AsDecimal(), heightMeasureSpec.Size.AsDecimal());
+ (float childrenWidth, float childrenHeight) = CalculateChildrenSize(widthMeasureSpec.Size.AsDecimal(), heightMeasureSpec.Size.AsDecimal());
SetMeasuredDimensions(ResolveSizeAndState(new LayoutLength(childrenWidth), widthMeasureSpec, childWidthState),
ResolveSizeAndState(new LayoutLength(childrenHeight), heightMeasureSpec, childHeightState));
}
private Action<ViewStyle, string> GenSelectorAction<T>(ControlState state)
{
- return (ViewStyle viewStyle, string stringInput) => {
+ return (ViewStyle viewStyle, string stringInput) =>
+ {
if (ParseXamlStringToObject<T>(stringInput) is T tValue)
{
if (selectorData == null)
private Action<ViewStyle, string> GenBackgroundSelectorAction(ControlState state)
{
- return (ViewStyle viewStyle, string stringInput) => {
+ return (ViewStyle viewStyle, string stringInput) =>
+ {
var imageUrl = TryConvertToResourcePath(stringInput);
if (imageUrl != null)
private Action<ViewStyle, string> GenSelectorFinalizer<T>(Action<ViewStyle, Selector<T>> setter)
{
- return (ViewStyle viewStyle, string value) => {
+ return (ViewStyle viewStyle, string value) =>
+ {
if (selectorData == null || viewStyle == null)
{
return;
private Action<ViewStyle, string> GenColorOrImageSelectorFinalizer(Action<ViewStyle, Selector<Color>> colorSetter, Action<ViewStyle, Selector<string>> imageSetter)
{
- return (ViewStyle viewStyle, string value) => {
+ return (ViewStyle viewStyle, string value) =>
+ {
if (viewStyle == null)
{
return;
* limitations under the License.
*
*/
-
+
using System.ComponentModel;
namespace Tizen.NUI
{
/// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public static class GraphicsCapabilities
{
- [EditorBrowsable (EditorBrowsableState.Never)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public static bool IsBlendEquationSupported(BlendEquationType blendEquation)
{
- return Interop.GraphicsCapabilities.IsBlendEquationSupported((int)blendEquation);
+ return Interop.GraphicsCapabilities.IsBlendEquationSupported((int)blendEquation);
}
}
}
/// </summary>
~Timer()
{
- Tizen.Log.Debug("NUI",$"(0x{SwigCPtr.Handle:X})Timer() distructor!, disposed={disposed}");
+ Tizen.Log.Debug("NUI", $"(0x{SwigCPtr.Handle:X})Timer() distructor!, disposed={disposed}");
}
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
/// This specifies visual properties.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1716: Identifiers should not match keywords")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1716: Identifiers should not match keywords")]
public struct Property
{
/// <summary>
if (windowFocusChangedEventCallback2 != null)
{
- windowFocusChangedSignal2?.Disconnect(windowFocusChangedEventCallback2);
+ windowFocusChangedSignal2?.Disconnect(windowFocusChangedEventCallback2);
}
if (transitionEffectSignal != null)
[EditorBrowsable(EditorBrowsableState.Never)]
public XamlParseException(string message) : base(message)
{
- unformattedMessage = message;
+ unformattedMessage = message;
}
/// <summary> Initializes a new instance with message and inner exception. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public XamlParseException(string message, Exception innerException = null) : base(message, innerException)
{
- unformattedMessage = message;
+ unformattedMessage = message;
}
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
}
catch (Exception)
{
- Console.WriteLine($"EventTrigger", "Can not attach EventTrigger to {binding.GetType()}.{Evnet}. Check if the handler exists and if the signature is right.");
+ Console.WriteLine($"EventTrigger", "Can not attach EventTrigger to {binding.GetType()}.{Evnet}. Check if the handler exists and if the signature is right.");
}
if (eventinfo != null && handlerdelegate != null)
eventinfo.AddEventHandler(bindable, handlerdelegate);
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
[ObsoleteAttribute(" ", false)]
- void RegisterName(string name, object scopedElement, IXmlLineInfo xmlLineInfo);
+ void RegisterName(string name, object scopedElement, IXmlLineInfo xmlLineInfo);
}
}