WaylandClient::Surface(Format)
Inherits WaylandClient::GenericSurface < Reference < Object
Constructors
new(registry : WaylandClient::Registry, buffer_pool : WaylandClient::Buffer::Pool(WaylandClient::Buffer::Memory(Format)), opaque, accepts_input = true)
SourceInstance methods
attach_buffer(buffer, width = 0, height = 0)
Sourceattached_buffer
Warning: Will give a different buffer each time. Call this only once each time an update is to happen.
buffer_pool
Sourceclose
Sourcecommit
Sourcecreate_subsurface(kind : Buffer::Kind, format, opaque, sync = true, position = {0, 0})
Sourcedamage_all
Sourcedamage_buffer(w, h, width, height)
Sourceformat
Sourceframe_handler
Sourceregion(add_all = false)
Sourceregistry
Sourcerepaint
Sourcerequest_frame(*args)
Sourceresize(width, height)
Sourcesize
Sourcesurface
Sourceto_unsafe
Source