#include <xtd/drawing/system_colors>
#include <xtd/forms/application>
#include <xtd/forms/form>
#include <xtd/forms/user_control>
namespace line_example {
public:
};
class form1 :
public form {
public:
form1() {
line_separator.color(drawing::system_colors::window());
line_separator.
bounds({10, 10, 280, 2});
line_red.color(drawing::color::red);
line_red.bounds({10, 20, 2, 250});
line_green.color(drawing::color::green);
line_green.bounds({149, 20, 2, 250});
line_blue.color(drawing::color::blue);
line_blue.bounds({288, 20, 2, 250});
line_separator2.color(drawing::system_colors::control_text());
line_separator2.bounds({10, 278, 280, 2});
text("Lines example");
client_size({300, 300});
controls().push_back_range({line_separator, line_red, line_green, line_blue, line_separator2});
}
private:
colored_line line_separator;
colored_line line_red;
colored_line line_green;
colored_line line_blue;
colored_line line_separator2;
};
}
auto main() -> int {
application::run(line_example::form1 {});
}
Represents an ARGB (alpha, red, green, blue) color.
Definition color.h:49
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10