Class: Wx::ListEvent

Inherits:
NotifyEvent show all
Defined in:
lib/wx/doc/gen/list_event.rb

Overview

A list event holds information about events associated with ListCtrl objects.

Events using this class

The following event-handler methods redirect the events to member method or handler blocks for ListEvent events. Event handler methods:

Category: Events

See Also:

Requires:

  • USE_LISTCTRL

Instance Method Summary collapse

Methods inherited from NotifyEvent

#allow, #is_allowed, #veto

Methods inherited from CommandEvent

#client_data, #client_data=, #get_client_data, #get_client_object, #get_int, #get_selection, #get_string, #is_checked, #is_selection, #set_client_data, #set_client_object, #set_extra_long, #set_int, #set_string

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, id = 0) ⇒ Wx::ListEvent

Constructor.

Parameters:

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


71
# File 'lib/wx/doc/gen/list_event.rb', line 71

def initialize(commandType=Wx::EVT_NULL, id=0) end

Instance Method Details

#get_cache_fromInteger Also known as: cache_from

For EVT_LIST_CACHE_HINT event only: return the first item which the list control advises us to cache.

Returns:

  • (Integer)


75
# File 'lib/wx/doc/gen/list_event.rb', line 75

def get_cache_from; end

#get_cache_toInteger Also known as: cache_to

For EVT_LIST_CACHE_HINT event only: return the last item (inclusive) which the list control advises us to cache.

Returns:

  • (Integer)


80
# File 'lib/wx/doc/gen/list_event.rb', line 80

def get_cache_to; end

#get_columnInteger Also known as: column

The column position: it is only used with COL events.

For the column dragging events, it is the column to the left of the divider being dragged, for the column click events it may be -1 if the user clicked in the list control header outside any column.

Returns:

  • (Integer)


87
# File 'lib/wx/doc/gen/list_event.rb', line 87

def get_column; end

#get_dataInteger Also known as: data

The data.

Returns:

  • (Integer)


92
# File 'lib/wx/doc/gen/list_event.rb', line 92

def get_data; end

#get_imageInteger Also known as: image

The image.

Returns:

  • (Integer)


97
# File 'lib/wx/doc/gen/list_event.rb', line 97

def get_image; end

#get_indexInteger Also known as: index

The item index.

Returns:

  • (Integer)


102
# File 'lib/wx/doc/gen/list_event.rb', line 102

def get_index; end

#get_itemWx::ListItem Also known as: item

An item object, used by some events.

See also Wx::ListCtrl#set_item.

Returns:



109
# File 'lib/wx/doc/gen/list_event.rb', line 109

def get_item; end

#get_key_codeInteger Also known as: key_code

Key code if the event is a keypress event.

Returns:

  • (Integer)


114
# File 'lib/wx/doc/gen/list_event.rb', line 114

def get_key_code; end

#get_labelWx::String Also known as: label

The (new) item label for EVT_LIST_END_LABEL_EDIT event.

Returns:

  • (Wx::String)


119
# File 'lib/wx/doc/gen/list_event.rb', line 119

def get_label; end

#get_maskInteger Also known as: mask

The mask.

Returns:

  • (Integer)


124
# File 'lib/wx/doc/gen/list_event.rb', line 124

def get_mask; end

#get_pointWx::Point Also known as: point

The position of the mouse pointer if the event is a drag event.

Returns:



129
# File 'lib/wx/doc/gen/list_event.rb', line 129

def get_point; end

#get_textWx::String Also known as: text

The text.

Returns:

  • (Wx::String)


134
# File 'lib/wx/doc/gen/list_event.rb', line 134

def get_text; end

#is_edit_cancelledBoolean Also known as: edit_cancelled?

This method only makes sense for EVT_LIST_END_LABEL_EDIT message and returns true if it the label editing has been cancelled by the user (#get_label returns an empty string in this case but it doesn’t allow the application to distinguish between really cancelling the edit and the admittedly rare case when the user wants to rename it to an empty string).

Returns:

  • (Boolean)


139
# File 'lib/wx/doc/gen/list_event.rb', line 139

def is_edit_cancelled; end

#set_cache_from(cacheFrom) ⇒ void Also known as: cache_from=

This method returns an undefined value.

Parameters:

  • cacheFrom (Integer)

See Also:



193
# File 'lib/wx/doc/gen/list_event.rb', line 193

def set_cache_from(cacheFrom) end

#set_cache_to(cacheTo) ⇒ void Also known as: cache_to=

This method returns an undefined value.

Parameters:

  • cacheTo (Integer)

See Also:



202
# File 'lib/wx/doc/gen/list_event.rb', line 202

def set_cache_to(cacheTo) end

#set_column(col) ⇒ void Also known as: column=

This method returns an undefined value.

Parameters:

  • col (Integer)

See Also:



166
# File 'lib/wx/doc/gen/list_event.rb', line 166

def set_column(col) end

#set_index(index) ⇒ void Also known as: index=

This method returns an undefined value.

Parameters:

  • index (Integer)

See Also:



157
# File 'lib/wx/doc/gen/list_event.rb', line 157

def set_index(index) end

#set_item(item) ⇒ void Also known as: item=

This method returns an undefined value.

Parameters:

See Also:



184
# File 'lib/wx/doc/gen/list_event.rb', line 184

def set_item(item) end

#set_key_code(code) ⇒ void Also known as: key_code=

This method returns an undefined value.

Parameters:

  • code (Integer)

See Also:



148
# File 'lib/wx/doc/gen/list_event.rb', line 148

def set_key_code(code) end

#set_point(point) ⇒ void Also known as: point=

This method returns an undefined value.

Parameters:

See Also:



175
# File 'lib/wx/doc/gen/list_event.rb', line 175

def set_point(point) end