class WinFFI::RECT

msdn.microsoft.com/en-us/library/windows/desktop/dd162897(v=vs.85).aspx

Public Instance Methods

==(other) click to toggle source
# File lib/win-ffi/core/struct/rect.rb, line 31
def ==(other)
  return false unless other.is_a?(self.class)
  left == other.left &&  top == other.top && right == other.right&& bottom == other.bottom
end
height() click to toggle source
# File lib/win-ffi/core/struct/rect.rb, line 19
def height
  bottom - top
end
height=(v) click to toggle source
# File lib/win-ffi/core/struct/rect.rb, line 23
def height=(v)
  self.bottom = top + v
end
to_s() click to toggle source
# File lib/win-ffi/core/struct/rect.rb, line 27
def to_s
  "(left = #{left}, top = #{top}, width = #{right - left}, height = #{bottom - top})"
end
width() click to toggle source
# File lib/win-ffi/core/struct/rect.rb, line 11
def width
  right - left
end
width=(v) click to toggle source
# File lib/win-ffi/core/struct/rect.rb, line 15
def width=(v)
  self.right = left + v
end