Class: RBGL::GUI::Wayland::Surface
- Inherits:
-
WaylandObject
- Object
- WaylandObject
- RBGL::GUI::Wayland::Surface
- Defined in:
- lib/rbgl/gui/wayland/protocol_objects/surface.rb
Instance Attribute Summary
Attributes inherited from WaylandObject
Instance Method Summary collapse
- #attach(buffer, x, y) ⇒ Object
- #commit ⇒ Object
- #damage(x, y, width, height) ⇒ Object
- #destroy ⇒ Object
Methods inherited from WaylandObject
Constructor Details
This class inherits a constructor from RBGL::GUI::Wayland::WaylandObject
Instance Method Details
#attach(buffer, x, y) ⇒ Object
15 16 17 |
# File 'lib/rbgl/gui/wayland/protocol_objects/surface.rb', line 15 def attach(buffer, x, y) send_request(1, Arguments.object(buffer), Arguments.int(x), Arguments.int(y)) end |
#commit ⇒ Object
23 24 25 |
# File 'lib/rbgl/gui/wayland/protocol_objects/surface.rb', line 23 def commit send_request(6) end |
#damage(x, y, width, height) ⇒ Object
19 20 21 |
# File 'lib/rbgl/gui/wayland/protocol_objects/surface.rb', line 19 def damage(x, y, width, height) send_request(2, Arguments.int(x), Arguments.int(y), Arguments.int(width), Arguments.int(height)) end |
#destroy ⇒ Object
27 28 29 |
# File 'lib/rbgl/gui/wayland/protocol_objects/surface.rb', line 27 def destroy send_request(0) end |