[go: up one dir, main page]

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::GRID::Grid::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_pixel_offsetInteger Also known as: pixel_offset

Offset of the scroll position from the nearest position expressed in scroll units.

In cases where scrolling is possible with single pixel precision, such as when panning on a touch screen with fingers, this returns the offset in pixels of the real position compared to the position obtained by multiplying the current scroll position in scroll units by the size of scroll unit in pixels. For example, if the scroll unit size (pixels per line) is 20px, this function returns a value which can be between 0 and 19.

Returns:

  • (Integer)


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

def get_pixel_offset; 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)


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

def set_orientation(orient) end

#set_position(pos) ⇒ void Also known as: position=

This method returns an undefined value.

Parameters:

  • pos (Integer)


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

def set_position(pos) end