Adjusting demo app to take screenshots.
This commit is contained in:
@@ -87,8 +87,15 @@ This is some information about the Widget class.
|
|||||||
<details><summary>Checkbox</summary>
|
<details><summary>Checkbox</summary>
|
||||||
|
|
||||||
* The `Checkbox` widget provides a simple binary toggle input, allowing users to select or deselect an option.
|
* 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.
|
* 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
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
|
14
main.cpp
14
main.cpp
@@ -344,14 +344,26 @@ JUI::Rect* CreateWidgetList(JUI::Widget* root) {
|
|||||||
label->Content("Standard");
|
label->Content("Standard");
|
||||||
label->BorderWidth(0);
|
label->BorderWidth(0);
|
||||||
label->AutoFitSizeToText(true);
|
label->AutoFitSizeToText(true);
|
||||||
label->Size({100_px, 20_px});
|
label->Size({50_px, 20_px});
|
||||||
|
|
||||||
auto* check1 = new Checkbox(set_1_layout);
|
auto* check1 = new Checkbox(set_1_layout);
|
||||||
check1->Size({20_px, 20_px});
|
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);
|
auto* check2 = new Checkbox(set_1_layout);
|
||||||
check2->Size({20_px, 20_px});
|
check2->Size({20_px, 20_px});
|
||||||
check2->CheckedColor(Colors::Blue);
|
check2->CheckedColor(Colors::Blue);
|
||||||
check2->CornerRounding(7);
|
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);
|
auto* check3 = new Checkbox(set_1_layout);
|
||||||
check3->Size({20_px, 20_px});
|
check3->Size({20_px, 20_px});
|
||||||
check3->CheckedColor(Colors::Oranges::Coral);
|
check3->CheckedColor(Colors::Oranges::Coral);
|
||||||
|
Reference in New Issue
Block a user