Sha256: 8e1f61c66f6c0b8021ed08e3df87652da0a84825049baf735ee83a39844d31e0

Contents?: true

Size: 780 Bytes

Versions: 4

Compression:

Stored size: 780 Bytes

Contents

module Uia
  module Patterns
    module Window
      def visual_state
        window_information.visual_state.to_snake_case_sym
      end

      def can_minimize?
        window_information.can_minimize?
      end

      def can_maximize?
        window_information.can_maximize?
      end

      def modal?
        window_information.modal?
      end

      def topmost?
        window_information.topmost?
      end

      def visual_state=(state)
        Library.set_visual_state(@element, state.to_camelized_s)
      end

      def interaction_state
        window_information.interaction_state.to_snake_case_sym
      end

      private
      def window_information
        Library.window_information(@element)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
uia-0.0.7.3 lib/uia/patterns/window.rb
uia-0.0.7.2 lib/uia/patterns/window.rb
uia-0.0.7.1 lib/uia/patterns/window.rb
uia-0.0.7 lib/uia/patterns/window.rb