41 virtual uint32_t
width()
const = 0;
56 virtual size_t size()
const = 0;
75 virtual void Resize(uint32_t width, uint32_t height) = 0;
147 virtual uint32_t
width()
const override;
149 virtual uint32_t
height()
const override;
153 virtual size_t size()
const override;
159 virtual void Resize(uint32_t width, uint32_t height)
override;
171 friend class BitmapSurfaceFactory;
#define UExport
Definition Defines.h:65
The default Surface implementation, backed by a Bitmap.
Definition Surface.h:145
BitmapSurface(uint32_t width, uint32_t height)
virtual size_t size() const override
Size in bytes.
virtual uint32_t height() const override
Height (in pixels).
virtual void * LockPixels() override
Lock the pixel buffer and get a pointer to the beginning of the data for reading/writing.
virtual uint32_t row_bytes() const override
Number of bytes between rows (usually width * 4)
virtual void UnlockPixels() override
Unlock the pixel buffer.
void operator=(const BitmapSurface &)=delete
virtual uint32_t width() const override
Width (in pixels).
void * impl_
Definition Surface.h:173
BitmapSurface(const BitmapSurface &)=delete
virtual void Resize(uint32_t width, uint32_t height) override
Resize the pixel buffer to a certain width and height (both in pixels).
RefPtr< Bitmap > bitmap()
Get the underlying Bitmap.
A nullable smart pointer.
Definition RefPtr.h:79
SurfaceFactory can be used to provide your own native Surface implementation.
Definition Surface.h:127
virtual ~SurfaceFactory()
virtual void DestroySurface(Surface *surface)=0
Destroy a native Surface previously created by CreateSurface().
virtual Surface * CreateSurface(uint32_t width, uint32_t height)=0
Create a native Surface with a certain width and height (in pixels).
Offscreen pixel buffer surface.
Definition Surface.h:34
virtual void ClearDirtyBounds()
Clear the dirty bounds.
virtual IntRect dirty_bounds() const
Get the dirty bounds.
virtual uint32_t row_bytes() const =0
Number of bytes between rows (usually width * 4)
virtual void set_dirty_bounds(const IntRect &bounds)
Set the dirty bounds to a certain value.
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 width() const =0
Width (in pixels).
virtual uint32_t height() const =0
Height (in pixels).
virtual size_t size() const =0
Size in bytes.
virtual void * LockPixels()=0
Lock the pixel buffer and get a pointer to the beginning of the data for reading/writing.
IntRect dirty_bounds_
Definition Surface.h:115
virtual void UnlockPixels()=0
Unlock the pixel buffer.
SurfaceFactory * GetBitmapSurfaceFactory()
Get the default Bitmap Surface Factory singleton.
Integer Rectangle Helper.
Definition Geometry.h:529