, __pButtonModel(null)
, __previousEnabledState(false)
, __touchMoveHandled(false)
+ , __lazyDecode(false)
, __pFont(null)
, __pTextObject(null)
, __pBase(null)
__pBase->SetBackgroundColor(_Colorf(
(float)bgColor.GetRed() / 255, (float)bgColor.GetGreen() / 255, (float)bgColor.GetBlue() / 255, (float)bgColor.GetAlpha() / 255));
__pBase->SetImageSource(imagePath);
+
+ __lazyDecode = true;
}
else
{
__pBase->SetImageSource(L"");
+ __lazyDecode = false;
+
pCanvas = __pButton->GetCanvasN();
if (pCanvas == null)
{
{
Canvas* pCanvas = null;
- if (__pBase->GetImageSource().IsEmpty() == true)
+ if (__lazyDecode == true)
{
Bitmap* pBackgroundBitmap = null;
_ButtonStatus status = __pButton->GetButtonStatus();
: __pLabel(null)
, __pLabelModel(null)
, __previousEnabledState(false)
+ , __lazyDecode(false)
, __pFont(null)
, __pTextObject(null)
, __pBase(null)
(float)bgColor.GetRed() / 255, (float)bgColor.GetGreen() / 255, (float)bgColor.GetBlue() / 255, (float)bgColor.GetAlpha() / 255));
__pBase->SetImageSource(imagePath);
+
+ __lazyDecode = true;
}
else
{
__pBase->SetImageSource(L"");
+ __lazyDecode = false;
+
pCanvas = __pLabel->GetCanvasN();
if (pCanvas == null)
{
{
Canvas* pCanvas = null;
- if (__pBase->GetImageSource().IsEmpty() == true)
+ if (__lazyDecode == true)
{
Bitmap* pBitmap = null;
bool __needDraw;
bool __previousEnabledState;
bool __touchMoveHandled;
+ bool __lazyDecode;
Tizen::Graphics::Font* __pFont;
Tizen::Graphics::_Text::TextObject* __pTextObject;
_LabelModel* __pLabelModel;
bool __previousEnabledState;
+ bool __lazyDecode;
Tizen::Graphics::Font* __pFont;
Tizen::Graphics::_Text::TextObject* __pTextObject;