Sha256: c10b3f0859f5d0b5c78f916810dd6a4cd1d32f119013088c4b5737e6f54a0d8e

Contents?: true

Size: 529 Bytes

Versions: 7

Compression:

Stored size: 529 Bytes

Contents

require 'rbcurse'
##
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 
      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

7 entries across 7 versions & 2 rubygems

Version Path
rbcurse-extras-0.0.0 lib/rbcurse/extras/widgets/rlink.rb.moved
rbcurse-1.4.1 lib/rbcurse/extras/rlink.rb
rbcurse-1.4.1.pre2 lib/rbcurse/extras/rlink.rb
rbcurse-1.4.0 lib/rbcurse/extras/rlink.rb
rbcurse-1.3.0 lib/rbcurse/extras/rlink.rb
rbcurse-1.2.0 lib/rbcurse/extras/rlink.rb
rbcurse-1.2.0.pre lib/rbcurse/extras/rlink.rb