Mir
Public Member Functions | Protected Member Functions | List of all members
WaylandSurface Class Reference

#include <wayland_surface.h>

Inheritance diagram for WaylandSurface:
[legend]

Public Member Functions

 WaylandSurface (WaylandApp const *app)
 
virtual ~WaylandSurface ()=default
 
void attach_buffer (wl_buffer *buffer, int scale)
 
void commit () const
 
void set_fullscreen (wl_output *output)
 output can be null, user needs to commit after More...
 
void add_frame_callback (std::function< void()> &&func)
 
auto app () const -> WaylandApp const *
 
auto surface () const -> wl_surface *
 
auto configured_size () const -> mir::geometry::Size
 

Protected Member Functions

virtual void configured ()
 Called when the compositor configures this shell surface. More...
 

Constructor & Destructor Documentation

◆ WaylandSurface()

WaylandSurface::WaylandSurface ( WaylandApp const *  app)

◆ ~WaylandSurface()

virtual WaylandSurface::~WaylandSurface ( )
virtualdefault

Member Function Documentation

◆ add_frame_callback()

void WaylandSurface::add_frame_callback ( std::function< void()> &&  func)

◆ app()

auto WaylandSurface::app ( ) const -> WaylandApp const*
inline

◆ attach_buffer()

void WaylandSurface::attach_buffer ( wl_buffer *  buffer,
int  scale 
)

◆ commit()

void WaylandSurface::commit ( ) const

◆ configured()

virtual void WaylandSurface::configured ( )
inlineprotectedvirtual

Called when the compositor configures this shell surface.

◆ configured_size()

auto WaylandSurface::configured_size ( ) const -> mir::geometry::Size
inline

◆ set_fullscreen()

void WaylandSurface::set_fullscreen ( wl_output *  output)

output can be null, user needs to commit after

◆ surface()

auto WaylandSurface::surface ( ) const -> wl_surface*
inline

The documentation for this class was generated from the following files:

Copyright © 2012-2023 Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.