Class: Gdk::Key
Overview
class EventKey
Instance Attribute Summary (collapse)
-
- (Object) code
readonly
Returns the value of attribute code.
-
- (Object) name
readonly
Returns the value of attribute name.
Instance Method Summary (collapse)
- - (Object) ==(key)
-
- (Key) initialize(keyval)
constructor
A new instance of Key.
-
- (Object) inspect
def ==.
Constructor Details
- (Key) initialize(keyval)
A new instance of Key
104 105 106 107 |
# File 'lib/tagen/gtk2.rb', line 104 def initialize keyval @code = keyval @name = Keyval.to_name(keyval).downcase.to_sym end |