Dim.Sized -> Dim.Absolute

This commit is contained in:
Tig
2024-05-14 20:58:27 -07:00
parent 08199f84c5
commit d2e24993fb
10 changed files with 62 additions and 59 deletions

View File

@@ -83,13 +83,16 @@ In v1, `Application.Init` automatically created a toplevel view and set `Applica
## `Pos` and `Dim` types are no-longer internal nested classes
In v1, the `Pos` and `Dim` types (e.g. `Pos.PosView`) were nested classes and marked `internal`. In v2, they are no longer nested, and have appropriate public APIs. As part of this, the static method that creates a `PosAbsolute`, `Pos.At`, was renamed to `Pos.Absoulte` for consistency
* In v1, the `Pos` and `Dim` types (e.g. `Pos.PosView`) were nested classes and marked `internal`. In v2, they are no longer nested, and have appropriate public APIs.
* The static method that creates a `PosAbsolute`, `Pos.At`, was renamed to `Pos.Absolute` for consistency.
* The static method that crates as `DimAbsoulte`, `Dim.Sized`, was renamed to `Dim.Absolute` for consistency.
### How to Fix
* Search and replace `Pos.Pos` -> `Pos`.
* Search and replace `Dim.Dim` -> `Dim`.
* Search and replace `Pos.At` -> `Pos.Absolute`
* Search and replace `Dim.Sized` -> `Dim.Absolute`
## Layout Improvements