Class: RBGL::GUI::Wayland::XdgWmBase

Inherits:
WaylandObject show all
Defined in:
lib/rbgl/gui/wayland/protocol_objects/xdg_shell.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

#get_xdg_surface(surface) ⇒ Object



7
8
9
10
11
# File 'lib/rbgl/gui/wayland/protocol_objects/xdg_shell.rb', line 7

def get_xdg_surface(surface)
  xdg_surface_id = @connection.allocate_id
  send_request(2, Arguments.new_id(xdg_surface_id), Arguments.object(surface))
  @connection.register_object(XdgSurface.new(@connection, xdg_surface_id))
end

#pong(serial) ⇒ Object



13
14
15
# File 'lib/rbgl/gui/wayland/protocol_objects/xdg_shell.rb', line 13

def pong(serial)
  send_request(3, Arguments.uint(serial))
end