xtd 0.2.0
scroll_bar.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "control.hpp"
6
8namespace xtd {
10 namespace forms {
22 struct data;
23
24 public:
26
34 virtual int32 large_change() const noexcept;
41 virtual scroll_bar& large_change(int32 large_change);
42
47 virtual int32 maximum() const noexcept;
52 virtual scroll_bar& maximum(int32 maximum);
53
56 virtual int32 minimum() const noexcept;
59 virtual scroll_bar& minimum(int32 minimum);
60
66 virtual int32 small_change() const noexcept;
72 virtual scroll_bar& small_change(int32 small_change);
73
77 virtual int32 value() const noexcept;
81 virtual scroll_bar& value(int32 value);
83
85
90
95
96 protected:
98
102 explicit scroll_bar(bool vertical);
104
106
108 xtd::forms::create_params create_params() const noexcept override;
110
112
114 void on_handle_created(const event_args& e) override;
115
122 virtual void on_scroll(const event_args& e);
123
130 virtual void on_value_changed(const event_args& e);
131
135 void wnd_proc(message& message) override;
137
138 private:
139 void wm_scroll_control(message& message);
140
141 xtd::sptr<data> data_;
142 };
143 }
144}
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
Represents a standard Windows scroll bar.
Definition scroll_bar.hpp:21
virtual int32 large_change() const noexcept
Gets a value to be added to or subtracted from the xtd::forms::scroll_bar::value property when the sc...
The xtd::shared_ptr_object is a shared pointer as std::shared_ptr.
Definition shared_ptr_object.hpp:30
generic_event_handler< const xtd::event_args & > event_handler
Represents the method that will handle an event that has no event data.
Definition event_handler.hpp:24
#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
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
Implements a Windows message.
Definition message.hpp:33
Contains xtd::forms::style_sheets::control class.