Class: Wx::SF::ShapeEvent
- Inherits:
 - 
      Event
      
        
- Object
 - Event
 - Wx::SF::ShapeEvent
 
 
- Defined in:
 - lib/wx/shapes/events.rb
 
Overview
Class encapsulates generic Wx::SF shape’s event.
Instance Method Summary collapse
- 
  
    
      #get_shape  ⇒ Wx::SF::Shape? 
    
    
      (also: #shape)
    
  
  
  
  
  
  
  
  
  
    
Get a shape object from the event object.
 - 
  
    
      #initialize(evt_type = Wx::EVT_NULL, id = 0)  ⇒ ShapeEvent 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
Constructor.
 - 
  
    
      #is_vetoed  ⇒ Boolean 
    
    
      (also: #vetoed?)
    
  
  
  
  
  
  
  
  
  
    
Check if the event has been vetoed or not.
 - 
  
    
      #set_shape(shape)  ⇒ Object 
    
    
      (also: #shape=)
    
  
  
  
  
  
  
  
  
  
    
Insert a shape object to the event object.
 - 
  
    
      #veto  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Set the veto flag to true.
 
Constructor Details
#initialize(evt_type = Wx::EVT_NULL, id = 0) ⇒ ShapeEvent
Constructor
      11 12 13 14 15  | 
    
      # File 'lib/wx/shapes/events.rb', line 11 def initialize(evt_type = Wx::EVT_NULL, id = 0) super(evt_type, id.to_i) @shape = nil @vetoed = false end  | 
  
Instance Method Details
#get_shape ⇒ Wx::SF::Shape? Also known as: shape
Get a shape object from the event object.
      26 27 28  | 
    
      # File 'lib/wx/shapes/events.rb', line 26 def get_shape @shape end  | 
  
#is_vetoed ⇒ Boolean Also known as: vetoed?
Check if the event has been vetoed or not.
      33 34 35  | 
    
      # File 'lib/wx/shapes/events.rb', line 33 def is_vetoed @vetoed end  | 
  
#set_shape(shape) ⇒ Object Also known as: shape=
Insert a shape object to the event object.
      19 20 21  | 
    
      # File 'lib/wx/shapes/events.rb', line 19 def set_shape(shape) @shape = shape end  | 
  
#veto ⇒ Object
Set the veto flag to true.
      39 40 41  | 
    
      # File 'lib/wx/shapes/events.rb', line 39 def veto @vetoed = true end  |