/*! \page background Background
*
@section background-color Background Color
It is possible to set a background color for a DALi control. If the application writer wishes to
set a control with a red background:
@code
Dali::Toolkit::Control control = Dali::Toolkit::Control::New();
control.SetBackgroundColor( Dali::Color::RED );
@endcode
\image html BackgroundControlColor.png
|
This can be used for ALL existing controls like TextLabel as well:
@code
Dali::Toolkit::TextLabel label = Dali::Toolkit::TextLabel::New( "Hello World" );
label.SetBackgroundColor( Dali::Color::RED );
@endcode
\image html BackgroundTextLabel.png
|
@section background-image Background Image
If required, the user can also set a background image as a DALi control:
@code
Dali::Toolkit::Control control = Dali::Toolkit::Control::New();
Dali::Image image = Dali::Image::New( "image.png" );
control.SetBackgroundImage( image );
@endcode
\image html BackgroundImage.png
|
The background image is blended with the background color. If a red background color is set on the
control:
@code
control.SetBackgroundColor( Dali::Color::RED );
@endcode
then the above image will look like:
\image html BackgroundImageColor.png
|
@section background-visual Background Visual
The background can be set to use a specified visual, e.g the border visual
@code
Property::Map visual;
visual.Insert( Visual::Property::Type,Visual::BORDER );
visual.Insert( BorderVisual::Property::COLOR, COLOR::RED );
visual.Insert( BorderVisual::Property::SIZE, 20.f );
control.SetProperty( Control::Property::BACKGROUND, visual);
@endcode
then the above image will look like:
\image html BackgroundBorder.png
|
*
*/