Class: Wx::ScrollWinEvent

Inherits:
Event show all
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:

Category: Events

See Also:

Instance Method Summary collapse

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.

Parameters:

  • commandType (Wx::GenericCollapsiblePane::EventType) (defaults to: Wx::EVT_NULL)
  • pos (Integer) (defaults to: 0)
  • orientation (Integer) (defaults to: 0)


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_orientationInteger 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

Returns:

  • (Integer)


250
# File 'lib/wx/doc/gen/events.rb', line 250

def get_orientation; end

#get_positionInteger 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.

Returns:

  • (Integer)


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.

Parameters:

  • orient (Integer)


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.

Parameters:

  • pos (Integer)


267
# File 'lib/wx/doc/gen/events.rb', line 267

def set_position(pos) end