xtd 0.2.0
Loading...
Searching...
No Matches
sixteen_segment_display.h
Go to the documentation of this file.
1
4#pragma once
6
7namespace xtd {
8 namespace forms {
28 struct data;
29 public:
31
36
38
43 int32 thickness() const noexcept override;
49
51
59 static sixteen_segment_display create(const drawing::point& location);
64 static sixteen_segment_display create(const drawing::point& location, const drawing::size& size);
70 static sixteen_segment_display create(const drawing::point& location, const drawing::size& size, const xtd::string& name);
85 static sixteen_segment_display create(xtd::forms::segments segments, const drawing::point& location, const drawing::size& size);
92 static sixteen_segment_display create(xtd::forms::segments segments, const drawing::point& location, const drawing::size& size, const xtd::string& name);
110 static sixteen_segment_display create(xtd::forms::segments segments, bool show_back_segment, const drawing::point& location, const drawing::size& size);
118 static sixteen_segment_display create(xtd::forms::segments segments, bool show_back_segment, const drawing::point& location, const drawing::size& size, const xtd::string& name);
127 static sixteen_segment_display create(const control& parent, const drawing::point& location);
133 static sixteen_segment_display create(const control& parent, const drawing::point& location, const drawing::size& size);
140 static sixteen_segment_display create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::string& name);
158 static sixteen_segment_display create(const control& parent, xtd::forms::segments segments, const drawing::point& location, const drawing::size& size);
166 static sixteen_segment_display create(const control& parent, xtd::forms::segments segments, const drawing::point& location, const drawing::size& size, const xtd::string& name);
187 static sixteen_segment_display create(const control& parent, xtd::forms::segments segments, bool show_back_segment, const drawing::point& location, const drawing::size& size);
196 static sixteen_segment_display create(const control& parent, xtd::forms::segments segments, bool show_back_segment, const drawing::point& location, const drawing::size& size, const xtd::string& name);
198
199 protected:
201
207 xtd::uptr<xtd::object> clone() const override;
208
209 void draw_back_digit(drawing::graphics& graphics) override;
210
211 void draw_segment_a(drawing::graphics& graphics, const drawing::color& color) override;
212
216 virtual void draw_segment_a1(drawing::graphics& graphics, const drawing::color& color);
217
221 virtual void draw_segment_a2(drawing::graphics& graphics, const drawing::color& color);
222
223 void draw_segment_d(drawing::graphics& graphics, const drawing::color& color) override;
224
228 virtual void draw_segment_d1(drawing::graphics& graphics, const drawing::color& color);
229
233 virtual void draw_segment_d2(drawing::graphics& graphics, const drawing::color& color);
234
238 void draw_segment_i(drawing::graphics& graphics, const drawing::color& color) override;
239
243 void draw_segment_l(drawing::graphics& graphics, const drawing::color& color) override;
244
245 void on_paint(paint_event_args& e) override;
247
248 private:
249 xtd::sptr<data> data_;
250 };
251 }
252}
Defines the base class for controls, which are components with visual representation.
Definition control.h:81
virtual const xtd::string & name() const noexcept
Gets the name of the control.
virtual std::optional< control_ref > parent() const noexcept
Gets the parent container of the control.
Represents a nine segment display class.
Definition fourteen_segment_display.h:27
Provides data for the xtd::forms::control::paint event.
Definition paint_event_args.h:30
Represents a seven segment display class.
Definition seven_segment_display.h:32
virtual bool show_back_segment() const noexcept
Gets a value indicate if background segments are shown.
virtual forms::segments value() const noexcept
Gets seven_segment_display value.
Represents a sixteen segment display class.
Definition sixteen_segment_display.h:27
void draw_back_digit(drawing::graphics &graphics) override
Draw all background digit on specified graphics.
sixteen_segment_display()
Initialize a new instance of sixteen_segment_display class.
void draw_segment_i(drawing::graphics &graphics, const drawing::color &color) override
Draw segment i on specified graphics with specified color.
void on_paint(paint_event_args &e) override
Raises the xtd::forms::control::paint event.
virtual void draw_segment_a1(drawing::graphics &graphics, const drawing::color &color)
Draw segment a1 on specified graphics with specified color.
int32 thickness() const noexcept override
Sets thickness of segment.
void draw_segment_l(drawing::graphics &graphics, const drawing::color &color) override
Draw segment l on specified graphics with specified color.
xtd::uptr< xtd::object > clone() const override
Creates a new object that is a copy of the current instance.
virtual void draw_segment_a2(drawing::graphics &graphics, const drawing::color &color)
Draw segment a2 on specified graphics with specified color.
static sixteen_segment_display create()
A factory to create an xtd::forms::sixteen_segment_display.
void draw_segment_d(drawing::graphics &graphics, const drawing::color &color) override
Draw segment d on specified graphics with specified color.
virtual void draw_segment_d1(drawing::graphics &graphics, const drawing::color &color)
Draw segment d1 on specified graphics with specified color.
virtual void draw_segment_d2(drawing::graphics &graphics, const drawing::color &color)
Draw segment d2 on specified graphics with specified color.
void draw_segment_a(drawing::graphics &graphics, const drawing::color &color) override
Draw segment a on specified graphics with specified color.
Contains xtd::forms::fourteen_segment_display control.
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.h:25
size_t size
Represents a size of any object in bytes.
Definition size.h:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.h:25
segments
Specifies how a control anchors to the edges of its container.
Definition segments.h:23
@ e
The E key.
@ location
Specifies that both the x and y coordinates of the control are defined.
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