#include <compositor_layer_samsung.h>
|
| CompositorLayerSamsung () |
|
| CompositorLayerSamsung (const CompositorLayerSamsung &other) |
|
| CompositorLayerSamsung (const CompositorLayer &other) |
|
| CompositorLayerSamsung (const Resource &resource) |
|
| CompositorLayerSamsung (PassRef, PP_Resource resource) |
|
| ~CompositorLayerSamsung () |
|
int32_t | SetBackgroundPlane (const Size &size) |
|
| CompositorLayer () |
|
| CompositorLayer (const CompositorLayer &other) |
|
| CompositorLayer (const Resource &resource) |
|
| CompositorLayer (PassRef, PP_Resource resource) |
|
| ~CompositorLayer () |
| Destructor. More...
|
|
int32_t | SetColor (float red, float green, float blue, float alpha, const Size &size) |
|
int32_t | SetTexture (const Graphics3D &context, uint32_t target, uint32_t texture, const Size &size, const CompletionCallback &cc) |
|
int32_t | SetImage (const ImageData &image, const CompletionCallback &callback) |
|
int32_t | SetImage (const ImageData &image, const Size &size, const CompletionCallback &callback) |
|
int32_t | SetClipRect (const Rect &rect) |
|
int32_t | SetTransform (const float matrix[16]) |
|
int32_t | SetOpacity (float opacity) |
|
int32_t | SetBlendMode (PP_BlendMode mode) |
|
int32_t | SetSourceRect (const FloatRect &rect) |
|
int32_t | SetPremultipliedAlpha (bool premult) |
|
| Resource () |
| The default constructor. More...
|
|
| Resource (const Resource &other) |
|
virtual | ~Resource () |
| Destructor. More...
|
|
Resource & | operator= (const Resource &other) |
|
bool | is_null () const |
|
PP_Resource | pp_resource () const |
|
PP_Resource | detach () |
|
Definition at line 23 of file compositor_layer_samsung.h.
pp::CompositorLayerSamsung::CompositorLayerSamsung |
( |
| ) |
|
pp::CompositorLayerSamsung::CompositorLayerSamsung |
( |
const CompositorLayer & |
other | ) |
|
pp::CompositorLayerSamsung::CompositorLayerSamsung |
( |
const Resource & |
resource | ) |
|
|
explicit |
A constructor used when you have received a PP_Resource
as a return value that has had 1 ref added for you.
- Parameters
-
[in] | resource | A PPB_CompositorLayer_Samsung resource. |
pp::CompositorLayerSamsung::~CompositorLayerSamsung |
( |
| ) |
|
static bool pp::CompositorLayerSamsung::IsCompositorLayerSamsung |
( |
const Resource & |
resource | ) |
|
|
static |
Checks whether a Resource
is a compositor layer samsung, to test whether it is appropriate for use with the CompositorLayerSamsung
constructor.
- Parameters
-
- Returns
- True if
resource
is a compositor layer.
int32_t pp::CompositorLayerSamsung::SetBackgroundPlane |
( |
const Size & |
size | ) |
|
Sets the background plane layer, which allows to present background plane content. If the layer is uninitialized, it will initialize the layer first, and then set the background plane. If the layer has been initialized to another kind of layer, the layer will not be changed, and PP_ERROR_BADARGUMENT
will be returned. Position of layer can be controlled using SetClipRect
method from PPB_CompositorLayer
.
param[in] layer A PP_Resource
corresponding to a compositor layer resource. param[in] size A PP_Size
for the size of the layer before transform.
- Returns
- An int32_t containing a result code from
pp_errors.h
.
The documentation for this class was generated from the following file: