Cassowary.CSharp
2.0.0
dotnet add package Cassowary.CSharp --version 2.0.0
NuGet\Install-Package Cassowary.CSharp -Version 2.0.0
<PackageReference Include="Cassowary.CSharp" Version="2.0.0" />
paket add Cassowary.CSharp --version 2.0.0
#r "nuget: Cassowary.CSharp, 2.0.0"
// Install Cassowary.CSharp as a Cake Addin #addin nuget:?package=Cassowary.CSharp&version=2.0.0 // Install Cassowary.CSharp as a Cake Tool #tool nuget:?package=Cassowary.CSharp&version=2.0.0
cassowary-csharp
This is a C# implementation of the Cassowary constraint solving algorithm (Badros et. al 2001). It is based heavily on the implementation for Rust at dylanede/cassowary-rs. The implementation does however differ in some details.
Cassowary is designed for solving constraints to lay out user interfaces. Constraints typically take the form "this button must line up with this text box", or "this box should try to be 3 times the size of this other box". Its most popular incarnation by far is in Apple's Autolayout system for Mac OS X and iOS user interfaces. UI libraries using the Cassowary algorithm manage to achieve a much more natural approach to specifying UI layouts than traditional approaches like those found in HTML.
This library is a low level interface to the solving algorithm, though it tries to be as convenient as possible. As a result it does not have any intrinsic knowledge of common user interface conventions like rectangular regions or even two dimensions. These abstractions belong in a higher level crate.
Getting Started
Add the following to your csproj file:
dotnet add package cassowary-csharp
License
Cassowary is licensed under the GNU GENERAL PUBLIC LICENSE license.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Cassowary.CSharp:
Package | Downloads |
---|---|
Boto
Build terminal user interfaces and dashboards using C# |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.0 | 185 | 4/22/2024 |
1.0.2 | 97 | 4/22/2024 |
1.0.1 | 269 | 6/13/2023 |
0.1.5 | 307 | 4/9/2023 |
0.1.2-tags-v0-1-2-beta0001 | 129 | 4/8/2023 |
0.1.1-tags-v0-1-1-beta0001 | 136 | 3/24/2023 |
0.1.0-beta | 139 | 3/17/2023 |