Class: RBGL::GUI::Wayland::Shm

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

#create_pool(fd, size) ⇒ Object



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

def create_pool(fd, size)
  pool_id = @connection.allocate_id
  @connection.send_request_with_fd(@id, 0, Arguments.new_id(pool_id), Arguments.int(size), fd)
  @connection.register_object(ShmPool.new(@connection, pool_id))
end