Phase 3: IWidget virtuals for new Inspector setters (49 + 11 rgb colour virtuals)
This commit is contained in:
1 parent
6cb1b3d2f2
commit
b79e44b97d
1 file changed
+721
@@ -1283,6 +1283,67 @@ struct IWidget {
|
||||
virtual bool set_want_returns(bool) { return false; }
|
||||
virtual bool set_yalign(double) { return false; }
|
||||
virtual bool set_checked_items(const std::string&) { return false; }
|
||||
virtual bool set_bar_color_rgb(int, int, int) { return false; }
|
||||
virtual bool set_trough_color_rgb(int, int, int) { return false; }
|
||||
virtual bool set_grid_color_rgb(int, int, int) { return false; }
|
||||
virtual bool set_selected_fill_color_rgb(int, int, int) { return false; }
|
||||
virtual bool set_selected_text_color_rgb(int, int, int) { return false; }
|
||||
virtual bool set_today_color_rgb(int, int, int) { return false; }
|
||||
virtual bool set_dim_text_color_rgb(int, int, int) { return false; }
|
||||
virtual bool set_weekends_color_rgb(int, int, int) { return false; }
|
||||
virtual bool set_disabled_color_rgb(int, int, int) { return false; }
|
||||
virtual bool set_default_color_rgb(int, int, int) { return false; }
|
||||
virtual bool set_none_color_rgb(int, int, int) { return false; }
|
||||
// Phase 3: per-widget custom properties (proposal §2.11–§2.22).
|
||||
virtual bool set_show_text(bool) { return false; }
|
||||
virtual bool set_pulsing(bool) { return false; }
|
||||
virtual bool set_inverted(bool) { return false; }
|
||||
virtual bool set_position(double) { return false; }
|
||||
virtual bool set_min(double) { return false; }
|
||||
virtual bool set_max(double) { return false; }
|
||||
virtual bool set_show_week_numbers(bool) { return false; }
|
||||
virtual bool set_stretch(bool) { return false; }
|
||||
virtual bool set_proportional(bool) { return false; }
|
||||
virtual bool set_center(bool) { return false; }
|
||||
virtual bool set_tab_width(int) { return false; }
|
||||
virtual bool set_tab_position(int) { return false; }
|
||||
virtual bool set_group_index(int) { return false; }
|
||||
virtual bool set_allow_all_up(bool) { return false; }
|
||||
virtual bool set_flat(bool) { return false; }
|
||||
virtual bool set_view_style(int) { return false; }
|
||||
virtual bool set_grid_lines(bool) { return false; }
|
||||
virtual bool set_row_select(bool) { return false; }
|
||||
virtual bool set_sort_type(int) { return false; }
|
||||
virtual bool set_indent(int) { return false; }
|
||||
virtual bool set_show_buttons(bool) { return false; }
|
||||
virtual bool set_show_lines(bool) { return false; }
|
||||
virtual bool set_show_root(bool) { return false; }
|
||||
virtual bool set_min_size(int) { return false; }
|
||||
virtual bool set_resize_style(int) { return false; }
|
||||
virtual bool set_auto_snap(bool) { return false; }
|
||||
virtual bool set_position(int) { return false; }
|
||||
virtual bool set_size_grip(bool) { return false; }
|
||||
virtual bool set_show_captions(bool) { return false; }
|
||||
virtual bool set_button_width(int) { return false; }
|
||||
virtual bool set_button_height(int) { return false; }
|
||||
virtual bool set_shape(int) { return false; }
|
||||
virtual bool set_pen_color(Srgb) { return false; }
|
||||
virtual bool set_pen_width(int) { return false; }
|
||||
virtual bool set_frozen_cols(int) { return false; }
|
||||
virtual bool set_frozen_rows(int) { return false; }
|
||||
virtual bool set_default_col_width(int) { return false; }
|
||||
virtual bool set_grid_line_width(int) { return false; }
|
||||
virtual bool set_size(int, int) { return false; }
|
||||
virtual bool set_inset(int) { return false; }
|
||||
virtual bool set_top_inset(int) { return false; }
|
||||
virtual bool set_header_height(int) { return false; }
|
||||
virtual bool set_headers_visible(bool) { return false; }
|
||||
virtual bool set_current_page(int) { return false; }
|
||||
virtual bool set_tab_height(int) { return false; }
|
||||
virtual bool set_pixel_size(int) { return false; }
|
||||
virtual bool set_filename(const std::string&) { return false; }
|
||||
virtual bool set_date(int, int, int) { return false; }
|
||||
virtual bool set_orientation(int) { return false; }
|
||||
virtual std::string get_text() { return ""; }
|
||||
// Phase 2, Flag 10: raw pointer/keyboard callbacks, set by the
|
||||
// generator on the Holder when the corresponding Lazarus event
|
||||
@@ -1584,6 +1645,246 @@ template <typename, typename = void>
|
||||
struct has_set_checked_items : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_checked_items<T, std::void_t<decltype(static_cast<void (T::*)(const std::string&)>(&T::set_checked_items))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_bar_color_rgb : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_bar_color_rgb<T, std::void_t<decltype(static_cast<void (T::*)(int, int, int)>(&T::set_bar_color_rgb))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_trough_color_rgb : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_trough_color_rgb<T, std::void_t<decltype(static_cast<void (T::*)(int, int, int)>(&T::set_trough_color_rgb))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_grid_color_rgb : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_grid_color_rgb<T, std::void_t<decltype(static_cast<void (T::*)(int, int, int)>(&T::set_grid_color_rgb))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_selected_fill_color_rgb : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_selected_fill_color_rgb<T, std::void_t<decltype(static_cast<void (T::*)(int, int, int)>(&T::set_selected_fill_color_rgb))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_selected_text_color_rgb : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_selected_text_color_rgb<T, std::void_t<decltype(static_cast<void (T::*)(int, int, int)>(&T::set_selected_text_color_rgb))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_today_color_rgb : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_today_color_rgb<T, std::void_t<decltype(static_cast<void (T::*)(int, int, int)>(&T::set_today_color_rgb))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_dim_text_color_rgb : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_dim_text_color_rgb<T, std::void_t<decltype(static_cast<void (T::*)(int, int, int)>(&T::set_dim_text_color_rgb))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_weekends_color_rgb : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_weekends_color_rgb<T, std::void_t<decltype(static_cast<void (T::*)(int, int, int)>(&T::set_weekends_color_rgb))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_disabled_color_rgb : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_disabled_color_rgb<T, std::void_t<decltype(static_cast<void (T::*)(int, int, int)>(&T::set_disabled_color_rgb))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_default_color_rgb : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_default_color_rgb<T, std::void_t<decltype(static_cast<void (T::*)(int, int, int)>(&T::set_default_color_rgb))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_none_color_rgb : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_none_color_rgb<T, std::void_t<decltype(static_cast<void (T::*)(int, int, int)>(&T::set_none_color_rgb))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_show_text : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_show_text<T, std::void_t<decltype(static_cast<void (T::*)(bool)>(&T::set_show_text))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_pulsing : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_pulsing<T, std::void_t<decltype(static_cast<void (T::*)(bool)>(&T::set_pulsing))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_inverted : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_inverted<T, std::void_t<decltype(static_cast<void (T::*)(bool)>(&T::set_inverted))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_position : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_position<T, std::void_t<decltype(static_cast<void (T::*)(double)>(&T::set_position))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_min : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_min<T, std::void_t<decltype(static_cast<void (T::*)(double)>(&T::set_min))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_max : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_max<T, std::void_t<decltype(static_cast<void (T::*)(double)>(&T::set_max))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_show_week_numbers : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_show_week_numbers<T, std::void_t<decltype(static_cast<void (T::*)(bool)>(&T::set_show_week_numbers))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_stretch : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_stretch<T, std::void_t<decltype(static_cast<void (T::*)(bool)>(&T::set_stretch))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_proportional : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_proportional<T, std::void_t<decltype(static_cast<void (T::*)(bool)>(&T::set_proportional))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_center : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_center<T, std::void_t<decltype(static_cast<void (T::*)(bool)>(&T::set_center))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_tab_width : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_tab_width<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_tab_width))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_tab_position : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_tab_position<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_tab_position))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_group_index : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_group_index<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_group_index))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_allow_all_up : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_allow_all_up<T, std::void_t<decltype(static_cast<void (T::*)(bool)>(&T::set_allow_all_up))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_flat : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_flat<T, std::void_t<decltype(static_cast<void (T::*)(bool)>(&T::set_flat))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_view_style : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_view_style<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_view_style))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_grid_lines : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_grid_lines<T, std::void_t<decltype(static_cast<void (T::*)(bool)>(&T::set_grid_lines))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_row_select : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_row_select<T, std::void_t<decltype(static_cast<void (T::*)(bool)>(&T::set_row_select))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_sort_type : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_sort_type<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_sort_type))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_indent : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_indent<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_indent))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_show_buttons : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_show_buttons<T, std::void_t<decltype(static_cast<void (T::*)(bool)>(&T::set_show_buttons))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_show_lines : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_show_lines<T, std::void_t<decltype(static_cast<void (T::*)(bool)>(&T::set_show_lines))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_show_root : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_show_root<T, std::void_t<decltype(static_cast<void (T::*)(bool)>(&T::set_show_root))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_min_size : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_min_size<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_min_size))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_resize_style : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_resize_style<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_resize_style))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_auto_snap : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_auto_snap<T, std::void_t<decltype(static_cast<void (T::*)(bool)>(&T::set_auto_snap))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_position_int : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_position_int<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_position))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_size_grip : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_size_grip<T, std::void_t<decltype(static_cast<void (T::*)(bool)>(&T::set_size_grip))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_show_captions : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_show_captions<T, std::void_t<decltype(static_cast<void (T::*)(bool)>(&T::set_show_captions))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_button_width : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_button_width<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_button_width))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_button_height : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_button_height<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_button_height))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_shape : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_shape<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_shape))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_pen_color : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_pen_color<T, std::void_t<decltype(static_cast<void (T::*)(Srgb)>(&T::set_pen_color))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_pen_width : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_pen_width<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_pen_width))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_frozen_cols : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_frozen_cols<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_frozen_cols))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_frozen_rows : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_frozen_rows<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_frozen_rows))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_default_col_width : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_default_col_width<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_default_col_width))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_grid_line_width : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_grid_line_width<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_grid_line_width))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_size : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_size<T, std::void_t<decltype(static_cast<void (T::*)(int, int)>(&T::set_size))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_inset : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_inset<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_inset))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_top_inset : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_top_inset<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_top_inset))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_header_height : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_header_height<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_header_height))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_headers_visible : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_headers_visible<T, std::void_t<decltype(static_cast<void (T::*)(bool)>(&T::set_headers_visible))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_current_page : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_current_page<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_current_page))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_tab_height : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_tab_height<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_tab_height))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_pixel_size : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_pixel_size<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_pixel_size))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_filename : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_filename<T, std::void_t<decltype(std::declval<T&>().set_filename(std::declval<std::string>()))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_date : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_date<T, std::void_t<decltype(static_cast<void (T::*)(int, int, int)>(&T::set_date))>> : std::true_type {};
|
||||
template <typename, typename = void>
|
||||
struct has_set_orientation : std::false_type {};
|
||||
template <typename T>
|
||||
struct has_set_orientation<T, std::void_t<decltype(static_cast<void (T::*)(int)>(&T::set_orientation))>> : std::true_type {};
|
||||
} // namespace detail
|
||||
|
||||
template <typename T>
|
||||
@@ -2113,6 +2414,426 @@ struct Holder : IWidget {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_bar_color_rgb(int r, int g, int b) override {
|
||||
if constexpr (detail::has_set_bar_color_rgb<T>::value) {
|
||||
w.set_bar_color_rgb(r, g, b);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_trough_color_rgb(int r, int g, int b) override {
|
||||
if constexpr (detail::has_set_trough_color_rgb<T>::value) {
|
||||
w.set_trough_color_rgb(r, g, b);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_grid_color_rgb(int r, int g, int b) override {
|
||||
if constexpr (detail::has_set_grid_color_rgb<T>::value) {
|
||||
w.set_grid_color_rgb(r, g, b);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_selected_fill_color_rgb(int r, int g, int b) override {
|
||||
if constexpr (detail::has_set_selected_fill_color_rgb<T>::value) {
|
||||
w.set_selected_fill_color_rgb(r, g, b);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_selected_text_color_rgb(int r, int g, int b) override {
|
||||
if constexpr (detail::has_set_selected_text_color_rgb<T>::value) {
|
||||
w.set_selected_text_color_rgb(r, g, b);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_today_color_rgb(int r, int g, int b) override {
|
||||
if constexpr (detail::has_set_today_color_rgb<T>::value) {
|
||||
w.set_today_color_rgb(r, g, b);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_dim_text_color_rgb(int r, int g, int b) override {
|
||||
if constexpr (detail::has_set_dim_text_color_rgb<T>::value) {
|
||||
w.set_dim_text_color_rgb(r, g, b);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_weekends_color_rgb(int r, int g, int b) override {
|
||||
if constexpr (detail::has_set_weekends_color_rgb<T>::value) {
|
||||
w.set_weekends_color_rgb(r, g, b);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_disabled_color_rgb(int r, int g, int b) override {
|
||||
if constexpr (detail::has_set_disabled_color_rgb<T>::value) {
|
||||
w.set_disabled_color_rgb(r, g, b);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_default_color_rgb(int r, int g, int b) override {
|
||||
if constexpr (detail::has_set_default_color_rgb<T>::value) {
|
||||
w.set_default_color_rgb(r, g, b);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_none_color_rgb(int r, int g, int b) override {
|
||||
if constexpr (detail::has_set_none_color_rgb<T>::value) {
|
||||
w.set_none_color_rgb(r, g, b);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_show_text(bool v) override {
|
||||
if constexpr (detail::has_set_show_text<T>::value) {
|
||||
w.set_show_text(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_pulsing(bool v) override {
|
||||
if constexpr (detail::has_set_pulsing<T>::value) {
|
||||
w.set_pulsing(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_inverted(bool v) override {
|
||||
if constexpr (detail::has_set_inverted<T>::value) {
|
||||
w.set_inverted(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_position(double v) override {
|
||||
if constexpr (detail::has_set_position<T>::value) {
|
||||
w.set_position(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_min(double v) override {
|
||||
if constexpr (detail::has_set_min<T>::value) {
|
||||
w.set_min(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_max(double v) override {
|
||||
if constexpr (detail::has_set_max<T>::value) {
|
||||
w.set_max(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_show_week_numbers(bool v) override {
|
||||
if constexpr (detail::has_set_show_week_numbers<T>::value) {
|
||||
w.set_show_week_numbers(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_stretch(bool v) override {
|
||||
if constexpr (detail::has_set_stretch<T>::value) {
|
||||
w.set_stretch(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_proportional(bool v) override {
|
||||
if constexpr (detail::has_set_proportional<T>::value) {
|
||||
w.set_proportional(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_center(bool v) override {
|
||||
if constexpr (detail::has_set_center<T>::value) {
|
||||
w.set_center(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_tab_width(int v) override {
|
||||
if constexpr (detail::has_set_tab_width<T>::value) {
|
||||
w.set_tab_width(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_tab_position(int v) override {
|
||||
if constexpr (detail::has_set_tab_position<T>::value) {
|
||||
w.set_tab_position(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_group_index(int v) override {
|
||||
if constexpr (detail::has_set_group_index<T>::value) {
|
||||
w.set_group_index(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_allow_all_up(bool v) override {
|
||||
if constexpr (detail::has_set_allow_all_up<T>::value) {
|
||||
w.set_allow_all_up(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_flat(bool v) override {
|
||||
if constexpr (detail::has_set_flat<T>::value) {
|
||||
w.set_flat(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_view_style(int v) override {
|
||||
if constexpr (detail::has_set_view_style<T>::value) {
|
||||
w.set_view_style(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_grid_lines(bool v) override {
|
||||
if constexpr (detail::has_set_grid_lines<T>::value) {
|
||||
w.set_grid_lines(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_row_select(bool v) override {
|
||||
if constexpr (detail::has_set_row_select<T>::value) {
|
||||
w.set_row_select(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_sort_type(int v) override {
|
||||
if constexpr (detail::has_set_sort_type<T>::value) {
|
||||
w.set_sort_type(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_indent(int v) override {
|
||||
if constexpr (detail::has_set_indent<T>::value) {
|
||||
w.set_indent(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_show_buttons(bool v) override {
|
||||
if constexpr (detail::has_set_show_buttons<T>::value) {
|
||||
w.set_show_buttons(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_show_lines(bool v) override {
|
||||
if constexpr (detail::has_set_show_lines<T>::value) {
|
||||
w.set_show_lines(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_show_root(bool v) override {
|
||||
if constexpr (detail::has_set_show_root<T>::value) {
|
||||
w.set_show_root(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_min_size(int v) override {
|
||||
if constexpr (detail::has_set_min_size<T>::value) {
|
||||
w.set_min_size(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_resize_style(int v) override {
|
||||
if constexpr (detail::has_set_resize_style<T>::value) {
|
||||
w.set_resize_style(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_auto_snap(bool v) override {
|
||||
if constexpr (detail::has_set_auto_snap<T>::value) {
|
||||
w.set_auto_snap(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_position(int v) override {
|
||||
if constexpr (detail::has_set_position_int<T>::value) {
|
||||
w.set_position(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_size_grip(bool v) override {
|
||||
if constexpr (detail::has_set_size_grip<T>::value) {
|
||||
w.set_size_grip(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_show_captions(bool v) override {
|
||||
if constexpr (detail::has_set_show_captions<T>::value) {
|
||||
w.set_show_captions(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_button_width(int v) override {
|
||||
if constexpr (detail::has_set_button_width<T>::value) {
|
||||
w.set_button_width(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_button_height(int v) override {
|
||||
if constexpr (detail::has_set_button_height<T>::value) {
|
||||
w.set_button_height(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_shape(int v) override {
|
||||
if constexpr (detail::has_set_shape<T>::value) {
|
||||
w.set_shape(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_pen_color(Srgb v) override {
|
||||
if constexpr (detail::has_set_pen_color<T>::value) {
|
||||
w.set_pen_color(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_pen_width(int v) override {
|
||||
if constexpr (detail::has_set_pen_width<T>::value) {
|
||||
w.set_pen_width(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_frozen_cols(int v) override {
|
||||
if constexpr (detail::has_set_frozen_cols<T>::value) {
|
||||
w.set_frozen_cols(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_frozen_rows(int v) override {
|
||||
if constexpr (detail::has_set_frozen_rows<T>::value) {
|
||||
w.set_frozen_rows(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_default_col_width(int v) override {
|
||||
if constexpr (detail::has_set_default_col_width<T>::value) {
|
||||
w.set_default_col_width(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_grid_line_width(int v) override {
|
||||
if constexpr (detail::has_set_grid_line_width<T>::value) {
|
||||
w.set_grid_line_width(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_size(int a, int b) override {
|
||||
if constexpr (detail::has_set_size<T>::value) {
|
||||
w.set_size(a, b);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_inset(int v) override {
|
||||
if constexpr (detail::has_set_inset<T>::value) {
|
||||
w.set_inset(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_top_inset(int v) override {
|
||||
if constexpr (detail::has_set_top_inset<T>::value) {
|
||||
w.set_top_inset(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_header_height(int v) override {
|
||||
if constexpr (detail::has_set_header_height<T>::value) {
|
||||
w.set_header_height(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_headers_visible(bool v) override {
|
||||
if constexpr (detail::has_set_headers_visible<T>::value) {
|
||||
w.set_headers_visible(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_current_page(int v) override {
|
||||
if constexpr (detail::has_set_current_page<T>::value) {
|
||||
w.set_current_page(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_tab_height(int v) override {
|
||||
if constexpr (detail::has_set_tab_height<T>::value) {
|
||||
w.set_tab_height(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_pixel_size(int v) override {
|
||||
if constexpr (detail::has_set_pixel_size<T>::value) {
|
||||
w.set_pixel_size(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_filename(const std::string& v) override {
|
||||
if constexpr (detail::has_set_filename<T>::value) {
|
||||
w.set_filename(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_date(int y, int m, int d) override {
|
||||
if constexpr (detail::has_set_date<T>::value) {
|
||||
w.set_date(y, m, d);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool set_orientation(int v) override {
|
||||
if constexpr (detail::has_set_orientation<T>::value) {
|
||||
w.set_orientation(v);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
std::string get_text() override {
|
||||
if constexpr (detail::has_get_text<T>::value) {
|
||||
return w.get_text();
|
||||
|
||||
Reference in new issue
Block a user