Skip to content

Commit

Permalink
Rebuild docs
Browse files Browse the repository at this point in the history
  • Loading branch information
can-lehmann committed Jun 20, 2023
1 parent 4539bd1 commit 2cf8b66
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions docs/widgets.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ renderable BaseWidget
```

The base widget of all widgets. Supports redrawing the entire Application
by calling `<WidgetName>State.app.redraw()
by calling `<WidgetName>State.app.redraw()`

###### Fields

Expand Down Expand Up @@ -414,7 +414,6 @@ Entry for entering numeric values
###### Fields

- All fields from [BaseWidget](#BaseWidget)
- `value: float`
- `digits: uint = 1` Number of digits
- `climbRate: float = 0.1`
- `wrap: bool` When the maximum (minimum) value is reached, the SpinButton will wrap around to the minimum (maximum) value.
Expand All @@ -423,6 +422,7 @@ Entry for entering numeric values
- `stepIncrement: float = 0.1`
- `pageIncrement: float = 1`
- `pageSize: float = 0`
- `value: float`

###### Events

Expand Down Expand Up @@ -1097,6 +1097,35 @@ Grid:
```


## Fixed

```nim
renderable Fixed of BaseWidget
```

A layout where children are placed at fixed positions.

###### Fields

- All fields from [BaseWidget](#BaseWidget)
- `children: seq[FixedChild[Widget]]`

###### Adders

- All adders from [BaseWidget](#BaseWidget)
- `add` Adds a child at the given position

- `x = 0.0`
- `y = 0.0`

###### Example

```nim
Fixed:
Label(text = "Fixed Layout") {.x: 200, y: 100.}
```


## ContextMenu

```nim
Expand Down

0 comments on commit 2cf8b66

Please sign in to comment.