Class: WinFFI::User32::WindowPlacement
- Defined in:
- lib/win-ffi/structs/user32/window/window_placement.rb
Instance Method Summary collapse
-
#initialize ⇒ WindowPlacement
constructor
TODO remove_method :length=.
- #showCmd ⇒ Object
- #showCmd=(v) ⇒ Object
- #to_s ⇒ Object
Methods inherited from FFIStruct
Constructor Details
#initialize ⇒ WindowPlacement
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
#showCmd ⇒ Object
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_s ⇒ Object
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 |