xtd 0.2.0
Loading...
Searching...
No Matches
up_down_button.h
Go to the documentation of this file.
1
4#pragma once
5#include "button_base.h"
6#include "orientation.h"
7
9namespace xtd {
11 namespace forms {
36 struct data;
37
38 public:
40
45
47
52 virtual int32 maximum() const noexcept;
57 virtual up_down_button& maximum(int32 value);
58
62 virtual int32 minimum() const noexcept;
67 virtual up_down_button& minimum(int32 value);
68
71 virtual forms::orientation orientation() const noexcept;
76
80 virtual int32 value() const noexcept;
85 virtual up_down_button& value(int32 value);
86
89 virtual bool wrapped() const noexcept;
93 virtual up_down_button& wrapped(bool value);
95
97
103 void set_range(int32 min_value, int32 max_value);
104
108 xtd::string to_string() const noexcept override;
110
112
116 static up_down_button create();
120 static up_down_button create(const drawing::point& location);
125 static up_down_button create(const drawing::point& location, const drawing::size& size);
131 static up_down_button create(const drawing::point& location, const drawing::size& size, const xtd::string& name);
135 static up_down_button create(int32 value);
140 static up_down_button create(int32 value, const drawing::point& location);
146 static up_down_button create(int32 value, const drawing::point& location, const drawing::size& size);
153 static up_down_button create(int32 value, const drawing::point& location, const drawing::size& size, const xtd::string& name);
158 static up_down_button create(int32 value, int32 maximum);
164 static up_down_button create(int32 value, int32 maximum, const drawing::point& location);
171 static up_down_button create(int32 value, int32 maximum, const drawing::point& location, const drawing::size& size);
179 static up_down_button create(int32 value, int32 maximum, const drawing::point& location, const drawing::size& size, const xtd::string& name);
185 static up_down_button create(int32 value, int32 minimum, int32 maximum);
192 static up_down_button create(int32 value, int32 minimum, int32 maximum, const drawing::point& location);
200 static up_down_button create(int32 value, int32 minimum, int32 maximum, const drawing::point& location, const drawing::size& size);
209 static up_down_button create(int32 value, int32 minimum, int32 maximum, const drawing::point& location, const drawing::size& size, const xtd::string& name);
213 static up_down_button create(const control& parent);
218 static up_down_button create(const control& parent, const drawing::point& location);
224 static up_down_button create(const control& parent, const drawing::point& location, const drawing::size& size);
231 static up_down_button create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::string& name);
236 static up_down_button create(const control& parent, int32 value);
242 static up_down_button create(const control& parent, int32 value, const drawing::point& location);
249 static up_down_button create(const control& parent, int32 value, const drawing::point& location, const drawing::size& size);
257 static up_down_button create(const control& parent, int32 value, const drawing::point& location, const drawing::size& size, const xtd::string& name);
263 static up_down_button create(const control& parent, int32 value, int32 maximum);
270 static up_down_button create(const control& parent, int32 value, int32 maximum, const drawing::point& location);
278 static up_down_button create(const control& parent, int32 value, int32 maximum, const drawing::point& location, const drawing::size& size);
287 static up_down_button create(const control& parent, int32 value, int32 maximum, const drawing::point& location, const drawing::size& size, const xtd::string& name);
294 static up_down_button create(const control& parent, int32 value, int32 minimum, int32 maximum);
302 static up_down_button create(const control& parent, int32 value, int32 minimum, int32 maximum, const drawing::point& location);
311 static up_down_button create(const control& parent, int32 value, int32 minimum, int32 maximum, const drawing::point& location, const drawing::size& size);
321 static up_down_button create(const control& parent, int32 value, int32 minimum, int32 maximum, const drawing::point& location, const drawing::size& size, const xtd::string& name);
323
325
330
335
336 protected:
337
339
341 forms::create_params create_params() const noexcept override;
343
345
351 xtd::uptr<xtd::object> clone() const override;
352
355 void on_handle_created(const event_args& e) override;
356
364 virtual void on_scroll(const event_args& e);
365
368 virtual void on_value_changed(const event_args& e);
369
373 void wnd_proc(message& message) override;
375
376 private:
377 void wm_scroll_control(message& message);
378
379 xtd::sptr<data> data_;
380 };
381 }
382}
Contains xtd::forms::button_base class.
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Represents an event.
Definition event.h:21
Implements the basic functionality common to button controls.
Definition button_base.h:37
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
Implements a Windows message.
Definition message.h:28
Represents a standard Windows up down button.
Definition up_down_button.h:35
virtual int32 maximum() const noexcept
Gets the maximum value for the up_down_button control.
up_down_button()
Initializes a new instance of up_down_button class.
generic_event_handler<> event_handler
Represents the method that will handle an event that has no event data.
Definition event_handler.h:32
#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
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.