xtd 1.0.0
Loading...
Searching...
No Matches
fourteen_segment_display.hpp
Go to the documentation of this file.
1
4#pragma once
6
7namespace xtd {
8 namespace forms {
28 struct data;
29
30 public:
32
37
39
44 [[nodiscard]] auto thickness() const noexcept -> xtd::int32 override;
50
52
56 [[nodiscard]] static auto create() -> fourteen_segment_display;
60 [[nodiscard]] static auto create(const xtd::drawing::point& location) -> fourteen_segment_display;
65 [[nodiscard]] static auto create(const xtd::drawing::point& location, const xtd::drawing::size& size) -> fourteen_segment_display;
71 [[nodiscard]] static auto create(const xtd::drawing::point& location, const xtd::drawing::size& size, const xtd::string& name) -> fourteen_segment_display;
75 [[nodiscard]] static auto create(xtd::forms::segments segments) -> fourteen_segment_display;
80 [[nodiscard]] static auto create(xtd::forms::segments segments, const xtd::drawing::point& location) -> fourteen_segment_display;
86 [[nodiscard]] static auto create(xtd::forms::segments segments, const xtd::drawing::point& location, const xtd::drawing::size& size) -> fourteen_segment_display;
93 [[nodiscard]] static auto create(xtd::forms::segments segments, const xtd::drawing::point& location, const xtd::drawing::size& size, const xtd::string& name) -> fourteen_segment_display;
104 [[nodiscard]] static auto create(xtd::forms::segments segments, bool show_back_segment, const xtd::drawing::point& location) -> fourteen_segment_display;
111 [[nodiscard]] static auto create(xtd::forms::segments segments, bool show_back_segment, const xtd::drawing::point& location, const xtd::drawing::size& size) -> fourteen_segment_display;
119 [[nodiscard]] static auto create(xtd::forms::segments segments, bool show_back_segment, const xtd::drawing::point& location, const xtd::drawing::size& size, const xtd::string& name) -> fourteen_segment_display;
123 [[nodiscard]] static auto create(const control& parent) -> fourteen_segment_display;
128 [[nodiscard]] static auto create(const control& parent, const xtd::drawing::point& location) -> fourteen_segment_display;
134 [[nodiscard]] static auto create(const control& parent, const xtd::drawing::point& location, const xtd::drawing::size& size) -> fourteen_segment_display;
141 [[nodiscard]] static auto create(const control& parent, const xtd::drawing::point& location, const xtd::drawing::size& size, const xtd::string& name) -> fourteen_segment_display;
146 [[nodiscard]] static auto create(const control& parent, xtd::forms::segments segments) -> fourteen_segment_display;
152 [[nodiscard]] static auto create(const control& parent, xtd::forms::segments segments, const xtd::drawing::point& location) -> fourteen_segment_display;
159 [[nodiscard]] static auto create(const control& parent, xtd::forms::segments segments, const xtd::drawing::point& location, const xtd::drawing::size& size) -> fourteen_segment_display;
167 [[nodiscard]] static auto create(const control& parent, xtd::forms::segments segments, const xtd::drawing::point& location, const xtd::drawing::size& size, const xtd::string& name) -> fourteen_segment_display;
180 [[nodiscard]] static auto create(const control& parent, xtd::forms::segments segments, bool show_back_segment, const xtd::drawing::point& location) -> fourteen_segment_display;
188 [[nodiscard]] static auto create(const control& parent, xtd::forms::segments segments, bool show_back_segment, const xtd::drawing::point& location, const xtd::drawing::size& size) -> fourteen_segment_display;
197 [[nodiscard]] static auto create(const control& parent, xtd::forms::segments segments, bool show_back_segment, const xtd::drawing::point& location, const xtd::drawing::size& size, const xtd::string& name) -> fourteen_segment_display;
199
200 protected:
202
204 auto draw_back_digit(drawing::graphics& graphics) -> void override;
205
206 auto draw_segment_g(drawing::graphics& graphics, const xtd::drawing::color& color)-> void override;
207
211 virtual auto draw_segment_g1(drawing::graphics& graphics, const xtd::drawing::color& color)-> void;
212
216 virtual auto draw_segment_g2(drawing::graphics& graphics, const xtd::drawing::color& color)-> void;
217
221 virtual auto draw_segment_h(drawing::graphics& graphics, const xtd::drawing::color& color)-> void;
222
226 virtual auto draw_segment_i(drawing::graphics& graphics, const xtd::drawing::color& color)-> void;
227
231 virtual auto draw_segment_j(drawing::graphics& graphics, const xtd::drawing::color& color)-> void;
232
236 virtual auto draw_segment_k(drawing::graphics& graphics, const xtd::drawing::color& color)-> void;
237
241 virtual auto draw_segment_l(drawing::graphics& graphics, const xtd::drawing::color& color)-> void;
242
246 virtual auto draw_segment_m(drawing::graphics& graphics, const xtd::drawing::color& color)-> void;
247
248 auto on_paint(paint_event_args& e) -> void override;
250
251 private:
252 xtd::sptr<data> data_;
253 };
254 }
255}
Defines the base class for controls, which are components with visual representation.
Definition control.hpp:81
virtual auto size() const noexcept -> xtd::drawing::size
Gets the height and width of the control.
virtual auto parent() const noexcept -> std::optional< xtd::forms::control_ref >
Gets the parent container of the control.
virtual auto name() const noexcept -> const xtd::string &
Gets the name of the control.
virtual auto location() const noexcept -> xtd::drawing::point
Gets the coordinates of the upper-left corner of the control relative to the upper-left corner of its...
fourteen_segment_display()
Initialize a new instance of fourteen_segment_display class.
virtual auto draw_segment_g1(drawing::graphics &graphics, const xtd::drawing::color &color) -> void
Draw segment g1 on specified graphics with specified color.
static auto create() -> fourteen_segment_display
A factory to create an xtd::forms::fourteen_segment_display.
virtual auto draw_segment_l(drawing::graphics &graphics, const xtd::drawing::color &color) -> void
Draw segment l on specified graphics with specified color.
auto on_paint(paint_event_args &e) -> void override
Raises the xtd::forms::control::paint event.
auto draw_back_digit(drawing::graphics &graphics) -> void override
Draw all background digit on specified graphics.
auto draw_segment_g(drawing::graphics &graphics, const xtd::drawing::color &color) -> void override
Draw segment g on specified graphics with specified color.
virtual auto draw_segment_k(drawing::graphics &graphics, const xtd::drawing::color &color) -> void
Draw segment k on specified graphics with specified color.
virtual auto draw_segment_i(drawing::graphics &graphics, const xtd::drawing::color &color) -> void
Draw segment ion specified graphics with specified color.
virtual auto draw_segment_m(drawing::graphics &graphics, const xtd::drawing::color &color) -> void
Draw segment m on specified graphics with specified color.
virtual auto draw_segment_h(drawing::graphics &graphics, const xtd::drawing::color &color) -> void
Draw segment h on specified graphics with specified color.
virtual auto draw_segment_j(drawing::graphics &graphics, const xtd::drawing::color &color) -> void
Draw segment j on specified graphics with specified color.
auto thickness() const noexcept -> xtd::int32 override
Sets thickness of segment.
virtual auto draw_segment_g2(drawing::graphics &graphics, const xtd::drawing::color &color) -> void
Draw segment g2 on specified graphics with specified color.
Provides data for the xtd::forms::control::paint event.
Definition paint_event_args.hpp:26
virtual auto show_back_segment() const noexcept -> bool
Gets a value indicate if background segments are shown.
seven_segment_display()
Initialize a new instance of seven_segment_display class.
virtual auto value() const noexcept -> xtd::forms::segments
Gets seven_segment_display value.
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
segments
Specifies how a control anchors to the edges of its container.
Definition segments.hpp:23
@ e
The E key.
Definition keys.hpp:207
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr auto data() const noexcept -> const_pointer
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:197
Contains xtd::forms::seven_segment_display control.