class Canis::Link
Public Class Methods
new(form, config={})
click to toggle source
Calls superclass method
# File lib/canis/core/widgets/rlink.rb, line 8 def initialize form, config={}, &block super @text_offset = 0 # haha we've never done this, pin the cursor up on 0,0 @col_offset = -1 # this won't be triggered since the shortcut does not set menmo # unless form is there. # Sometimes the mnemonic is not in text, such as '?' if @mnemonic form.bind_key(@mnemonic.downcase, self){ self.fire } end @width = config[:width] end
Public Instance Methods
fire()
click to toggle source
Calls superclass method
# File lib/canis/core/widgets/rlink.rb, line 21 def fire super self.focus end
getvalue_for_paint()
click to toggle source
# File lib/canis/core/widgets/rlink.rb, line 25 def getvalue_for_paint getvalue() end