xtd - Reference Guide  0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
check_boxes.cpp

The following code example demonstrate the use of check_boxes control factory.

Windows

macOS

Gnome

#include <xtd/xtd>
using namespace xtd::forms;
int main() {
auto main_form = control::create<form>("Check boxes example");
auto font_group_box = control::create<group_box>(*main_form, system_texts::font(), {10, 10}, {150, 180});
auto bold_check_box = check_boxes::bold(*font_group_box, {20, 20});
auto italic_check_box = check_boxes::italic(*font_group_box, {20, 50});
auto underline_check_box = check_boxes::underline(*font_group_box, {20, 80});
auto strikeout_check_box = check_boxes::strikeout(*font_group_box, {20, 110});
application::run(*main_form);
}
static void run()
Begins running a standard application message loop on the current thread, without a form.
static std::unique_ptr< check_box > italic(const drawing::point &location={-1, -1}, const drawing::size &size={-1, -1}, const drawing::color &back_color=drawing::color::empty, const drawing::color &fore_color=drawing::color::empty)
Create a system-defined check_box that represent italic check_box.
Definition: check_boxes.h:644
static std::unique_ptr< check_box > strikeout(const drawing::point &location={-1, -1}, const drawing::size &size={-1, -1}, const drawing::color &back_color=drawing::color::empty, const drawing::color &fore_color=drawing::color::empty)
Create a system-defined check_box that represent strikeout check_box.
Definition: check_boxes.h:1064
static std::unique_ptr< check_box > bold(const drawing::point &location={-1, -1}, const drawing::size &size={-1, -1}, const drawing::color &back_color=drawing::color::empty, const drawing::color &fore_color=drawing::color::empty)
Create a system-defined check_box that represent bold check_box.
Definition: check_boxes.h:179
static std::unique_ptr< check_box > underline(const drawing::point &location={-1, -1}, const drawing::size &size={-1, -1}, const drawing::color &back_color=drawing::color::empty, const drawing::color &fore_color=drawing::color::empty)
Create a system-defined check_box that represent underline check_box.
Definition: check_boxes.h:1124
static xtd::ustring font()
Gets a system-defined text that has a string value of "&Font". This field is constant.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13