xtd 0.2.0
Loading...
Searching...
No Matches
track_bar.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "control.hpp"
6#include "orientation.hpp"
7#include "tick_style.hpp"
8
10namespace xtd {
12 namespace forms {
35 struct data;
36
37 public:
39
45
47
52 virtual int32 large_change() const noexcept;
57 virtual track_bar& large_change(int32 large_change);
58
61 virtual int32 maximum() const noexcept;
66 virtual track_bar& maximum(int32 maximum);
67
70 virtual int32 minimum() const noexcept;
75 virtual track_bar& minimum(int32 minimum);
76
79 virtual forms::orientation orientation() const noexcept;
85
90 virtual int32 small_change() const noexcept;
96 virtual track_bar& small_change(int32 small_change);
97
101 virtual int32 tick_frequency() const noexcept;
106 virtual track_bar& tick_frequency(int32 tick_frequency);
107
111 virtual forms::tick_style tick_style() const noexcept;
117
121 virtual int32 value() const noexcept;
126 virtual track_bar& value(int32 value);
128
130
136 void set_range(int32 min_value, int32 max_value);
137
141 xtd::string to_string() const noexcept override;
143
145
149 static track_bar create();
153 static track_bar create(const drawing::point& location);
158 static track_bar create(const drawing::point& location, const drawing::size& size);
164 static track_bar create(const drawing::point& location, const drawing::size& size, const xtd::string& name);
168 static track_bar create(int32 value);
173 static track_bar create(int32 value, const drawing::point& location);
179 static track_bar create(int32 value, const drawing::point& location, const drawing::size& size);
186 static track_bar create(int32 value, const drawing::point& location, const drawing::size& size, const xtd::string& name);
191 static track_bar create(int32 value, int32 maximum);
197 static track_bar create(int32 value, int32 maximum, const drawing::point& location);
204 static track_bar create(int32 value, int32 maximum, const drawing::point& location, const drawing::size& size);
212 static track_bar create(int32 value, int32 maximum, const drawing::point& location, const drawing::size& size, const xtd::string& name);
218 static track_bar create(int32 value, int32 minimum, int32 maximum);
225 static track_bar create(int32 value, int32 minimum, int32 maximum, const drawing::point& location);
233 static track_bar create(int32 value, int32 minimum, int32 maximum, const drawing::point& location, const drawing::size& size);
242 static track_bar create(int32 value, int32 minimum, int32 maximum, const drawing::point& location, const drawing::size& size, const xtd::string& name);
246 static track_bar create(const control& parent);
251 static track_bar create(const control& parent, const drawing::point& location);
257 static track_bar create(const control& parent, const drawing::point& location, const drawing::size& size);
264 static track_bar create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::string& name);
269 static track_bar create(const control& parent, int32 value);
275 static track_bar create(const control& parent, int32 value, const drawing::point& location);
282 static track_bar create(const control& parent, int32 value, const drawing::point& location, const drawing::size& size);
290 static track_bar create(const control& parent, int32 value, const drawing::point& location, const drawing::size& size, const xtd::string& name);
296 static track_bar create(const control& parent, int32 value, int32 maximum);
303 static track_bar create(const control& parent, int32 value, int32 maximum, const drawing::point& location);
311 static track_bar create(const control& parent, int32 value, int32 maximum, const drawing::point& location, const drawing::size& size);
320 static track_bar create(const control& parent, int32 value, int32 maximum, const drawing::point& location, const drawing::size& size, const xtd::string& name);
327 static track_bar create(const control& parent, int32 value, int32 minimum, int32 maximum);
335 static track_bar create(const control& parent, int32 value, int32 minimum, int32 maximum, const drawing::point& location);
344 static track_bar create(const control& parent, int32 value, int32 minimum, int32 maximum, const drawing::point& location, const drawing::size& size);
354 static track_bar create(const control& parent, int32 value, int32 minimum, int32 maximum, const drawing::point& location, const drawing::size& size, const xtd::string& name);
356
358
363
368
369 protected:
371
375 forms::create_params create_params() const noexcept override;
376
377 drawing::size default_size() const noexcept override;
379
381
387 xtd::uptr<xtd::object> clone() const override;
388
391 void on_handle_created(const event_args& e) override;
392
400 virtual void on_scroll(const event_args& e);
401
404 virtual void on_value_changed(const event_args& e);
405
412 void set_bounds_core(int32 x, int32 y, int32 width, int32 height, bounds_specified specified) override;
413
417 void set_client_size_core(int32 width, int32 height) override;
418
422 void wnd_proc(message& message) override;
424
425 private:
426 void wm_scroll_control(message& message);
427
428 xtd::sptr<data> data_;
429 };
430 }
431}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
Represents an event.
Definition event.hpp:21
Defines the base class for controls, which are components with visual representation.
Definition control.hpp:81
Encapsulates the information needed when creating a control.
Definition create_params.hpp:29
Implements a Windows message.
Definition message.hpp:28
Represents a standard Windows track bar.
Definition track_bar.hpp:34
virtual int32 large_change() const noexcept
Gets a value to be added to or subtracted from the value property when the scroll box is moved a larg...
track_bar()
Initializes a new instance of the track_bar class.
generic_event_handler<> event_handler
Represents the method that will handle an event that has no event data.
Definition event_handler.hpp:32
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
bounds_specified
Specifies the bounds of the control to use when defining a control's size and position....
Definition bounds_specified.hpp:22
tick_style
Specifies the location of tick marks in a track_bar control.
Definition tick_style.hpp:22
orientation
Specifies the orientation of controls or elements of controls.
Definition orientation.hpp:22
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::forms::orientation enum class.
Contains xtd::forms::style_sheets::control class.
Contains xtd::forms::tick_style enum class.