Class: RBGL::GUI::Wayland::XdgSurface

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

#ack_configure(serial) ⇒ Object



25
26
27
# File 'lib/rbgl/gui/wayland/protocol_objects/xdg_shell.rb', line 25

def ack_configure(serial)
  send_request(4, Arguments.uint(serial))
end

#destroyObject



29
30
31
# File 'lib/rbgl/gui/wayland/protocol_objects/xdg_shell.rb', line 29

def destroy
  send_request(0)
end

#get_toplevelObject



19
20
21
22
23
# File 'lib/rbgl/gui/wayland/protocol_objects/xdg_shell.rb', line 19

def get_toplevel
  toplevel_id = @connection.allocate_id
  send_request(1, Arguments.new_id(toplevel_id))
  @connection.register_object(XdgToplevel.new(@connection, toplevel_id))
end