Sha256: d46e6ad07beea3bb2d6b209727e71408fcd96b4816abaa44e016c2d82a471593

Contents?: true

Size: 466 Bytes

Versions: 1

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

class Shoes
  module Common
    module Clickable
      attr_accessor :pass_coordinates

      def click(&blk)
        @gui.click blk
        self
      end

      def release(&blk)
        @gui.release blk
        self
      end

      def register_click(blk = nil)
        click(&@style[:click]) if @style[:click]
        click(&blk) if blk
      end

      def pass_coordinates?
        @pass_coordinates
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-core-4.0.0.rc1 lib/shoes/common/clickable.rb