Pepper_47_C++_interfaces
Public Member Functions | Static Public Member Functions | List of all members
pp::CompositorLayerSamsung Class Reference

#include <compositor_layer_samsung.h>

Inheritance diagram for pp::CompositorLayerSamsung:
Inheritance graph
Collaboration diagram for pp::CompositorLayerSamsung:
Collaboration graph

Public Member Functions

 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)
 
- Public Member Functions inherited from pp::CompositorLayer
 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)
 
- Public Member Functions inherited from pp::Resource
 Resource ()
 The default constructor. More...
 
 Resource (const Resource &other)
 
virtual ~Resource ()
 Destructor. More...
 
Resourceoperator= (const Resource &other)
 
bool is_null () const
 
PP_Resource pp_resource () const
 
PP_Resource detach ()
 

Static Public Member Functions

static bool IsCompositorLayerSamsung (const Resource &resource)
 
- Static Public Member Functions inherited from pp::CompositorLayer
static bool IsCompositorLayer (const Resource &resource)
 

Additional Inherited Members

- Protected Member Functions inherited from pp::Resource
 Resource (PP_Resource resource)
 
 Resource (PassRef, PP_Resource resource)
 
void PassRefFromConstructor (PP_Resource resource)
 
void Clear ()
 Sets this resource to null. This releases ownership of the resource. More...
 

Detailed Description

Definition at line 23 of file compositor_layer_samsung.h.

Constructor & Destructor Documentation

pp::CompositorLayerSamsung::CompositorLayerSamsung ( )

Default constructor for creating an is_null() CompositorLayerSamsung object.

Definition at line 24 of file compositor_layer_samsung.cc.

pp::CompositorLayerSamsung::CompositorLayerSamsung ( const CompositorLayerSamsung other)

The copy constructor for CompositorLayerSamsung.

Parameters
[in]otherA reference to a CompositorLayerSamsung.

Definition at line 26 of file compositor_layer_samsung.cc.

pp::CompositorLayerSamsung::CompositorLayerSamsung ( const CompositorLayer other)

Constructs a CompositorLayerSamsung from a CompositorLayer.

Parameters
[in]otherA reference to a CompositorLayer.

Definition at line 30 of file compositor_layer_samsung.cc.

pp::CompositorLayerSamsung::CompositorLayerSamsung ( const Resource resource)
explicit

Constructs a CompositorLayer from a Resource.

Parameters
[in]resourceA PPB_CompositorLayer resource.

Definition at line 33 of file compositor_layer_samsung.cc.

References IsCompositorLayerSamsung(), and PP_DCHECK.

pp::CompositorLayerSamsung::CompositorLayerSamsung ( PassRef  ,
PP_Resource  resource 
)

A constructor used when you have received a PP_Resource as a return value that has had 1 ref added for you.

Parameters
[in]resourceA PPB_CompositorLayer_Samsung resource.

Definition at line 38 of file compositor_layer_samsung.cc.

pp::CompositorLayerSamsung::~CompositorLayerSamsung ( )

Destructor.

Definition at line 41 of file compositor_layer_samsung.cc.

Member Function Documentation

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
[in]resourceA Resource to test.
Returns
True if resource is a compositor layer.

Definition at line 51 of file compositor_layer_samsung.cc.

References pp::Resource::pp_resource().

Referenced by CompositorLayerSamsung().

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.

Definition at line 43 of file compositor_layer_samsung.cc.

References pp::Resource::pp_resource(), and pp::Size::pp_size().


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