Tizen Native API

ImageView is a class for displaying an Image. More...

Inheritance diagram for Dali::Toolkit::ImageView:
Dali::Toolkit::Control Dali::CustomActor Dali::Actor Dali::Handle Dali::BaseHandle

Classes

struct  Property
 An enumeration of properties belonging to the ImageView class. More...

Public Types

enum  PropertyRange
 The start and end property ranges for this control. More...

Public Member Functions

 ImageView ()
 Create an uninitialized ImageView.
 ~ImageView ()
 Destructor.
 ImageView (const ImageView &imageView)
 Copy constructor.
ImageViewoperator= (const ImageView &imageView)
 Assignment operator.
void SetImage (Image image)
 Sets this ImageView from an Image.
Image GetImage () const
 Gets the Image.

Static Public Member Functions

static ImageView New ()
 Create an initialized ImageView.
static ImageView New (Image image)
 Create an initialized ImageView from an Image.
static ImageView New (const std::string &url)
 Create an initialized ImageView from an Image resource url.
static ImageView DownCast (BaseHandle handle)
 Downcast a handle to ImageView handle.

Detailed Description

ImageView is a class for displaying an Image.

Since :
2.4

Member Enumeration Documentation

The start and end property ranges for this control.

Since :
2.4
Enumerator:
PROPERTY_END_INDEX 

Reserve property indices.

Since :
2.4

Reimplemented from Dali::Toolkit::Control.


Constructor & Destructor Documentation

Create an uninitialized ImageView.

Since :
2.4

Destructor.

This is non-virtual since derived Handle types must not contain data or virtual methods.

Since :
2.4

Copy constructor.

Since :
2.4
Parameters:
[in]imageViewImageView to copy. The copied ImageView will point at the same implementation

Member Function Documentation

Downcast a handle to ImageView handle.

If handle points to a ImageView the downcast produces valid handle. If not the returned handle is left uninitialized.

Since :
2.4
Parameters:
[in]handleHandle to an object
Returns:
handle to a ImageView or an uninitialized handle

Reimplemented from Dali::Toolkit::Control.

Gets the Image.

Since :
2.4
Remarks:
Calls to this method should be avoided as this may return an empty handle if the image has not been created yet.
Returns:
The Image currently set to this ImageView

Create an initialized ImageView.

Since :
2.4
Returns:
A handle to a newly allocated Dali ImageView.

Reimplemented from Dali::Toolkit::Control.

static ImageView Dali::Toolkit::ImageView::New ( Image  image) [static]

Create an initialized ImageView from an Image.

If the handle is empty, ImageView will display nothing

Since :
2.4
Parameters:
[in]imageThe Image to display.
Returns:
A handle to a newly allocated ImageView.
static ImageView Dali::Toolkit::ImageView::New ( const std::string &  url) [static]

Create an initialized ImageView from an Image resource url.

If the string is empty, ImageView will display nothing

Since :
2.4
Parameters:
[in]urlThe url of the image resource to display.
Returns:
A handle to a newly allocated ImageView.
ImageView& Dali::Toolkit::ImageView::operator= ( const ImageView imageView)

Assignment operator.

Since :
2.4
Parameters:
[in]imageViewThe ImageView to assign from.
Returns:
The updated ImageView.

Sets this ImageView from an Image.

If the handle is empty, ImageView will display nothing

Since :
2.4
Parameters:
[in]imageThe Image to display.