Class: Wx::SF::ShapeKeyEvent
- Inherits:
 - 
      Event
      
        
- Object
 - Event
 - Wx::SF::ShapeKeyEvent
 
 
- Defined in:
 - lib/wx/shapes/events.rb
 
Overview
Class encapsulates Wx::SF shape’s key down event.
Instance Method Summary collapse
- 
  
    
      #get_key_code  ⇒ Object 
    
    
      (also: #key_code)
    
  
  
  
  
  
  
  
  
  
    
Get key code.
 - 
  
    
      #get_shape  ⇒ Wx::SF::Shape? 
    
    
      (also: #shape)
    
  
  
  
  
  
  
  
  
  
    
Get a shape object from the event object.
 - 
  
    
      #initialize(evt_type = Wx::EVT_NULL, id = 0)  ⇒ ShapeKeyEvent 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
Constructor.
 - 
  
    
      #set_key_code(key_code)  ⇒ Object 
    
    
      (also: #key_code=)
    
  
  
  
  
  
  
  
  
  
    
Set key code.
 - 
  
    
      #set_shape(shape)  ⇒ Object 
    
    
      (also: #shape=)
    
  
  
  
  
  
  
  
  
  
    
Insert a shape object to the event object.
 
Constructor Details
#initialize(evt_type = Wx::EVT_NULL, id = 0) ⇒ ShapeKeyEvent
Constructor
      49 50 51 52 53  | 
    
      # File 'lib/wx/shapes/events.rb', line 49 def initialize(evt_type = Wx::EVT_NULL, id = 0) super(evt_type, id.to_i) @shape = nil @key_code = 0 end  | 
  
Instance Method Details
#get_key_code ⇒ Object Also known as: key_code
Get key code.
      78 79 80  | 
    
      # File 'lib/wx/shapes/events.rb', line 78 def get_key_code @key_code end  | 
  
#get_shape ⇒ Wx::SF::Shape? Also known as: shape
Get a shape object from the event object.
      64 65 66  | 
    
      # File 'lib/wx/shapes/events.rb', line 64 def get_shape @shape end  | 
  
#set_key_code(key_code) ⇒ Object Also known as: key_code=
Set key code.
      71 72 73  | 
    
      # File 'lib/wx/shapes/events.rb', line 71 def set_key_code(key_code) @key_code = key_code end  | 
  
#set_shape(shape) ⇒ Object Also known as: shape=
Insert a shape object to the event object.
      57 58 59  | 
    
      # File 'lib/wx/shapes/events.rb', line 57 def set_shape(shape) @shape = shape end  |