xtd 0.2.0
scroll_bar.h
Go to the documentation of this file.
1 #pragma once
5 #include "control.h"
6 
8 namespace xtd {
10  namespace forms {
19  class forms_export_ scroll_bar : public control {
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 a standard Windows scroll bar.
Definition: scroll_bar.h:19
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Encapsulates the information needed when creating a control.
Definition: create_params.h:27
Represents an event.
Definition: event.h:21
The system-defined color of the background of a scroll bar.
Implements a Windows message.
Definition: message.h:26
Defines the base class for controls, which are components with visual representation.
Definition: control.h:78
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
Contains xtd::forms::control control.
event< scroll_bar, event_handler > value_changed
Occurs when the xtd::forms::scroll_bar::value property is changed, either by a xtd::forms::scroll_bar...
Definition: scroll_bar.h:91
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
event< scroll_bar, event_handler > scroll
Occurs when the scroll box has been moved by either a mouse or keyboard action.
Definition: scroll_bar.h:87
The control or element is oriented vertically.