xtd 0.2.0
Loading...
Searching...
No Matches
scroll_bar.h
Go to the documentation of this file.
1
4#pragma once
5#include "control.h"
6
8namespace xtd {
10 namespace forms {
20 struct data;
21
22 public:
24
32 virtual int32 large_change() const noexcept;
39 virtual scroll_bar& large_change(int32 large_change);
40
45 virtual int32 maximum() const noexcept;
50 virtual scroll_bar& maximum(int32 maximum);
51
54 virtual int32 minimum() const noexcept;
57 virtual scroll_bar& minimum(int32 minimum);
58
64 virtual int32 small_change() const noexcept;
70 virtual scroll_bar& small_change(int32 small_change);
71
75 virtual int32 value() const noexcept;
79 virtual scroll_bar& value(int32 value);
81
83
88
93
94 protected:
96
100 explicit scroll_bar(bool vertical);
102
104
106 xtd::forms::create_params create_params() const noexcept override;
108
110
112 void on_handle_created(const event_args& e) override;
113
120 virtual void on_scroll(const event_args& e);
121
128 virtual void on_value_changed(const event_args& e);
129
133 void wnd_proc(message& message) override;
135
136 private:
137 void wm_scroll_control(message& message);
138
139 std::shared_ptr<data> data_;
140 };
141 }
142}
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
Defines the base class for controls, which are components with visual representation.
Definition control.h:79
Encapsulates the information needed when creating a control.
Definition create_params.h:27
Implements a Windows message.
Definition message.h:26
Represents a standard Windows scroll bar.
Definition scroll_bar.h:19
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...
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
int_least32_t int32
Represents a 32-bit signed integer.
Definition types.h:131
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::style_sheets::control class.