54 virtual uint32_t
width()
const = 0;
69 virtual size_t size()
const = 0;
88 virtual void Resize(uint32_t width, uint32_t height) = 0;
169 virtual uint32_t
width()
const override;
171 virtual uint32_t
height()
const override;
175 virtual size_t size()
const override;
181 virtual void Resize(uint32_t width, uint32_t height)
override;
193 friend class BitmapSurfaceFactory;
#define UExport
Definition Exports.h:25
The default surface implementation, backed by a bitmap.
Definition Surface.h:167
virtual void * LockPixels() override
Lock the pixel buffer and get a pointer to the beginning of the data for reading/writing.
virtual uint32_t width() const override
Width (in pixels).
virtual uint32_t row_bytes() const override
Number of bytes between rows (usually width * 4)
BitmapSurface(uint32_t width, uint32_t height)
virtual void Resize(uint32_t width, uint32_t height) override
Resize the pixel buffer to a certain width and height (both in pixels).
virtual size_t size() const override
Size in bytes.
virtual uint32_t height() const override
Height (in pixels).
BitmapSurface(const BitmapSurface &)=delete
RefPtr< Bitmap > bitmap()
Get the underlying Bitmap.
void * impl_
Definition Surface.h:195
virtual void UnlockPixels() override
Unlock the pixel buffer.
void operator=(const BitmapSurface &)=delete
A nullable smart pointer.
Definition RefPtr.h:79
User-defined factory to provide your own surface implementation.
Definition Surface.h:144
virtual Surface * CreateSurface(uint32_t width, uint32_t height)=0
Create a native Surface with a certain width and height (in pixels).
virtual void DestroySurface(Surface *surface)=0
Destroy a native Surface previously created by CreateSurface().
virtual ~SurfaceFactory()
User-defined pixel buffer surface.
Definition Surface.h:47
virtual void ClearDirtyBounds()
Clear the dirty bounds.
virtual uint32_t height() const =0
Height (in pixels).
virtual void Resize(uint32_t width, uint32_t height)=0
Resize the pixel buffer to a certain width and height (both in pixels).
virtual uint32_t row_bytes() const =0
Number of bytes between rows (usually width * 4)
virtual uint32_t width() const =0
Width (in pixels).
virtual void * LockPixels()=0
Lock the pixel buffer and get a pointer to the beginning of the data for reading/writing.
virtual void UnlockPixels()=0
Unlock the pixel buffer.
IntRect dirty_bounds_
Definition Surface.h:128
virtual size_t size() const =0
Size in bytes.
virtual void set_dirty_bounds(const IntRect &bounds)
Set the dirty bounds to a certain value.
virtual IntRect dirty_bounds() const
Get the dirty bounds.
SurfaceFactory * GetBitmapSurfaceFactory()
Get the default Bitmap Surface Factory singleton.
Integer Rectangle Helper.
Definition Geometry.h:529