xtd 0.2.0
Loading...
Searching...
No Matches
color_box.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.hpp"
7#include "dialog_result.hpp"
8#include "iwin32_window.hpp"
9#include <xtd/drawing/color>
10#include <xtd/static>
11#include <xtd/string>
12
14namespace xtd {
16 namespace forms {
36 public:
38
69 static xtd::forms::dialog_result show(xtd::drawing::color& color, const xtd::forms::iwin32_window& owner, const xtd::string& title, color_box_styles styles, const std::vector<xtd::drawing::color>& custom_colors);
70
96 static xtd::forms::dialog_result show(xtd::drawing::color& color, const xtd::string& title, color_box_styles styles, const std::vector<xtd::drawing::color>& custom_colors);
98
99 private:
100 static xtd::forms::dialog_result show_color_box(xtd::drawing::color& color, const xtd::forms::iwin32_window* owner = nullptr, const xtd::string& title = xtd::string::empty_string, color_box_styles styles = color_box_styles::alpha_color | color_box_styles::allow_full_open, const std::optional<std::vector<xtd::drawing::color>>& custom_colors = std::optional<std::vector<xtd::drawing::color>> {});
101 };
102 }
103}
Represents text as a sequence of character units.
Definition basic_string.hpp:79
static const basic_string empty_string
Represents the empty basic_string.
Definition basic_string.hpp:124
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:49
Represents a common dialog box that displays available colors along with controls that enable the use...
Definition color_box.hpp:35
static xtd::forms::dialog_result show(xtd::drawing::color &color, const xtd::forms::iwin32_window &owner, const xtd::string &title)
Displays a color box in front of the specified window. The color box displays a color.
static xtd::forms::dialog_result show(xtd::drawing::color &color, const xtd::string &title)
Displays a color box. The color box displays a color.
static xtd::forms::dialog_result show(xtd::drawing::color &color, const xtd::forms::iwin32_window &owner)
Displays a color box in front of the specified window. The color box displays a color.
static xtd::forms::dialog_result show(xtd::drawing::color &color, const xtd::forms::iwin32_window &owner, const xtd::string &title, color_box_styles styles)
Displays a color box in front of the specified window. The color box displays a color with styles.
static xtd::forms::dialog_result show(xtd::drawing::color &color)
Displays a color box. The color box displays a color.
static xtd::forms::dialog_result show(xtd::drawing::color &color, const xtd::string &title, color_box_styles styles)
Displays a color box. The color box displays a color with styles.
static xtd::forms::dialog_result show(xtd::drawing::color &color, const xtd::string &title, color_box_styles styles, const std::vector< xtd::drawing::color > &custom_colors)
Displays a color box. The color box displays a color with styles, and custom colors.
static xtd::forms::dialog_result show(xtd::drawing::color &color, const xtd::forms::iwin32_window &owner, const xtd::string &title, color_box_styles styles, const std::vector< xtd::drawing::color > &custom_colors)
Displays a color box in front of the specified window. The color box displays a color with styles,...
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.hpp:23
Contains xtd::forms::color_box_styles enum class.
Contains xtd::forms::dialog_result enum class.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
color_box_styles
Specifies constants defining which color_box styles is used.
Definition color_box_styles.hpp:22
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition dialog_result.hpp:43
Contains xtd::forms::iwin32_window interface.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10