#include <xtd/drawing/drawing_2d/hatch_brush>
#include <xtd/drawing/color_translator>
#include <xtd/forms/application>
#include <xtd/forms/color_picker>
#include <xtd/forms/control_paint>
#include <xtd/forms/form>
#include <xtd/forms/label>
#include <xtd/forms/panel>
namespace color_picker_example {
class form1 :
public form {
public:
form1() {
text(
"Color picker example");
test_zone.invalidate();
};
test_zone.parent(*this);
test_zone.location({10, 50});
test_zone.double_buffered(true);
control_paint::draw_border(test_zone,
e.graphics(), test_zone.border_style(), test_zone.border_sides(),
application::style_sheet().system_colors().control_text(),
rectangle::add(
e.clip_rectangle(), -1, -1));
};
color_label.parent(*this);
color_label.auto_size(true);
color_label.location({10, 160});
}
private:
};
}
auto main() -> int {
}
static xtd::string to_html(const xtd::drawing::color &value) noexcept
Translates the specified xtd::drawing::color structure to an HTML string color representation.
static const xtd::drawing::color red
Gets a system-defined color that has an ARGB value of 0xFFFF0000. This field is constant.
Definition color.hpp:401
static xtd::drawing::color from_argb(uint32 argb) noexcept
Creates a xtd::drawing::color class from a 32-bit ARGB value.
Defines a rectangular xtd::drawing::brush with a hatch style, a foreground color, and a background co...
Definition hatch_brush.hpp:31
Defines a xtd::drawing::brush of a single color. Brushes are used to fill graphics shapes,...
Definition solid_brush.hpp:29
@ e
The E key.
Definition console_key.hpp:96
@ wide_checker_board
Specifies a hatch that has the appearance of a checkerboard with squares that are twice the size of x...
Definition hatch_style.hpp:181
The xtd::drawing::drawing_2d namespace provides advanced two-dimensional and vector graphics function...
Definition compositing_mode.hpp:12
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
Contains classes that represent ASCII and Unicode character encodings; abstract base classes for conv...
Definition basic_string_builder.hpp:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
void add(const drawing::size &sz) noexcept
Adds this xtd::drawing::rectangle by the specified amount.