Sha256: fc43e81c2a2e9e1ecc65ba4065d3ba042301f4126760699d9b39ce8d437f92c1

Contents?: true

Size: 545 Bytes

Versions: 5

Compression:

Stored size: 545 Bytes

Contents

module RAutomation
  module Adapter
    module WinFfi
      module ButtonHelper

        def set?
          control_hwnd = Functions.control_hwnd(@window.hwnd, @locators)
          Functions.control_set? control_hwnd
        end

        # @todo call a windows function to do this without clicking
        def clear
          click {!set?} if set?
        end

        # @todo call a windows function to do this without clicking
        def set
          click {set?} unless set?
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rautomation-0.6.3 lib/rautomation/adapter/win_ffi/button_helper.rb
rautomation-0.6.2 lib/rautomation/adapter/win_ffi/button_helper.rb
rautomation-0.6.1 lib/rautomation/adapter/win_ffi/button_helper.rb
rautomation-0.6.0 lib/rautomation/adapter/win_ffi/button_helper.rb
rautomation-0.5.1 lib/rautomation/adapter/win_ffi/button_helper.rb