Skip to content

Commit

Permalink
Fix GUI docs
Browse files Browse the repository at this point in the history
  • Loading branch information
marekmaskarinec committed Jan 29, 2024
1 parent b4e030e commit 8102519
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions umka/ui.um
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ type TextBox* = struct {
//~~fn TextBox.clear
// Clears the textbox
fn (this: ^TextBox) clear*() {
//~~
this.buffer = ""
this.cursor = 0
}
Expand Down Expand Up @@ -839,7 +840,10 @@ fn getDefaultStyle*(): Style {
color: 0x888888ff } }
}

//~~fn mk
// Creates a GUI instance.
fn mk*(r: rect.Rect, s: Style): Gui {
//~~
gui := Gui{}
gui.pushStyle(s)
gui.container = []Container{ Stack{ dm: r } }
Expand Down

0 comments on commit 8102519

Please sign in to comment.