X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=docs%2Fcontent%2Fprogramming-guide%2Fbackground.h;h=10073cbbd4cab10289a875df3278cdc0aa1cbd72;hp=44972f4bc68b989fcf268793658d7cdea422a2d7;hb=HEAD;hpb=01864cd4216d958c5f0e95643dbbeca7c9937716 diff --git a/docs/content/programming-guide/background.h b/docs/content/programming-guide/background.h index 44972f4..10073cb 100644 --- a/docs/content/programming-guide/background.h +++ b/docs/content/programming-guide/background.h @@ -16,15 +16,15 @@ control.SetBackgroundColor( Dali::Color::RED ); -This can be used for ALL existing controls like TextView as well: +This can be used for ALL existing controls like TextLabel as well: @code -Dali::Toolkit::TextView textView = Dali::Toolkit::TextView::New( "Hello World" ); -textView.SetBackgroundColor( Dali::Color::RED ); +Dali::Toolkit::TextLabel label = Dali::Toolkit::TextLabel::New( "Hello World" ); +label.SetBackgroundColor( Dali::Color::RED ); @endcode
-\image html BackgroundTextView.png +\image html BackgroundTextLabel.png
@@ -57,5 +57,24 @@ then the above image will look like: +@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 +
+ * */