xtd 0.2.0
Loading...
Searching...
No Matches
fourteen_segment_display.h
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 int32 thickness() const noexcept override;
50
52
60 static fourteen_segment_display create(const drawing::point& location);
65 static fourteen_segment_display create(const drawing::point& location, const drawing::size& size);
71 static fourteen_segment_display create(const drawing::point& location, const drawing::size& size, const xtd::string& name);
86 static fourteen_segment_display create(xtd::forms::segments segments, const drawing::point& location, const drawing::size& size);
93 static fourteen_segment_display create(xtd::forms::segments segments, const drawing::point& location, const drawing::size& size, const xtd::string& name);
111 static fourteen_segment_display create(xtd::forms::segments segments, bool show_back_segment, const drawing::point& location, const drawing::size& size);
119 static fourteen_segment_display create(xtd::forms::segments segments, bool show_back_segment, const drawing::point& location, const drawing::size& size, const xtd::string& name);
128 static fourteen_segment_display create(const control& parent, const drawing::point& location);
134 static fourteen_segment_display create(const control& parent, const drawing::point& location, const drawing::size& size);
141 static fourteen_segment_display create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::string& name);
159 static fourteen_segment_display create(const control& parent, xtd::forms::segments segments, const drawing::point& location, const drawing::size& size);
167 static fourteen_segment_display create(const control& parent, xtd::forms::segments segments, const drawing::point& location, const drawing::size& size, const xtd::string& name);
188 static fourteen_segment_display create(const control& parent, xtd::forms::segments segments, bool show_back_segment, const drawing::point& location, const drawing::size& size);
197 static fourteen_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);
199
200 protected:
202
208 xtd::uptr<xtd::object> clone() const override;
209
210 void draw_back_digit(drawing::graphics& graphics) override;
211
212 void draw_segment_g(drawing::graphics& graphics, const drawing::color& color) override;
213
217 virtual void draw_segment_g1(drawing::graphics& graphics, const drawing::color& color);
218
222 virtual void draw_segment_g2(drawing::graphics& graphics, const drawing::color& color);
223
227 virtual void draw_segment_h(drawing::graphics& graphics, const drawing::color& color);
228
232 virtual void draw_segment_i(drawing::graphics& graphics, const drawing::color& color);
233
237 virtual void draw_segment_j(drawing::graphics& graphics, const drawing::color& color);
238
242 virtual void draw_segment_k(drawing::graphics& graphics, const drawing::color& color);
243
247 virtual void draw_segment_l(drawing::graphics& graphics, const drawing::color& color);
248
252 virtual void draw_segment_m(drawing::graphics& graphics, const drawing::color& color);
253
254 void on_paint(paint_event_args& e) override;
256
257 private:
258 xtd::sptr<data> data_;
259 };
260 }
261}
Defines the base class for controls, which are components with visual representation.
Definition control.h:81
virtual drawing::point location() const noexcept
Gets the coordinates of the upper-left corner of the control relative to the upper-left corner of its...
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
virtual void draw_segment_l(drawing::graphics &graphics, const drawing::color &color)
Draw segment l on specified graphics with specified color.
fourteen_segment_display()
Initialize a new instance of fourteen_segment_display class.
void draw_back_digit(drawing::graphics &graphics) override
Draw all background digit on specified graphics.
static fourteen_segment_display create()
A factory to create an xtd::forms::fourteen_segment_display.
virtual void draw_segment_k(drawing::graphics &graphics, const drawing::color &color)
Draw segment k on specified graphics with specified color.
virtual void draw_segment_h(drawing::graphics &graphics, const drawing::color &color)
Draw segment h on specified graphics with specified color.
int32 thickness() const noexcept override
Sets thickness of segment.
virtual void draw_segment_m(drawing::graphics &graphics, const drawing::color &color)
Draw segment m 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_g2(drawing::graphics &graphics, const drawing::color &color)
Draw segment g2 on specified graphics with specified color.
virtual void draw_segment_i(drawing::graphics &graphics, const drawing::color &color)
Draw segment ion specified graphics with specified color.
virtual void draw_segment_j(drawing::graphics &graphics, const drawing::color &color)
Draw segment j on specified graphics with specified color.
virtual void draw_segment_g1(drawing::graphics &graphics, const drawing::color &color)
Draw segment g1 on specified graphics with specified color.
void on_paint(paint_event_args &e) override
Raises the xtd::forms::control::paint event.
void draw_segment_g(drawing::graphics &graphics, const drawing::color &color) override
Draw segment g on specified graphics with specified color.
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.
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.
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::seven_segment_display control.