xtd 0.2.0
Loading...
Searching...
No Matches
progress_bar.h
Go to the documentation of this file.
1
4#pragma once
5#include "control.h"
6#include "orientation.h"
8
10namespace xtd {
12 namespace forms {
41 struct data;
42
43 public:
45
51
53
59 virtual size_t marquee_animation_speed() const noexcept;
64 virtual progress_bar& marquee_animation_speed(size_t marquee_animation_speed);
65
70 virtual int32 maximum() const noexcept;
75 virtual progress_bar& maximum(int32 maximum);
76
80 virtual int32 minimum() const noexcept;
84 virtual progress_bar& minimum(int32 minimum);
85
89 virtual forms::orientation orientation() const noexcept;
94
98 virtual int32 step() const noexcept;
102 virtual progress_bar& step(int32 step);
103
107 virtual progress_bar_style style() const noexcept;
111 virtual progress_bar& style(progress_bar_style style);
112
118 virtual int32 value() const noexcept;
124 virtual progress_bar& value(int32 value);
126
128
134 void increment(int32 value);
135
138 void perform_step();
139
144 void set_range(int32 min_value, int32 max_value);
145
149 xtd::string to_string() const noexcept override;
151
153
157 static progress_bar create();
161 static progress_bar create(const drawing::point& location);
166 static progress_bar create(const drawing::point& location, const drawing::size& size);
172 static progress_bar create(const drawing::point& location, const drawing::size& size, const xtd::string& name);
176 static progress_bar create(int32 value);
181 static progress_bar create(int32 value, const drawing::point& location);
187 static progress_bar create(int32 value, const drawing::point& location, const drawing::size& size);
194 static progress_bar create(int32 value, const drawing::point& location, const drawing::size& size, const xtd::string& name);
199 static progress_bar create(int32 value, int32 maximum);
205 static progress_bar create(int32 value, int32 maximum, const drawing::point& location);
212 static progress_bar create(int32 value, int32 maximum, const drawing::point& location, const drawing::size& size);
220 static progress_bar create(int32 value, int32 maximum, const drawing::point& location, const drawing::size& size, const xtd::string& name);
226 static progress_bar create(int32 value, int32 minimum, int32 maximum);
233 static progress_bar create(int32 value, int32 minimum, int32 maximum, const drawing::point& location);
241 static progress_bar create(int32 value, int32 minimum, int32 maximum, const drawing::point& location, const drawing::size& size);
250 static progress_bar create(int32 value, int32 minimum, int32 maximum, const drawing::point& location, const drawing::size& size, const xtd::string& name);
254 static progress_bar create(const control& parent);
259 static progress_bar create(const control& parent, const drawing::point& location);
265 static progress_bar create(const control& parent, const drawing::point& location, const drawing::size& size);
272 static progress_bar create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::string& name);
277 static progress_bar create(const control& parent, int32 value);
283 static progress_bar create(const control& parent, int32 value, const drawing::point& location);
290 static progress_bar create(const control& parent, int32 value, const drawing::point& location, const drawing::size& size);
298 static progress_bar create(const control& parent, int32 value, const drawing::point& location, const drawing::size& size, const xtd::string& name);
304 static progress_bar create(const control& parent, int32 value, int32 maximum);
311 static progress_bar create(const control& parent, int32 value, int32 maximum, const drawing::point& location);
319 static progress_bar create(const control& parent, int32 value, int32 maximum, const drawing::point& location, const drawing::size& size);
328 static progress_bar create(const control& parent, int32 value, int32 maximum, const drawing::point& location, const drawing::size& size, const xtd::string& name);
335 static progress_bar create(const control& parent, int32 value, int32 minimum, int32 maximum);
343 static progress_bar create(const control& parent, int32 value, int32 minimum, int32 maximum, const drawing::point& location);
352 static progress_bar create(const control& parent, int32 value, int32 minimum, int32 maximum, const drawing::point& location, const drawing::size& size);
362 static progress_bar create(const control& parent, int32 value, int32 minimum, int32 maximum, const drawing::point& location, const drawing::size& size, const xtd::string& name);
364
365 protected:
367
371 forms::create_params create_params() const noexcept override;
372
373 drawing::size default_size() const noexcept override;
375
377
383 xtd::uptr<xtd::object> clone() const override;
384
387 void on_handle_created(const event_args& e) override;
389
390 private:
391 xtd::sptr<data> data_;
392 };
393 }
394}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Defines the base class for controls, which are components with visual representation.
Definition control.h:81
Encapsulates the information needed when creating a control.
Definition create_params.h:29
Represents a Windows progress bar control.
Definition progress_bar.h:40
progress_bar()
Initializes a new instance of the progress_bar class.
virtual size_t marquee_animation_speed() const noexcept
Gets he time period, in milliseconds, that it takes the progress block to scroll across the progress ...
#define forms_export_
Define shared library export.
Definition forms_export.h:13
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
orientation
Specifies the orientation of controls or elements of controls.
Definition orientation.h:22
progress_bar_style
Specifies the progress_bar_style of controls or elements of controls.
Definition progress_bar_style.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::orientation enum class.
Contains xtd::forms::progress_bar_style enum class.
Contains xtd::forms::style_sheets::control class.