Class: Wx::ScrollWinEvent
- Defined in:
- lib/wx/doc/gen/events.rb
Overview
A scroll event holds information about events sent from scrolling windows.
Note that you can use the EVT_SCROLLWIN* macros for intercepting scroll window events from the receiving window.
Events using this class
The following event-handler methods redirect the events to member method or handler blocks for ScrollWinEvent events. Event handler methods:
-
EvtHandler#evt_scrollwin(meth = nil, &block): Process all scroll events.
-
EvtHandler#evt_scrollwin_top(meth = nil, &block): Process EVT_SCROLLWIN_TOP scroll-to-top events.
-
EvtHandler#evt_scrollwin_bottom(meth = nil, &block): Process EVT_SCROLLWIN_BOTTOM scroll-to-bottom events.
-
EvtHandler#evt_scrollwin_lineup(meth = nil, &block): Process EVT_SCROLLWIN_LINEUP line up events.
-
EvtHandler#evt_scrollwin_linedown(meth = nil, &block): Process EVT_SCROLLWIN_LINEDOWN line down events.
-
EvtHandler#evt_scrollwin_pageup(meth = nil, &block): Process EVT_SCROLLWIN_PAGEUP page up events.
-
EvtHandler#evt_scrollwin_pagedown(meth = nil, &block): Process EVT_SCROLLWIN_PAGEDOWN page down events.
-
EvtHandler#evt_scrollwin_thumbtrack(meth = nil, &block): Process EVT_SCROLLWIN_THUMBTRACK thumbtrack events (frequent events sent as the user drags the thumbtrack).
-
EvtHandler#evt_scrollwin_thumbrelease(meth = nil, &block): Process EVT_SCROLLWIN_THUMBRELEASE thumb release events.
Category: Events
Instance Method Summary collapse
-
#get_orientation ⇒ Integer
(also: #orientation)
Returns Orientation::HORIZONTAL or Orientation::VERTICAL, depending on the orientation of the scrollbar.
-
#get_position ⇒ Integer
(also: #position)
Returns the position of the scrollbar for the thumb track and release events.
-
#initialize(commandType = Wx::EVT_NULL, pos = 0, orientation = 0) ⇒ Wx::ScrollWinEvent
constructor
Constructor.
- #set_orientation(orient) ⇒ void (also: #orientation=)
- #set_position(pos) ⇒ void (also: #position=)
Methods inherited from Event
#clone, #get_event_category, #get_event_object, #get_event_type, #get_id, #get_skipped, #get_timestamp, #is_command_event, #resume_propagation, #set_event_object, #set_event_type, #set_id, #set_timestamp, #should_propagate, #skip, #stop_propagation
Methods inherited from Object
#clone, #dup, #is_same_as, #un_share
Constructor Details
#initialize(commandType = Wx::EVT_NULL, pos = 0, orientation = 0) ⇒ Wx::ScrollWinEvent
Constructor.
244 |
# File 'lib/wx/doc/gen/events.rb', line 244 def initialize(commandType=Wx::EVT_NULL, pos=0, orientation=0) end |
Instance Method Details
#get_orientation ⇒ Integer Also known as: orientation
Returns Orientation::HORIZONTAL or Orientation::VERTICAL, depending on the orientation of the scrollbar.
TodoOrientation::HORIZONTAL and Orientation::VERTICAL should go in their own enum
250 |
# File 'lib/wx/doc/gen/events.rb', line 250 def get_orientation; end |
#get_position ⇒ Integer Also known as: position
Returns the position of the scrollbar for the thumb track and release events.
Note that this field can’t be used for the other events, you need to query the window itself for the current position in that case.
257 |
# File 'lib/wx/doc/gen/events.rb', line 257 def get_position; end |
#set_orientation(orient) ⇒ void Also known as: orientation=
This method returns an undefined value.
262 |
# File 'lib/wx/doc/gen/events.rb', line 262 def set_orientation(orient) end |
#set_position(pos) ⇒ void Also known as: position=
This method returns an undefined value.
267 |
# File 'lib/wx/doc/gen/events.rb', line 267 def set_position(pos) end |