#include <FGrpEnrichedText.h>
#include <FGrpBitmap.h>
#include <FBase_StringConverter.h>
+#include <FGrp_BitmapImpl.h>
#include "FUi_AccessibilityGesture.h"
#include "FUi_AccessibilitySystemSettingLoader.h"
#include "FUi_AccessibilityTtsPlayer.h"
result r = GET_BITMAP_CONFIG_N(ACCESSIBILITY::FOCUS, BITMAP_PIXEL_FORMAT_ARGB8888, pBitmap);
if (r == E_SUCCESS)
{
- if (pBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBitmap))
{
r = pCanvas->DrawNinePatchedBitmap(Rectangle(0, 0, rectangle.width, rectangle.height), *pBitmap);
SysTryCatch(NID_UI, r == E_SUCCESS, , E_SYSTEM, "[E_SYSTEM] System error");
#include <FGrpFloatRectangle.h>
#include <FUiAnimVisualElementContentProvider.h>
#include <FBase_Log.h>
-#include "FSys_SystemInfoImpl.h"
+#include <FGrp_BitmapImpl.h>
+#include <FSys_SystemInfoImpl.h>
#include "FUi_Control.h"
#include "FUi_ControlManager.h"
#include "FUi_CoordinateSystemUtils.h"
#include "FUiAnim_VisualElementImpl.h"
#include "FUiCtrl_Form.h"
#include "FUiCtrl_Frame.h"
-#include "FGrp_BitmapImpl.h"
using namespace std;
using namespace Tizen::Base;
if (r == E_SUCCESS)
{
- if (pBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBitmap))
{
r = pCanvas->DrawNinePatchedBitmap(FloatRectangle(0.0f, 0.0f, rectangle.width, rectangle.height), *pBitmap);
}
}
if(pTempBitmap != null)
{
- if(pTempBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pTempBitmap))
{
pBitmap = pTempBitmap;
r = E_SUCCESS;
#include <FBaseErrorDefine.h>
#include <FBaseSysLog.h>
+#include <FGrp_BitmapImpl.h>
#include "FUiCtrl_AnimationPresenter.h"
#include "FUiCtrl_Animation.h"
#include "FUiCtrl_AnimationModel.h"
pCanvas->SetBackgroundColor(Color());
pCanvas->Clear();
- if (pBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBitmap))
{
r = pCanvas->DrawNinePatchedBitmap(FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height), *pBitmap);
}
Bitmap* pReplacementColorBackgroundBitmap = null;
Bitmap* pBackgroundBitmap = null;
Bitmap* pBackgroundEffectBitmap = null;
- //Color bgColor = __pButton->GetBackgroundColor();
- //String imagePath = L"";
+ Color bgColor = __pButton->GetBackgroundColor();
+ String imagePath = L"";
float leftTouchMargin = __pButton->GetLeftTouchMarginF();
float topTouchMargin = __pButton->GetTopTouchMarginF();
if (pBackgroundBitmap)
{
- //if (pBackgroundBitmap->IsNinePatchedBitmap() == false)
- //{
- // imagePath = _BitmapImpl::GetInstance(*pBackgroundBitmap)->GetFileName();
- //}
-
- //if (imagePath.IsEmpty() == false && __pButton->GetText() == L"" && __pButton->GetBitmap(status) == null)
- //{
- // __pBase->SetBackgroundColor(_Colorf(
- // (float)bgColor.GetRed() / 255, (float)bgColor.GetGreen() / 255, (float)bgColor.GetBlue() / 255, (float)bgColor.GetAlpha() / 255));
- // __pBase->SetImageSource(imagePath);
- //}
- //else
- //{
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundBitmap) == false)
+ {
+ imagePath = _BitmapImpl::GetInstance(*pBackgroundBitmap)->GetFileName();
+ }
+
+ if (imagePath.IsEmpty() == false && __pButton->GetText() == L"" && __pButton->GetBitmap(status) == null)
+ {
+ __pBase->SetBackgroundColor(_Colorf(
+ (float)bgColor.GetRed() / 255, (float)bgColor.GetGreen() / 255, (float)bgColor.GetBlue() / 255, (float)bgColor.GetAlpha() / 255));
+ __pBase->SetImageSource(imagePath);
+ }
+ else
+ {
pCanvas = __pButton->GetCanvasN();
if (pCanvas == null)
{
pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
pCanvas->Clear();
- if (pBackgroundBitmap->IsNinePatchedBitmap()) // pBackgroundBitmap is 9
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundBitmap))// pBackgroundBitmap is 9
{
if (pBackgroundEffectBitmap)
{
- if (pBackgroundEffectBitmap->IsNinePatchedBitmap()) // 9,9
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundEffectBitmap)) // 9,9
{
pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundBitmap);
if (__pButton->IsUserBackgroundEffectBitmap(status))
{
if (pBackgroundEffectBitmap)
{
- if (pBackgroundEffectBitmap->IsNinePatchedBitmap()) // 0, 9
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundEffectBitmap)) // 0, 9
{
pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundBitmap,
_CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pBackgroundBitmap->GetWidthF(), pBackgroundBitmap->GetHeightF())));
_CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pBackgroundBitmap->GetWidthF(), pBackgroundBitmap->GetHeightF())));
}
}
- //}
+ }
}
else // pBackgroundBitmap is null
{
if (pBackgroundEffectBitmap)
{
- if (pBackgroundEffectBitmap->IsNinePatchedBitmap()) // X, 9
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundEffectBitmap)) // X, 9
{
if (__pButton->IsUserBackgroundEffectBitmap(status))
{
if (pReplacementColorBackgroundBitmap)
{
- if (pReplacementColorBackgroundBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pReplacementColorBackgroundBitmap))
{
if (pBackgroundEffectBitmap)
{
- if (pBackgroundEffectBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundEffectBitmap))
{
pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pReplacementColorBackgroundBitmap);
pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundEffectBitmap);
{
if (pBackgroundEffectBitmap)
{
- if (pBackgroundEffectBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundEffectBitmap))
{
pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pReplacementColorBackgroundBitmap,
_CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pReplacementColorBackgroundBitmap->GetWidthF(), pReplacementColorBackgroundBitmap->GetHeightF())));
{
if (pBackgroundEffectBitmap)
{
- if (pBackgroundEffectBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundEffectBitmap))
{
pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundEffectBitmap);
}
FloatRectangle bounds(leftTouchMargin, topTouchMargin, __pButton->GetBoundsF().width - (leftTouchMargin + rightTouchMargin),
__pButton->GetBoundsF().height - (topTouchMargin + bottomTouchMargin));
- if (pToolbarItemBackgroundBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pToolbarItemBackgroundBitmap))
{
pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pToolbarItemBackgroundBitmap);
}
bounds.y -= (selectedBitmapHeight - bottomTouchMargin);
}
- if (pToolbarSelectedBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pToolbarSelectedBitmap))
{
pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pToolbarSelectedBitmap);
}
}
else
{
- if (pBackgroundBitmap && pBackgroundBitmap->IsNinePatchedBitmap())
+ if (pBackgroundBitmap && _BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundBitmap))
{
pReplacementColorBackgroundBitmap = _BitmapImpl::GetColorReplacedBitmapN(*pBackgroundBitmap, Color::GetColor(COLOR_ID_MAGENTA),
__pCheckButton->GetColor(CHECK_BUTTON_STATUS_NORMAL));
}
else
{
- if (pBackgroundBitmap && pBackgroundBitmap->IsNinePatchedBitmap())
+ if (pBackgroundBitmap && _BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundBitmap))
{
pReplacementColorBackgroundBitmap = _BitmapImpl::GetColorReplacedBitmapN(*pBackgroundBitmap, Color::GetColor(COLOR_ID_MAGENTA),
__pCheckButton->GetColor(CHECK_BUTTON_STATUS_DISABLED));
}
else
{
- if (pBackgroundBitmap && pBackgroundBitmap->IsNinePatchedBitmap())
+ if (pBackgroundBitmap && _BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundBitmap))
{
pReplacementColorBackgroundBitmap = _BitmapImpl::GetColorReplacedBitmapN(*pBackgroundBitmap, Color::GetColor(COLOR_ID_MAGENTA),
__pCheckButton->GetColor(CHECK_BUTTON_STATUS_PRESSED));
}
else
{
- if (pBackgroundBitmap && pBackgroundBitmap->IsNinePatchedBitmap())
+ if (pBackgroundBitmap && _BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundBitmap))
{
pReplacementColorBackgroundBitmap = _BitmapImpl::GetColorReplacedBitmapN(*pBackgroundBitmap, Color::GetColor(COLOR_ID_MAGENTA),
__pCheckButton->GetColor(CHECK_BUTTON_STATUS_HIGHLIGHTED));
SysTryReturn(NID_UI_CTRL, pBitmap != null, E_INVALID_ARG, E_INVALID_ARG,
"[E_INVALID_ARG] Invalid argument is used. Provided bitmap is null.");
- if (pBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBitmap))
{
r = canvas.DrawNinePatchedBitmap(bounds, *pBitmap);
SysTryReturn(NID_UI_CTRL, (r == E_SUCCESS), r, r, "[%s] Propagating.", GetErrorMessage(r));
#include <FBaseErrorDefine.h>
#include <FBaseSysLog.h>
+#include <FGrp_BitmapImpl.h>
#include <FGrp_CanvasImpl.h>
#include <FGrp_TextTextSimple.h>
#include "FUi_AccessibilityContainer.h"
_ContextMenuGridPresenter::DrawBitmap(Tizen::Graphics::Canvas& canvas, const Tizen::Graphics::FloatRectangle& bounds, const Tizen::Graphics::Bitmap& bitmap)
{
result r = E_SUCCESS;
- if (bitmap.IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(bitmap))
{
r = canvas.DrawNinePatchedBitmap(bounds, bitmap);
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Fail to draw ninepatched bitmap.")
_ContextMenuListPresenter::DrawBitmap(Tizen::Graphics::Canvas& canvas, const Tizen::Graphics::FloatRectangle& bounds, const Tizen::Graphics::Bitmap& bitmap)
{
result r = E_SUCCESS;
- if (bitmap.IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(bitmap))
{
r = canvas.DrawNinePatchedBitmap(bounds, bitmap);
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Fail to draw ninepatched bitmap.")
pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
pCanvas->Clear();
- if (pBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBitmap))
{
pCanvas->DrawNinePatchedBitmap(Rectangle(0, 0, GetWidth(), GetHeight()), *pBitmap);
}
if (__pBgColorReplacementBitmap != null)
{
- if (__pBgColorReplacementBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pBgColorReplacementBitmap))
{
r = canvas.DrawNinePatchedBitmap(bodyAreaBounds, *__pBgColorReplacementBitmap);
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Propagating.");
if (__pArrowColorReplacementBitmap != null)
{
- if (__pArrowColorReplacementBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pArrowColorReplacementBitmap))
{
r = canvas.DrawNinePatchedBitmap(arrowAreaBounds, *__pArrowColorReplacementBitmap);
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Propagating.");
return;
}
- if (__pBackgroundNormalBitmap[status]->IsNinePatchedBitmap() == true)
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pBackgroundNormalBitmap[status]))
{
r = canvas.DrawNinePatchedBitmap(__windowBounds, *__pBackgroundNormalBitmap[status]);
SysTryReturnVoidResult(NID_UI_CTRL, (r == E_SUCCESS), r, "[%s] Propagating.", GetErrorMessage(r));
if (status == DATETIME_STATUS_FOCUSED && __pBackgroundPressedEffectBitmap != null )
{
- if (__pBackgroundEffectBitmap->IsNinePatchedBitmap() == true)
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pBackgroundEffectBitmap))
{
r = canvas.DrawNinePatchedBitmap(__windowBounds, *__pBackgroundPressedEffectBitmap);
SysTryReturnVoidResult(NID_UI_CTRL, (r == E_SUCCESS), r, "[%s] Propagating.", GetErrorMessage(r));
}
else if (status == DATETIME_STATUS_DISABLED && __pBackgroundDisabledEffectBitmap != null)
{
- if (__pBackgroundDisabledEffectBitmap->IsNinePatchedBitmap() == true)
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pBackgroundDisabledEffectBitmap))
{
r = canvas.DrawNinePatchedBitmap(__windowBounds, *__pBackgroundDisabledEffectBitmap);
SysTryReturnVoidResult(NID_UI_CTRL, (r == E_SUCCESS), r, "[%s] Propagating.", GetErrorMessage(r));
}
else if (__pBackgroundEffectBitmap != null)
{
- if (__pBackgroundEffectBitmap->IsNinePatchedBitmap() == true)
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pBackgroundEffectBitmap))
{
r = canvas.DrawNinePatchedBitmap(__windowBounds, *__pBackgroundEffectBitmap);
SysTryReturnVoidResult(NID_UI_CTRL, (r == E_SUCCESS), r, "[%s] Propagating.", GetErrorMessage(r));
if (__pBgEffectBitmap)
{
- if (__pBgEffectBitmap->IsNinePatchedBitmap() == true)
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pBgEffectBitmap))
{
canvas.DrawNinePatchedBitmap(bounds, *__pBgEffectBitmap);
SysTryReturnVoidResult(NID_UI_CTRL, (r == E_SUCCESS), r, "[%s] Propagating.", GetErrorMessage(r));
if (__pBgNormalBitmap)
{
- if (__pBgNormalBitmap->IsNinePatchedBitmap() == true)
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pBgNormalBitmap))
{
canvas.DrawNinePatchedBitmap(bounds, *__pBgNormalBitmap);
SysTryReturnVoidResult(NID_UI_CTRL, (r == E_SUCCESS), r, "[%s] Propagating.", GetErrorMessage(r));
pCanvas->Clear();
if (__isTouchPressed)
{
- if (__pHandlerPressedBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pHandlerPressedBitmap))
{
pCanvas->DrawNinePatchedBitmap(pCanvas->GetBoundsF(), *__pHandlerPressedBitmap);
}
}
else
{
- if (__pHandlerBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pHandlerBitmap))
{
pCanvas->DrawNinePatchedBitmap(pCanvas->GetBoundsF(), *__pHandlerBitmap);
}
pReplacementColorBackgroundBitmap = _BitmapImpl::GetColorReplacedBitmapN(*pEditBgBitmap, Color::GetColor(COLOR_ID_MAGENTA), bitmapColor);
if (pReplacementColorBackgroundBitmap)
{
- if (pReplacementColorBackgroundBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pReplacementColorBackgroundBitmap))
{
canvas.DrawNinePatchedBitmap(editRect, *pReplacementColorBackgroundBitmap);
}
if (pEditBgEffectBitmap)
{
- if (pEditBgEffectBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pEditBgEffectBitmap))
{
canvas.DrawNinePatchedBitmap(editRect, *pEditBgEffectBitmap);
}
if (pEditBgBitmap)
{
- if (pEditBgBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pEditBgBitmap))
{
canvas.DrawNinePatchedBitmap(editRect, *pEditBgBitmap);
}
if (pEditBgBitmap)
{
- if (pEditBgBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pEditBgBitmap))
{
canvas.DrawNinePatchedBitmap(editField, *pEditBgBitmap);
}
__clearIconBounds.y = textRect.y;
}
- if (pEditReplacedBitmapClear->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pEditReplacedBitmapClear))
{
r = canvas.DrawNinePatchedBitmap(__clearIconBounds, *pEditReplacedBitmapClear);
}
return r;
}
- if (pBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBitmap))
{
r = canvas.DrawNinePatchedBitmap(bounds, *pBitmap);
SysTryReturn(NID_UI_CTRL, (r == E_SUCCESS), r, r, "[%s] Propagating.", GetErrorMessage(r));
const Rectangle bounds = GetBounds();
- if (__pNormalBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pNormalBitmap))
{
r = pCanvas->DrawNinePatchedBitmap(Rectangle(0, 0, bounds.width, bounds.height), *__pNormalBitmap);
}
if (__pEffectBitmap != null)
{
- if (__pEffectBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pEffectBitmap))
{
r = pCanvas->DrawNinePatchedBitmap(Rectangle(0, 0, bounds.width, bounds.height), *__pEffectBitmap);
}
#include <wchar.h>
#include <FBaseSysLog.h>
+#include <FGrp_BitmapImpl.h>
#include "FUiCtrl_FastScrollIndex.h"
-#include "FGrp_BitmapImpl.h"
namespace Tizen { namespace Ui { namespace Controls
{
#include <FUiAnimVisualElementContentProvider.h>
#include <FUiAnimIVisualElementContentProvider.h>
#include <FUiAnimVisualElement.h>
-
#include <FBaseSysLog.h>
-#include "FGrp_BitmapImpl.h"
+#include <FGrp_BitmapImpl.h>
#include "FGrp_TextTextObject.h"
#include <FGrp_TextTextSimple.h>
#include "FUiAnim_VisualElement.h"
_FastScrollIndexView::DrawBitmap(Canvas& canvas, const FloatRectangle& bounds, const Bitmap& bitmap)
{
result r = E_SUCCESS;
- if (bitmap.IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(bitmap))
{
r = canvas.DrawNinePatchedBitmap(bounds, bitmap);
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Failed to draw ninepathced bitmap");
_FastScrollIndexView::DrawBitmap(Canvas& canvas, const FloatRectangle& srcRect, const Bitmap& bitmap, const FloatRectangle& dstRect)
{
result r = E_SUCCESS;
- if (bitmap.IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(bitmap))
{
r = canvas.DrawNinePatchedBitmap(srcRect, bitmap);
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Failed to draw ninepathced bitmap");
_FastScrollPopupView::DrawBitmap(Canvas& canvas, const FloatRectangle& bounds, const Bitmap& bitmap)
{
result r = E_SUCCESS;
- if (bitmap.IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(bitmap))
{
r = canvas.DrawNinePatchedBitmap(bounds, bitmap);
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Failed to draw ninepathced bitmap");
_FastScrollPopupView::DrawBitmap(Canvas& canvas, const FloatRectangle& srcRect, const Bitmap& bitmap, const FloatRectangle& dstRect)
{
result r = E_SUCCESS;
- if (bitmap.IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(bitmap))
{
r = canvas.DrawNinePatchedBitmap(srcRect, bitmap);
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Failed to draw ninepathced bitmap");
#include <FUiEffects.h>
#include <FUiAnimVisualElementAnimation.h>
#include <FUiCtrlGallery.h>
+#include <FGrp_BitmapImpl.h>
#include <FGrp_CanvasImpl.h>
#include <FGrp_TextTextObject.h>
#include <FGrp_TextTextSimple.h>
if (pImage != null)
{
- if (pImage->GetInternalBitmap()->IsNinePatchedBitmap() == true)
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*(pImage->GetInternalBitmap())))
{
FloatDimension size = pImage->GetSize();
FloatRectangle rect(imagePosition.x, imagePosition.y, size.width, size.height);
if(__pBgColorReplacementBitmap != null)
{
- if (__pBgColorReplacementBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pBgColorReplacementBitmap))
{
r = pCanvas->DrawNinePatchedBitmap(bounds, *__pBgColorReplacementBitmap);
SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
if(__pBgEffectColorReplacementBitmap != null)
{
- if (__pBgEffectColorReplacementBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pBgEffectColorReplacementBitmap))
{
r = pCanvas->DrawNinePatchedBitmap(bounds, *__pBgEffectColorReplacementBitmap);
SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
if (__pProperty->GetFocusDropShadowBitmap() != null && _FloatCompareGE(ratio, REFERENCE_FACTOR))
{
const Bitmap* pShadowBitmap = __pProperty->GetFocusDropShadowBitmap();
- if (pShadowBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pShadowBitmap))
{
canvas.DrawNinePatchedBitmap(__pProperty->GetDropShadowBitmapBounds(), *pShadowBitmap);
}
if (__pProperty->GetDropShadowBitmap() != null && _FloatCompareGE(ratio, REFERENCE_FACTOR))
{
const Bitmap* pShadowBitmap = __pProperty->GetDropShadowBitmap();
- if (pShadowBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pShadowBitmap))
{
canvas.DrawNinePatchedBitmap(__pProperty->GetDropShadowBitmapBounds(), *pShadowBitmap);
}
pCanvas->Clear();
- if (bitmap.IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(bitmap))
{
pCanvas->DrawNinePatchedBitmap(FloatRectangle(0.0f, 0.0f, bitmap.GetWidthF(), bitmap.GetHeightF()), bitmap);
}
pCheckBgCanvas->Clear();
// draw background of check box
- if (pBackgroundBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundBitmap))
{
pCheckBgCanvas->DrawNinePatchedBitmap(FloatRectangle(0.0f, 0.0f, width, height), *pBackgroundBitmap);
}
{
if (pBitmap != null)
{
- if (pBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBitmap))
{
pCanvas->DrawNinePatchedBitmap(FloatRectangle(0.0f, 0.0f, pBitmap->GetWidthF(), pBitmap->GetHeightF()), *pBitmap);
}
overlayBitmapBounds.SetPosition(0.0f, 0.0f);
Bitmap* pBitmap = pOverlayBitmap->pBitmap;
- if(pBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBitmap))
{
pCanvas->DrawNinePatchedBitmap(overlayBitmapBounds, *pBitmap);
}
SysLogException(NID_UI_CTRL, E_SUCCESS, "currentValue %d", currentValue.ToInt());
if (pBitmap != null)
{
- if (pBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBitmap))
{
pCanvas->DrawNinePatchedBitmap(FloatRectangle(0.0f, 0.0f, pBitmap->GetWidthF(), pBitmap->GetHeightF()), *pBitmap);
}
pCanvas->Clear();
FloatRectangle bounds(__pIconListView->GetBoundsF());
bounds.SetPosition(0.0f, 0.0f);
- if (pBackgroundBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundBitmap))
{
pCanvas->DrawNinePatchedBitmap(bounds, *pBackgroundBitmap);
}
if (pBitmap != null)
{
FloatRectangle bitmapBounds(bounds.x + bitmapXPosition, bounds.y, bitmapWidth, bitmapHeight);
- if (pBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBitmap))
{
pCanvas->DrawNinePatchedBitmap(bitmapBounds, *pBitmap);
}
pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
pCanvas->Clear();
- if (pBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBitmap))
{
pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBitmap);
}
if (pEffectBitmap != null)
{
- if (pEffectBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pEffectBitmap))
{
pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pEffectBitmap);
}
pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
pCanvas->Clear();
- if (pDrawBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pDrawBitmap))
{
pCanvas->DrawNinePatchedBitmap(FloatRectangle(0.0f, 0.0f, rect.width, rect.height), *pDrawBitmap);
}
#include <FUiCtrlMessageBox.h>
#include <FBaseSysLog.h>
#include <FBaseErrorDefine.h>
+#include <FGrp_BitmapImpl.h>
#include <FGrp_CanvasImpl.h>
#include <FGrp_TextTextSimple.h>
#include "FUi_AccessibilityContainer.h"
// Draw BG
if (pBackgroundBitmap != null)
{
- if (pBackgroundBitmap->IsNinePatchedBitmap() == true)
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundBitmap))
{
pCanvas->DrawNinePatchedBitmap(bgBounds, *pBackgroundBitmap);
}
// Draw Outline
if (!isCustomBitmap && pOutlineBitmap != null)
{
- if (pOutlineBitmap->IsNinePatchedBitmap() == true)
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pOutlineBitmap))
{
pCanvas->DrawNinePatchedBitmap(bgBounds, *pOutlineBitmap);
}
return r;
}
- if (pBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBitmap))
{
r = canvas.DrawNinePatchedBitmap(bounds, *pBitmap);
SysTryReturn(NID_UI_CTRL, (r == E_SUCCESS), r, r, "[%s] Propagating.", GetErrorMessage(r));
bounds.height = bitmapHeight;
}
- if (pBackgroundBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundBitmap))
{
result r = pCanvas->DrawNinePatchedBitmap(bounds, *pBackgroundBitmap);
SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
pColorReplacedBitmap = _BitmapImpl::GetColorReplacedBitmapN(*pGroupStyleBitmap, Color::GetColor(COLOR_ID_MAGENTA), __pPanel->GetBackgroundColor());
if (pColorReplacedBitmap != null)
{
- if (pGroupStyleBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pGroupStyleBitmap))
{
r = pCanvas->DrawNinePatchedBitmap(bounds, *pColorReplacedBitmap);
SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
r = GetLastResult();
SysTryCatch(NID_UI_CTRL, pColorReplacedBitmap != null && r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
- if (pGroupStyleBackgroundBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pGroupStyleBackgroundBitmap))
{
r = pCanvas->DrawNinePatchedBitmap(bounds, *pColorReplacedBitmap);
SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
__pPopup->GetBoundsF().height + transTopMargin + transBottomMargin);
const Bitmap* pBackgroundBitmap = __pPopup->GetBackgroundBitmap();
- if (pBackgroundBitmap->IsNinePatchedBitmap() == true)
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundBitmap))
{
pCanvas->DrawNinePatchedBitmap(bounds, *pBackgroundBitmap);
}
const Bitmap* pOutlineBitmap = __pPopup->GetOutlineBitmap();
- if (pOutlineBitmap->IsNinePatchedBitmap() == true)
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pOutlineBitmap))
{
pBackgroundCanvas->DrawNinePatchedBitmap(bounds, *pOutlineBitmap);
}
// Draw BG
if (pBackgroundBitmap != null)
{
- if (pBackgroundBitmap->IsNinePatchedBitmap() == true)
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundBitmap))
{
pCanvas->DrawNinePatchedBitmap(bgBounds, *pBackgroundBitmap);
}
// Draw Outline
if (!isCustomBitmap && pOutlineBitmap != null)
{
- if (pOutlineBitmap->IsNinePatchedBitmap() == true)
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pOutlineBitmap))
{
pCanvas->DrawNinePatchedBitmap(bgBounds, *pOutlineBitmap);
}
{
result r = E_SUCCESS;
- if (pBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBitmap))
{
r = canvas.DrawNinePatchedBitmap(bounds, *pBitmap);
SysTryReturn(NID_UI_CTRL, (r == E_SUCCESS), r, r, "[%s] Propagating.", GetErrorMessage(r));
_ScrollPresenter::DrawBitmap(Canvas& canvas, const FloatRectangle& bounds, const Bitmap& bitmap)
{
result r = E_SUCCESS;
- if (bitmap.IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(bitmap))
{
r = canvas.DrawNinePatchedBitmap(bounds, bitmap);
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Failed to draw ninepathced bitmap");
pCanvas->SetBackgroundColor(bgColor);
pCanvas->Clear();
- if (pBackgroundBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundBitmap))
{
pCanvas->DrawNinePatchedBitmap(bounds, *pBackgroundBitmap);
}
{
if (__pReplacedSearchFieldNormalBitmap != null)
{
- if (__pReplacedSearchFieldNormalBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pReplacedSearchFieldNormalBitmap))
{
pIconCanvas->DrawNinePatchedBitmap(FloatRectangle(0, 0, iconBounds.width, iconBounds.height), *__pReplacedSearchFieldNormalBitmap);
}
{
if (__pReplacedSearchFieldDisabledBitmap != null)
{
- if (__pReplacedSearchFieldDisabledBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pReplacedSearchFieldDisabledBitmap))
{
pIconCanvas->DrawNinePatchedBitmap(FloatRectangle(0, 0, iconBounds.width, iconBounds.height), *__pReplacedSearchFieldDisabledBitmap);
}
if (!isCustomBitmap && __pSearchFieldEffectBitmap != null)
{
- if (__pSearchFieldEffectBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pSearchFieldEffectBitmap))
{
pIconCanvas->DrawNinePatchedBitmap(FloatRectangle(0, 0, iconBounds.width, iconBounds.height), *__pSearchFieldEffectBitmap);
}
__pFont->GetTextExtent(text, text.GetLength(), textDim);
- if (pBgBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBgBitmap))
{
r = pCanvas->DrawNinePatchedBitmap(overlayRect, *pBgBitmap);
}
SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.", GetErrorMessage(r));
if (isCustomBitmap == false)
{
- if (pEffectBgBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pEffectBgBitmap))
{
r = pCanvas->DrawNinePatchedBitmap(overlayRect, *pEffectBgBitmap);
}
bitmapWidth = pHandleBitmap->GetWidth();
bitmapHeight = pHandleBitmap->GetHeight();
- if (pHandleBitmap->IsNinePatchedBitmap() == false)
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pHandleBitmap))
{
// to clip the center portion of the larger bitmap.
if( bitmapWidth > __handleRect.width )
{
result r = E_SUCCESS;
- if (pBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBitmap))
{
r = canvas.DrawNinePatchedBitmap(bounds, *pBitmap);
SysTryReturn(NID_UI_CTRL, (r == E_SUCCESS), r, r, "[%s] Propagating.", GetErrorMessage(r));
_TabBarPresenter::DrawBitmap(Tizen::Graphics::Canvas& canvas, const Tizen::Graphics::FloatRectangle& bounds, const Tizen::Graphics::Bitmap& bitmap)
{
result r = E_SUCCESS;
- if (bitmap.IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(bitmap))
{
r = canvas.DrawNinePatchedBitmap(bounds, bitmap);
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Fail to draw ninepatched bitmap.")
return;
}
- if (pBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBitmap))
{
r = canvas.DrawNinePatchedBitmap(bounds, *pBitmap);
SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
pCanvas->Clear();
- if (pBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBitmap))
{
pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBitmap); // +++ check floating
}
__checkedBounds = CalculateAnnexBitmapBounds(annexWidth, annexHeight, *pCheckBox);
if (IsChecked() == true)
{
- if (pCheckBox->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pCheckBox))
{
FloatRectangle drawingRect(__checkedBounds.x, __checkedBounds.y, __checkedBounds.width, __checkedBounds.height);
r = pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(drawingRect), *pCheckBox); // +++ check floating
_TableViewItem::DrawBitmap(Canvas& canvas, const FloatRectangle& bounds, const Bitmap& bitmap)
{
result r = E_SUCCESS;
- if (bitmap.IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(bitmap))
{
r = canvas.DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), bitmap); // +++ check floating
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Fail to draw ninepatched bitmap.", GetErrorMessage(r))
Bitmap* pReplacementColorBackgroundBitmap = null;
pReplacementColorBackgroundBitmap = _BitmapImpl::GetColorReplacedBitmapN(*__pTokenBgBitmap, Color::GetColor(COLOR_ID_MAGENTA), selectedTokenColor);
- if (pReplacementColorBackgroundBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pReplacementColorBackgroundBitmap))
{
pTokenCanvas->DrawNinePatchedBitmap(tokenRect, *pReplacementColorBackgroundBitmap);
}
{
pReplacementColorBackgroundBitmap = _BitmapImpl::GetColorReplacedBitmapN(*__pTokenBgBitmap, Color::GetColor(COLOR_ID_MAGENTA), selectedTokenColor);
- if (pReplacementColorBackgroundBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pReplacementColorBackgroundBitmap))
{
pTokenCanvas->DrawNinePatchedBitmap(tokenRect, *pReplacementColorBackgroundBitmap);
}
{
pReplacementColorBackgroundBitmap = _BitmapImpl::GetColorReplacedBitmapN(*__pTokenBgBitmap, Color::GetColor(COLOR_ID_MAGENTA), normalTokenColor);
- if (pReplacementColorBackgroundBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pReplacementColorBackgroundBitmap))
{
pTokenCanvas->DrawNinePatchedBitmap(tokenRect, *pReplacementColorBackgroundBitmap);
}
{
if (pBackgroundBitmap)
{
- if (pBackgroundBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundBitmap))
{
pCanvas->DrawNinePatchedBitmap(bounds, *pBackgroundBitmap);
}
{
if (pReplacementColorBackgroundBitmap)
{
- if (pReplacementColorBackgroundBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pReplacementColorBackgroundBitmap))
{
pCanvas->DrawNinePatchedBitmap(bounds, *pReplacementColorBackgroundBitmap);
}
if (__pBouncingEffectBitmap)
{
- if (__pBouncingEffectBitmap->IsNinePatchedBitmap())
+ if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pBouncingEffectBitmap))
{
pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(rect), *__pBouncingEffectBitmap);