Class: Alexandria::TreeViewOverrides::Context

Inherits:
Struct
  • Object
show all
Defined in:
lib/alexandria/ui/multi_drag_treeview.rb,
lib/alexandria/ui/multi_drag_treeview.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*ary) ⇒ Context

Returns a new instance of Context.



34
35
36
37
# File 'lib/alexandria/ui/multi_drag_treeview.rb', line 34

def initialize(*ary)
  super
  self.events ||= []
end

Instance Attribute Details

#button_press_handlerObject

Returns the value of attribute button_press_handler

Returns:

  • (Object)

    the current value of button_press_handler



17
18
19
# File 'lib/alexandria/ui/multi_drag_treeview.rb', line 17

def button_press_handler
  @button_press_handler
end

#button_release_handlerObject

Returns the value of attribute button_release_handler

Returns:

  • (Object)

    the current value of button_release_handler



17
18
19
# File 'lib/alexandria/ui/multi_drag_treeview.rb', line 17

def button_release_handler
  @button_release_handler
end

#cell_xObject

Returns the value of attribute cell_x

Returns:

  • (Object)

    the current value of cell_x



17
18
19
# File 'lib/alexandria/ui/multi_drag_treeview.rb', line 17

def cell_x
  @cell_x
end

#cell_yObject

Returns the value of attribute cell_y

Returns:

  • (Object)

    the current value of cell_y



17
18
19
# File 'lib/alexandria/ui/multi_drag_treeview.rb', line 17

def cell_y
  @cell_y
end

#drag_contextObject

Returns the value of attribute drag_context

Returns:

  • (Object)

    the current value of drag_context



17
18
19
# File 'lib/alexandria/ui/multi_drag_treeview.rb', line 17

def drag_context
  @drag_context
end

#drag_data_get_handlerObject

Returns the value of attribute drag_data_get_handler

Returns:

  • (Object)

    the current value of drag_data_get_handler



17
18
19
# File 'lib/alexandria/ui/multi_drag_treeview.rb', line 17

def drag_data_get_handler
  @drag_data_get_handler
end

#eventsObject

Returns the value of attribute events

Returns:

  • (Object)

    the current value of events



17
18
19
# File 'lib/alexandria/ui/multi_drag_treeview.rb', line 17

def events
  @events
end

#motion_notify_handlerObject

Returns the value of attribute motion_notify_handler

Returns:

  • (Object)

    the current value of motion_notify_handler



17
18
19
# File 'lib/alexandria/ui/multi_drag_treeview.rb', line 17

def motion_notify_handler
  @motion_notify_handler
end

#pending_eventObject

Returns the value of attribute pending_event

Returns:

  • (Object)

    the current value of pending_event



17
18
19
# File 'lib/alexandria/ui/multi_drag_treeview.rb', line 17

def pending_event
  @pending_event
end

#pressed_buttonObject

Returns the value of attribute pressed_button

Returns:

  • (Object)

    the current value of pressed_button



17
18
19
# File 'lib/alexandria/ui/multi_drag_treeview.rb', line 17

def pressed_button
  @pressed_button
end

#source_actionsObject

Returns the value of attribute source_actions

Returns:

  • (Object)

    the current value of source_actions



17
18
19
# File 'lib/alexandria/ui/multi_drag_treeview.rb', line 17

def source_actions
  @source_actions
end

#source_start_button_maskObject

Returns the value of attribute source_start_button_mask

Returns:

  • (Object)

    the current value of source_start_button_mask



17
18
19
# File 'lib/alexandria/ui/multi_drag_treeview.rb', line 17

def source_start_button_mask
  @source_start_button_mask
end

#source_targetsObject

Returns the value of attribute source_targets

Returns:

  • (Object)

    the current value of source_targets



17
18
19
# File 'lib/alexandria/ui/multi_drag_treeview.rb', line 17

def source_targets
  @source_targets
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



17
18
19
# File 'lib/alexandria/ui/multi_drag_treeview.rb', line 17

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



17
18
19
# File 'lib/alexandria/ui/multi_drag_treeview.rb', line 17

def y
  @y
end

Instance Method Details

#pending_event?Boolean

Returns:

  • (Boolean)


39
40
41
# File 'lib/alexandria/ui/multi_drag_treeview.rb', line 39

def pending_event?
  pending_event
end