From d9d92c2a286dcb1d2bdecb781792efd7d58bf582 Mon Sep 17 00:00:00 2001 From: dawsh Date: Wed, 25 Jun 2025 17:40:56 -0500 Subject: [PATCH] Adjusting demo app to take screenshots. --- docs/widgets.md | 9 ++++++++- main.cpp | 14 +++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/docs/widgets.md b/docs/widgets.md index ab4a204..7da6155 100644 --- a/docs/widgets.md +++ b/docs/widgets.md @@ -87,8 +87,15 @@ This is some information about the Widget class.
Checkbox * The `Checkbox` widget provides a simple binary toggle input, allowing users to select or deselect an option. - * Typically Consists of a small square box + * Typically Consists of a small square box. + * When clicked, the box's state flips, indicating whether the corresponding option is enabled or disabled. * Also see LabeledCheckbox for a Checkbox with integrated text. +* Usages: + * Enabling / Disabling Features + * Opt-in / Opt-out Choices: + * Multiple Selections - When presented in a group, checkboxes allow users to select zero, one or multiple independent options simultaneously. + * Contrast with Radio Buttons, which allow only one selection from a group. + * Boolean Settings
diff --git a/main.cpp b/main.cpp index 8167464..552dcc5 100644 --- a/main.cpp +++ b/main.cpp @@ -344,14 +344,26 @@ JUI::Rect* CreateWidgetList(JUI::Widget* root) { label->Content("Standard"); label->BorderWidth(0); label->AutoFitSizeToText(true); - label->Size({100_px, 20_px}); + label->Size({50_px, 20_px}); auto* check1 = new Checkbox(set_1_layout); check1->Size({20_px, 20_px}); + auto* separator_1 = new Separator(set_1_layout); + separator_1->Orient(Orientation::Vertical); + separator_1->Size({10_px, 100_percent}); + separator_1->Spacing(0); + separator_1->Visible(false); auto* check2 = new Checkbox(set_1_layout); check2->Size({20_px, 20_px}); check2->CheckedColor(Colors::Blue); check2->CornerRounding(7); + + auto* separator_2 = new Separator(set_1_layout); + separator_2->Orient(Orientation::Vertical); + separator_2->Spacing(0); + separator_2->Visible(false); + separator_2->Size({10_px, 100_percent}); + auto* check3 = new Checkbox(set_1_layout); check3->Size({20_px, 20_px}); check3->CheckedColor(Colors::Oranges::Coral);