Class: RBGL::GUI::Wayland::Registry

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

#bind(name, interface, version) ⇒ Object



25
26
27
28
29
30
31
32
33
34
35
# File 'lib/rbgl/gui/wayland/protocol_objects/display.rb', line 25

def bind(name, interface, version)
  new_id = @connection.allocate_id
  send_request(
    0,
    Arguments.uint(name),
    Arguments.string(interface),
    Arguments.uint(version),
    Arguments.new_id(new_id)
  )
  new_id
end