Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
mir::shell::PixelBuffer Class Referenceabstract

Interface for extracting the pixels from a graphics::Buffer. More...

#include <pixel_buffer.h>

Inheritance diagram for mir::shell::PixelBuffer:
Inheritance graph
[legend]

Public Member Functions

virtual ~PixelBuffer ()=default
 
virtual void fill_from (graphics::Buffer &buffer)=0
 Fills the PixelBuffer with the contents of a graphics::Buffer. More...
 
virtual void const * as_argb_8888 ()=0
 The pixels in 0xAARRGGBB format. More...
 
virtual geometry::Size size () const =0
 The size of the pixel buffer. More...
 
virtual geometry::Stride stride () const =0
 The stride of the pixel buffer. More...
 

Protected Member Functions

 PixelBuffer ()=default
 
 PixelBuffer (PixelBuffer const &)=delete
 
PixelBufferoperator= (PixelBuffer const &)=delete
 

Detailed Description

Interface for extracting the pixels from a graphics::Buffer.

Constructor & Destructor Documentation

virtual mir::shell::PixelBuffer::~PixelBuffer ( )
virtualdefault
mir::shell::PixelBuffer::PixelBuffer ( )
protecteddefault
mir::shell::PixelBuffer::PixelBuffer ( PixelBuffer const &  )
protecteddelete

Member Function Documentation

virtual void const* mir::shell::PixelBuffer::as_argb_8888 ( )
pure virtual

The pixels in 0xAARRGGBB format.

The pixel data is owned by the PixelBuffer object and is only valid until the next call to fill_from().

This method may involve transformation of the extracted data.

Implemented in mir::shell::GLPixelBuffer.

virtual void mir::shell::PixelBuffer::fill_from ( graphics::Buffer buffer)
pure virtual

Fills the PixelBuffer with the contents of a graphics::Buffer.

Parameters
[in]bufferthe buffer to get the pixels of

Implemented in mir::shell::GLPixelBuffer.

PixelBuffer& mir::shell::PixelBuffer::operator= ( PixelBuffer const &  )
protecteddelete
virtual geometry::Size mir::shell::PixelBuffer::size ( ) const
pure virtual

The size of the pixel buffer.

Implemented in mir::shell::GLPixelBuffer.

virtual geometry::Stride mir::shell::PixelBuffer::stride ( ) const
pure virtual

The stride of the pixel buffer.

Implemented in mir::shell::GLPixelBuffer.


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

Copyright © 2012,2013 Canonical Ltd.
Generated on Wed Oct 30 18:52:19 UTC 2013