Class: Fzeet::Rect

Inherits:
Windows::RECT show all
Defined in:
lib/fzeet/Common.rb

Instance Method Summary collapse

Constructor Details

#initialize(l = 0, t = 0, r = 0, b = 0) ⇒ Rect

Returns a new instance of Rect.



146
# File 'lib/fzeet/Common.rb', line 146

def initialize(l = 0, t = 0, r = 0, b = 0) self[:left], self[:top], self[:right], self[:bottom] = l, t, r, b end

Instance Method Details

#lbObject



151
# File 'lib/fzeet/Common.rb', line 151

def lb; Point.new(self[:left], self[:bottom]) end

#ltObject



150
# File 'lib/fzeet/Common.rb', line 150

def lt; Point.new(self[:left], self[:top]) end

#rbObject



153
# File 'lib/fzeet/Common.rb', line 153

def rb; Point.new(self[:right], self[:bottom]) end

#rtObject



152
# File 'lib/fzeet/Common.rb', line 152

def rt; Point.new(self[:right], self[:top]) end

#to_aObject



148
# File 'lib/fzeet/Common.rb', line 148

def to_a; [self[:left], self[:top], self[:right], self[:bottom]] end