Class: RBGL::GUI::Wayland::WaylandObject
- Inherits:
-
Object
- Object
- RBGL::GUI::Wayland::WaylandObject
- Defined in:
- lib/rbgl/gui/wayland/protocol_objects/arguments.rb
Direct Known Subclasses
Callback, Compositor, Display, Registry, Shm, ShmPool, Surface, WlBuffer, XdgSurface, XdgToplevel, XdgWmBase
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(connection, id) ⇒ WaylandObject
constructor
A new instance of WaylandObject.
- #send_request(opcode, *args) ⇒ Object
Constructor Details
#initialize(connection, id) ⇒ WaylandObject
Returns a new instance of WaylandObject.
40 41 42 43 |
# File 'lib/rbgl/gui/wayland/protocol_objects/arguments.rb', line 40 def initialize(connection, id) @connection = connection @id = id end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
38 39 40 |
# File 'lib/rbgl/gui/wayland/protocol_objects/arguments.rb', line 38 def connection @connection end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
38 39 40 |
# File 'lib/rbgl/gui/wayland/protocol_objects/arguments.rb', line 38 def id @id end |
Instance Method Details
#send_request(opcode, *args) ⇒ Object
45 46 47 |
# File 'lib/rbgl/gui/wayland/protocol_objects/arguments.rb', line 45 def send_request(opcode, *args) @connection.send_request(@id, opcode, *args) end |