Cassowary.CSharp
1.0.2
See the version list below for details.
dotnet add package Cassowary.CSharp --version 1.0.2
NuGet\Install-Package Cassowary.CSharp -Version 1.0.2
<PackageReference Include="Cassowary.CSharp" Version="1.0.2" />
paket add Cassowary.CSharp --version 1.0.2
#r "nuget: Cassowary.CSharp, 1.0.2"
// Install Cassowary.CSharp as a Cake Addin #addin nuget:?package=Cassowary.CSharp&version=1.0.2 // Install Cassowary.CSharp as a Cake Tool #tool nuget:?package=Cassowary.CSharp&version=1.0.2
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 MIT license.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net7.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 | 189 | 4/22/2024 |
1.0.2 | 99 | 4/22/2024 |
1.0.1 | 271 | 6/13/2023 |
0.1.5 | 309 | 4/9/2023 |
0.1.2-tags-v0-1-2-beta0001 | 131 | 4/8/2023 |
0.1.1-tags-v0-1-1-beta0001 | 138 | 3/24/2023 |
0.1.0-beta | 141 | 3/17/2023 |