Class: AutoItWindowState

Inherits:
Object
  • Object
show all
Defined in:
lib/buildmaster/win32/auto_it_window.rb

Instance Method Summary collapse

Constructor Details

#initialize(state) ⇒ AutoItWindowState

Returns a new instance of AutoItWindowState.



55
56
57
# File 'lib/buildmaster/win32/auto_it_window.rb', line 55

def initialize(state)
  @state = state
end

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


71
72
73
# File 'lib/buildmaster/win32/auto_it_window.rb', line 71

def active?
  @state & 8 > 0
end

#enabled?Boolean

Returns:

  • (Boolean)


67
68
69
# File 'lib/buildmaster/win32/auto_it_window.rb', line 67

def enabled?
  @state & 4 > 0
end

#exists?Boolean

Returns:

  • (Boolean)


59
60
61
# File 'lib/buildmaster/win32/auto_it_window.rb', line 59

def exists?
  @state & 1 > 0
end

#maxmized?Boolean

Returns:

  • (Boolean)


79
80
81
# File 'lib/buildmaster/win32/auto_it_window.rb', line 79

def maxmized?
  @state & 32 > 0
end

#minimized?Boolean

Returns:

  • (Boolean)


75
76
77
# File 'lib/buildmaster/win32/auto_it_window.rb', line 75

def minimized?
  @state & 16 > 0
end

#visible?Boolean

Returns:

  • (Boolean)


63
64
65
# File 'lib/buildmaster/win32/auto_it_window.rb', line 63

def visible?
  @state & 2 > 0
end