6 #include <xtd/forms/choose_color_flags.h>
7 #include "../forms_export.h"
64 bool any_color()
const {
return get_option(CC_ANYCOLOR);}
88 const std::vector<xtd::drawing::color>&
custom_colors()
const {
return custom_colors_;}
94 for (
size_t index = 0; index < custom_colors.size(); index++)
95 custom_colors_[index] = custom_colors[index];
96 for (
size_t index = custom_colors.size(); index < custom_colors_.size(); index++)
105 bool full_open()
const {
return get_option(CC_FULLOPEN);}
122 bool show_help()
const {
return get_option(CC_SHOWHELP);}
156 bool get_option(
size_t flag)
const {
return (options_ & flag) == flag;}
157 void set_option(
size_t flag,
bool value) {options_ = value ? options_ | flag : options_ & ~flag;}
161 size_t options_ = CC_ALPHACOLOR | CC_PREVENTFULLOPEN;
Represents an ARGB (alpha, red, green, blue) color.
Definition: color.h:39
static const xtd::drawing::color white
Gets a system-defined color that has an ARGB value of 0xFFFFFFFF. This field is constant.
Definition: color.h:459
static const xtd::drawing::color black
Gets a system-defined color that has an ARGB value of 0xFF000000. This field is constant.
Definition: color.h:69
Contains xtd::drawing::color class.
Contains xtd::forms::common_dialog class.
#define forms_export_
Define shared library export.
Definition: forms_export.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17