Class: RBGL::GUI::Wayland::Surface

Inherits:
WaylandObject show all
Defined in:
lib/rbgl/gui/wayland/protocol_objects/surface.rb

Instance Attribute Summary

Attributes inherited from WaylandObject

#connection, #id

Instance Method Summary collapse

Methods inherited from WaylandObject

#initialize, #send_request

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

#commitObject



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

#destroyObject



27
28
29
# File 'lib/rbgl/gui/wayland/protocol_objects/surface.rb', line 27

def destroy
  send_request(0)
end