tim_button_noborder

This commit is contained in:
2026-01-12 18:34:13 +05:00
parent 1aa33128e9
commit 75d894b1bd
2 changed files with 21 additions and 7 deletions

View File

@@ -256,10 +256,14 @@ void tim_frame(i32 x, i32 y, i32 w, i32 h, TimStyle style);
// color: background, text
void tim_label(cstr s, i32 x, i32 y, i32 w, i32 h, TimStyle style);
// button - returns true on click
// button with border - returns true on click
// color: frame, background, text
bool tim_button(cstr txt, i32 x, i32 y, i32 w, i32 h, TimStyle style);
// button without border - returns true on click
// color: frame, background, text
bool tim_button_noborder(cstr txt, i32 x, i32 y, i32 w, i32 h, TimStyle style);
// check box - returns true when clicked
// txt : text label
// state: persistent state, 0 unchecked, -1 semi checked, !0: checked