Sha256: 00fe75fcca9e582101a7f2500d7556cb1fa9088ea9cc29b95fed4204dd8ee37f
Contents?: true
Size: 690 Bytes
Versions: 1
Compression:
Stored size: 690 Bytes
Contents
require 'rbhex/core' ## module RubyCurses class Link < Button dsl_property :description 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 @display_length = config[:width] end def fire super self.focus end def getvalue_for_paint getvalue() end ## end # class end # module
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rbhex-core-1.1.0.alpha3 | lib/rbhex/core/widgets/rlink.rb |