Class: Core::GUI::Element
Direct Known Subclasses
Button, CharEquip, CharSelector, Container, ContextMenu, Draggable, Grid, Image, ItemInfo, Scrollbar, Slider, Textfield
Instance Attribute Summary collapse
-
#h ⇒ Object
Returns the value of attribute h.
-
#w ⇒ Object
Returns the value of attribute w.
-
#x ⇒ Object
Returns the value of attribute x.
-
#xoff ⇒ Object
Returns the value of attribute xoff.
-
#y ⇒ Object
Returns the value of attribute y.
-
#yoff ⇒ Object
Returns the value of attribute yoff.
-
#zoff ⇒ Object
Returns the value of attribute zoff.
Instance Method Summary collapse
- #draw ⇒ Object
-
#initialize(x, y, w, h) ⇒ Element
constructor
x and y are relative to the windows topleft corner plus title bar.
- #remove? ⇒ Boolean
- #update ⇒ Object
Constructor Details
#initialize(x, y, w, h) ⇒ Element
x and y are relative to the windows topleft corner plus title bar
142 143 144 145 146 |
# 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 |
Instance Attribute Details
#h ⇒ Object
Returns the value of attribute h.
140 141 142 |
# File 'lib/gui/base.rb', line 140 def h @h end |
#w ⇒ Object
Returns the value of attribute w.
140 141 142 |
# File 'lib/gui/base.rb', line 140 def w @w end |
#x ⇒ Object
Returns the value of attribute x.
140 141 142 |
# File 'lib/gui/base.rb', line 140 def x @x end |
#xoff ⇒ Object
Returns the value of attribute xoff.
140 141 142 |
# File 'lib/gui/base.rb', line 140 def xoff @xoff end |
#y ⇒ Object
Returns the value of attribute y.
140 141 142 |
# File 'lib/gui/base.rb', line 140 def y @y end |
#yoff ⇒ Object
Returns the value of attribute yoff.
140 141 142 |
# File 'lib/gui/base.rb', line 140 def yoff @yoff end |
#zoff ⇒ Object
Returns the value of attribute zoff.
140 141 142 |
# File 'lib/gui/base.rb', line 140 def zoff @zoff end |