Mir
|
#include <surface.h>
Public Member Functions | |
std::string | name () const override=0 |
geometry::Size | client_size () const override=0 |
Size of the client area of the surface (excluding any decorations) More... | |
geometry::Rectangle | input_bounds () const override=0 |
virtual geometry::Point | top_left () const =0 |
Top-left corner (of the window frame if present) More... | |
virtual geometry::Size | size () const =0 |
Size of the surface including window frame (if any) More... | |
virtual std::unique_ptr < graphics::Renderable > | compositor_snapshot (void const *compositor_id) const =0 |
virtual float | alpha () const =0 |
virtual MirSurfaceType | type () const =0 |
virtual MirSurfaceState | state () const =0 |
virtual void | hide ()=0 |
virtual void | show ()=0 |
virtual void | move_to (geometry::Point const &top_left)=0 |
virtual void | take_input_focus (std::shared_ptr< shell::InputTargeter > const &targeter)=0 |
virtual void | set_input_region (std::vector< geometry::Rectangle > const ®ion)=0 |
Sets the input region for this surface. More... | |
virtual void | allow_framedropping (bool)=0 |
virtual void | resize (geometry::Size const &size)=0 |
virtual void | set_transformation (glm::mat4 const &t)=0 |
virtual void | set_alpha (float alpha)=0 |
virtual void | set_orientation (MirOrientation orientation)=0 |
virtual void | force_requests_to_complete ()=0 |
virtual void | set_cursor_image (std::shared_ptr< graphics::CursorImage > const &image)=0 |
virtual std::shared_ptr < graphics::CursorImage > | cursor_image () const =0 |
virtual void | add_observer (std::shared_ptr< SurfaceObserver > const &observer)=0 |
virtual void | remove_observer (std::weak_ptr< SurfaceObserver > const &observer)=0 |
virtual std::shared_ptr < input::InputChannel > | input_channel () const =0 |
virtual void | set_reception_mode (input::InputReceptionMode mode)=0 |
![]() | |
virtual bool | input_area_contains (geometry::Point const &point) const =0 |
virtual InputReceptionMode | reception_mode () const =0 |
virtual void | consume (MirEvent const &event)=0 |
![]() | |
virtual | ~Surface ()=default |
virtual MirPixelFormat | pixel_format () const =0 |
virtual void | swap_buffers (graphics::Buffer *old_buffer, std::function< void(graphics::Buffer *new_buffer)> complete)=0 |
virtual bool | supports_input () const =0 |
virtual int | client_input_fd () const =0 |
virtual int | configure (MirSurfaceAttrib attrib, int value)=0 |
virtual int | query (MirSurfaceAttrib attrib)=0 |
void | swap_buffers_blocking (graphics::Buffer *&buffer) |
swap_buffers_blocking() is a convenience wrapper around swap_buffers() it forces the current thread to block until complete() is called. More... | |
![]() | |
virtual | ~SurfaceBufferAccess ()=default |
virtual void | with_most_recent_buffer_do (std::function< void(graphics::Buffer &)> const &exec)=0 |
Additional Inherited Members | |
![]() | |
Surface ()=default | |
virtual | ~Surface ()=default |
Surface (const Surface &)=delete | |
Surface & | operator= (const Surface &)=delete |
![]() | |
Surface ()=default | |
Surface (Surface const &)=delete | |
Surface & | operator= (Surface const &)=delete |
![]() | |
SurfaceBufferAccess ()=default | |
SurfaceBufferAccess (SurfaceBufferAccess const &)=delete | |
SurfaceBufferAccess & | operator= (SurfaceBufferAccess const &)=delete |
|
pure virtual |
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implemented in mir::scene::BasicSurface.
|
overridepure virtual |
Size of the client area of the surface (excluding any decorations)
Implements mir::frontend::Surface.
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implements mir::input::Surface.
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implemented in mir::scene::BasicSurface.
|
overridepure virtual |
Implements mir::input::Surface.
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implements mir::input::Surface.
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implemented in mir::scene::BasicSurface.
|
overridepure virtual |
Implements mir::input::Surface.
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implements mir::frontend::Surface.
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Sets the input region for this surface.
The input region is expressed in coordinates relative to the surface (i.e., use (0,0) for the top left point of the surface).
By default the input region is the whole surface. To unset a custom input region and revert to the default set an empty input region, i.e., set_input_region({}). To disable input set a non-empty region containing an empty rectangle, i.e., set_input_region({geom::Rectangle{}}).
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Size of the surface including window frame (if any)
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Top-left corner (of the window frame if present)
Implemented in mir::scene::BasicSurface.
|
pure virtual |
Implemented in mir::scene::BasicSurface.
Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Oct 10 14:07:14 UTC 2014