class

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)
Source

Instance methods

attach_buffer(buffer, width = 0, height = 0)
Source
attached_buffer

Warning: Will give a different buffer each time. Call this only once each time an update is to happen.

Source
buffer_pool
Source
close
Source
commit
Source
create_subsurface(kind : Buffer::Kind, format, opaque, sync = true, position = {0, 0})
Source
damage_all
Source
damage_buffer(w, h, width, height)
Source
format
Source
frame_handler
Source
region(add_all = false)
Source
registry
Source
repaint
Source
request_frame(*args)
Source
resize(width, height)
Source
size
Source
surface
Source
to_unsafe
Source