class WaylandClient::Surface(Format)

Included Modules

Defined in:

surface.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(registry : WaylandClient::Registry, buffer_pool : WaylandClient::Buffer::Pool(WaylandClient::Buffer::Memory(Format)), opaque, accepts_input = true) #

[View source]

Instance Method Detail

def attach_buffer(buffer, x = 0, y = 0) #

[View source]
def attached_buffer #

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


[View source]

[View source]
def close #

[View source]
def commit #

[View source]
def create_subsurface(kind : Buffer::Kind, format, opaque, sync = true, position = {0, 0}) #

[View source]
def damage_all #

[View source]
def damage_buffer(x, y, width, height) #

[View source]
def format #

[View source]
def frame_handler #

[View source]
def region(add_all = false) #

[View source]
def registry : Registry #

[View source]
def repaint(&) #

[View source]
def request_frame(*args) #

[View source]
def resize(x, y) #

[View source]
def size #

[View source]
def surface : Pointer(LibWaylandClient::WlSurface) #

[View source]
def to_unsafe #

[View source]