Class: WinFFI::User32::WindowPlacement

Inherits:
FFIStruct
  • Object
show all
Defined in:
lib/win-ffi/structs/user32/window/window_placement.rb

Instance Method Summary collapse

Methods inherited from FFIStruct

layout

Constructor Details

#initializeWindowPlacement

TODO remove_method :length=



14
15
16
17
# File 'lib/win-ffi/structs/user32/window/window_placement.rb', line 14

def initialize
  super
  self[:length] = self.size
end

Instance Method Details

#showCmdObject



19
20
21
# File 'lib/win-ffi/structs/user32/window/window_placement.rb', line 19

def showCmd
  User32::ShowWindowEnum[self[:showCmd]]
end

#showCmd=(v) ⇒ Object



23
24
25
# File 'lib/win-ffi/structs/user32/window/window_placement.rb', line 23

def showCmd=(v)
  self[:showCmd] = v.is_a?(Integer) ? v : User32::ShowWindowEnum[v]
end

#to_sObject



27
28
29
# File 'lib/win-ffi/structs/user32/window/window_placement.rb', line 27

def to_s
  "showCmd = #{showCmd}, min = #{ptMinPosition}, max = #{ptMaxPosition}, normal = #{rcNormalPosition}"
end