xtd 0.2.0
Loading...
Searching...
No Matches
tool_bar_button_renderer.h
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.h"
6#include "box_renderer.h"
8#include "flat_style.h"
9#include "text_renderer.h"
11#include <xtd/drawing/color>
12#include <xtd/drawing/font>
13#include <xtd/drawing/graphics>
14#include <xtd/drawing/image>
15#include <xtd/drawing/rectangle>
16#include <xtd/optional>
17
20#include "text_format_flags.h"
21#include <xtd/drawing/system_fonts>
22
24namespace xtd {
26 namespace forms {
43 public:
45
61 static void draw_tool_bar_button(const style_sheets::style_sheet& style_sheet, xtd::drawing::graphics& graphics, const xtd::drawing::rectangle& bounds, xtd::forms::visual_styles::push_button_state button_state, const std::optional<xtd::drawing::color>& back_color, const flat_button_appearance& appearance, const xtd::string& text, const std::optional<xtd::forms::content_alignment>& text_align, const std::optional<xtd::drawing::color>& fore_color, const std::optional<xtd::drawing::font>& font, const xtd::drawing::image& image, const std::optional<xtd::forms::content_alignment>& image_align);
63 };
64 }
65}
Contains xtd::forms::box_renderer static class.
Represents text as a sequence of character units.
Definition basic_string.h:79
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.h:70
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.h:49
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.h:44
Provides properties that specify the appearance of xtd::forms::button controls whose xtd::forms::flat...
Definition flat_button_appearance.h:24
The xtd::forms::style_sheets::style_sheet allows you to specify an xtd style sheet.
Definition style_sheet.h:64
Provides tool bar button renderer methods.
Definition tool_bar_button_renderer.h:42
static void draw_tool_bar_button(const style_sheets::style_sheet &style_sheet, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::push_button_state button_state, const std::optional< xtd::drawing::color > &back_color, const flat_button_appearance &appearance, const xtd::string &text, const std::optional< xtd::forms::content_alignment > &text_align, const std::optional< xtd::drawing::color > &fore_color, const std::optional< xtd::drawing::font > &font, const xtd::drawing::image &image, const std::optional< xtd::forms::content_alignment > &image_align)
Draws a tool bar button in the specified bounds, button style, button state, background color,...
Contains xtd::forms::flat_button_appearance class.
Contains xtd::forms::flat_style enum class.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
#define forms_export_
Define shared library export.
Definition forms_export.h:13
button_state
Specifies the appearance of a button.
Definition button_state.h:23
push_button_state
Specifies the visual state of a button that is drawn with visual styles.
Definition push_button_state.h:24
appearance
Specifies the appearance of a control.
Definition appearance.h:22
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::forms::visual_styles::push_button_state enum class.
Contains xtd::forms::text_format_flags enum class.
Contains xtd::forms::text_renderer static class.