Skip to content

Commit

Permalink
optimize comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xtuzy committed Mar 5, 2023
1 parent 2e33807 commit 327a47c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</SupportedOSPlatformVersion>
<TargetPlatformMinVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</TargetPlatformMinVersion>
<RootNamespace>SharpConstraintLayout.Maui</RootNamespace>
<Version>2.1.1.3</Version>
<Version>2.1.3</Version>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Authors>zhouyang</Authors>
<Description>crossplatform constraintlayout at dotnet(android,ios ,windows)</Description>
Expand All @@ -23,6 +23,7 @@
<PackageTags>constraintlayout;MAUI;android;ios;WinUI3</PackageTags>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageReleaseNotes>some optimist for native view</PackageReleaseNotes>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>
<!--only ios and maccatalyst have these-->
<ItemGroup Condition="'$(TargetFramework)'!= 'net6.0-ios' and '$(TargetFramework)' != 'net6.0-maccatalyst'">
Expand Down
51 changes: 18 additions & 33 deletions SharpConstraintLayout.Maui/Helper/Widget/Flow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,8 @@ protected override void init()
}

/// <summary>
/// Set the orientation of the layout
/// Set the orientation of the layout. Can be: <see cref="Horizontal"/>, or <see cref="Vertical"/>
/// </summary>
/// <param name="orientation">either Flow.HORIZONTAL or FLow.VERTICAL</param>
public virtual void SetOrientation(int orientation)
{
mFlow.Orientation = orientation;
Expand Down Expand Up @@ -290,23 +289,17 @@ public virtual void SetPaddingBottom(int value)
}

/// <summary>
/// Set the style of the last Horizontal column.
/// Set the style of the last Horizontal column. Can be: <see cref="ChainSpread"/>, <see cref="ChainSpreadInside"/>, or <see cref="ChainPacked"/>.
/// </summary>
/// <param name="style">
/// Flow.CHAIN_SPREAD, Flow.CHAIN_SPREAD_INSIDE, or Flow.CHAIN_PACKED
/// </param>
public virtual void SetLastHorizontalStyle(int style)
{
mFlow.LastHorizontalStyle = style;
this.RequestReLayout();
}

/// <summary>
/// Set the style of the last vertical row.
/// Set the style of the last vertical row. Can be: <see cref="ChainSpread"/>, <see cref="ChainSpreadInside"/>, or <see cref="ChainPacked"/>.
/// </summary>
/// <param name="style">
/// Flow.CHAIN_SPREAD, Flow.CHAIN_SPREAD_INSIDE, or Flow.CHAIN_PACKED
/// </param>
public virtual void SetLastVerticalStyle(int style)
{
mFlow.LastVerticalStyle = style;
Expand Down Expand Up @@ -335,11 +328,9 @@ public virtual void SetLastVerticalBias(float value)

/// <summary>
/// Set wrap mode for the layout. Can be:
///
/// Flow.WRAP_NONE (default) -- no wrap behavior, create a single chain Flow.WRAP_CHAIN --
/// if not enough space to fit the referenced elements, will create additional chains after
/// the first one Flow.WRAP_ALIGNED -- if not enough space to fit the referenced elements,
/// will wrap the elements, keeping them aligned (like a table)
/// <see cref="WrapNone"/> (default) -- no wrap behavior, create a single chain.
/// <see cref="WrapChain"/> -- if not enough space to fit the referenced elements, will create additional chains after the first one.
/// <see cref="WrapAligned"/> -- if not enough space to fit the referenced elements, will wrap the elements, keeping them aligned (like a table).
/// </summary>
/// <param name="mode"></param>
public virtual void SetWrapMode(int value)
Expand All @@ -349,9 +340,7 @@ public virtual void SetWrapMode(int value)
}

/// <summary>
/// Set horizontal chain style. Can be:
///
/// Flow.CHAIN_SPREAD Flow.CHAIN_SPREAD_INSIDE Flow.CHAIN_PACKED
/// Set horizontal chain style. Can be: <see cref="ChainSpread"/>, <see cref="ChainSpreadInside"/>, <see cref="ChainPacked"/>.
/// </summary>
/// <param name="style"></param>
public virtual void SetHorizontalStyle(int value)
Expand All @@ -361,9 +350,7 @@ public virtual void SetHorizontalStyle(int value)
}

/// <summary>
/// Set vertical chain style. Can be:
///
/// Flow.CHAIN_SPREAD Flow.CHAIN_SPREAD_INSIDE Flow.CHAIN_PACKED
/// Set vertical chain style. Can be: <see cref="ChainSpread"/>, <see cref="ChainSpreadInside"/>, <see cref="ChainPacked"/>.
/// </summary>
/// <param name="style"></param>
public virtual void SetVerticalStyle(int value)
Expand Down Expand Up @@ -393,7 +380,7 @@ public virtual void SetVerticalBias(float bias)
}

/// <summary>
/// Similar to setHorizontalStyle(), but only applies to the first chain.
/// Similar to <see cref="SetHorizontalStyle"/>, but only applies to the first chain.
/// </summary>
/// <param name="style"></param>
public virtual void SetFirstHorizontalStyle(int value)
Expand All @@ -403,7 +390,7 @@ public virtual void SetFirstHorizontalStyle(int value)
}

/// <summary>
/// Similar to setVerticalStyle(), but only applies to the first chain.
/// Similar to <see cref="SetVerticalStyle"/>, but only applies to the first chain.
/// </summary>
/// <param name="style"></param>
public virtual void SetFirstVerticalStyle(int value)
Expand All @@ -413,7 +400,7 @@ public virtual void SetFirstVerticalStyle(int value)
}

/// <summary>
/// Similar to setHorizontalBias(), but only applied to the first chain.
/// Similar to <see cref="SetHorizontalBias"/>, but only applied to the first chain.
/// </summary>
/// <param name="bias"></param>
public virtual void SetFirstHorizontalBias(float value)
Expand All @@ -423,7 +410,7 @@ public virtual void SetFirstHorizontalBias(float value)
}

/// <summary>
/// Similar to setVerticalBias(), but only applied to the first chain.
/// Similar to <see cref="SetVerticalBias"/>, but only applied to the first chain.
/// </summary>
/// <param name="bias"></param>
public virtual void SetFirstVerticalBias(float value)
Expand All @@ -433,11 +420,10 @@ public virtual void SetFirstVerticalBias(float value)
}

/// <summary>
/// Set up the horizontal alignment of the elements in the layout, if the layout orientation
/// is set to Flow.VERTICAL
/// Set up the horizontal alignment of the elements in the layout, if the layout <see cref="SetOrientation(int)"/>
/// is set to <see cref="Vertical"/>.
///
/// Can be either: Flow.HORIZONTAL_ALIGN_START Flow.HORIZONTAL_ALIGN_END
/// Flow.HORIZONTAL_ALIGN_CENTER
/// Can be either: <see cref="HorizontalAlignStart"/>, <see cref="HorizontalAlignEnd"/>, <see cref="HorizontalAlignCenter"/>.
/// </summary>
/// <param name="align"></param>
public virtual void SetHorizontalAlign(int value)
Expand All @@ -447,11 +433,10 @@ public virtual void SetHorizontalAlign(int value)
}

/// <summary>
/// Set up the vertical alignment of the elements in the layout, if the layout orientation
/// is set to Flow.HORIZONTAL
/// Set up the vertical alignment of the elements in the layout, if the layout <see cref="SetOrientation(int)"/>
/// is set to <see cref="Horizontal"/>.
///
/// Can be either: Flow.VERTICAL_ALIGN_TOP Flow.VERTICAL_ALIGN_BOTTOM
/// Flow.VERTICAL_ALIGN_CENTER Flow.VERTICAL_ALIGN_BASELINE
/// Can be either: <see cref="VerticalAlignTop"/>, <see cref="VerticalAlignBottom"/>, <see cref="VerticalAlignCenter"/>, <see cref="VerticalAlignBaseline"/>.
/// </summary>
/// <param name="align"></param>
public virtual void SetVerticalAlign(int value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
<Version>2.1.2</Version>
<Version>2.1.3</Version>
<Description>constraintlayout for maui</Description>
<Copyright></Copyright>
<PackageProjectUrl>https://github.com/xtuzy/SharpConstraintLayout</PackageProjectUrl>
Expand Down

0 comments on commit 327a47c

Please sign in to comment.