class Core::GUI::Element

Attributes

h[RW]
w[RW]
x[RW]
xoff[RW]
y[RW]
yoff[RW]
zoff[RW]

Public Class Methods

new(x, y, w, h) click to toggle source

x and y are relative to the windows topleft corner plus title bar

# File lib/gui/base.rb, line 142
def initialize(x, y, w, h)
  @remove = false
  @xoff = @yoff = @zoff = 0
  @x, @y, @w, @h = x, y, w, h
end

Public Instance Methods

draw() click to toggle source
# File lib/gui/base.rb, line 149
def draw
end
remove?() click to toggle source
# File lib/gui/base.rb, line 151
def remove?
  return @remove
end
update() click to toggle source
# File lib/gui/base.rb, line 147
def update
end