#define DALI_TOOLKIT_SCENE_HOLDER_IMPL_H
/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
{
public:
- TestRenderSurface( PositionSize positionSize ) {};
+ TestRenderSurface( PositionSize positionSize ) : mPositionSize(positionSize) {};
- PositionSize GetPositionSize() const override { PositionSize size; return size; };
+ PositionSize GetPositionSize() const override { return mPositionSize; };
virtual void GetDpi( unsigned int& dpiHorizontal, unsigned int& dpiVertical ) { dpiHorizontal = dpiVertical = 96; }
bool ReplaceGraphicsSurface() override { return false; };
- void MoveResize( Dali::PositionSize positionSize ) override {};
+ void MoveResize( Dali::PositionSize positionSize ) override { mPositionSize = positionSize; };
void StartRender() override {};
bool PreRender( bool resizingSurface, const std::vector<Rect<int>>& damagedRects, Rect<int>& clippingRect ) override { return false; };
- void PostRender( bool renderToFbo, bool replacingSurface, bool resizingSurface, const std::vector<Rect<int>>& damagedRects ) override {};
+ void PostRender()
+ {
+ }
+
+ //void PostRender( bool renderToFbo, bool replacingSurface, bool resizingSurface, const std::vector<Rect<int>>& damagedRects ) override {};
void StopRender() override {};
Integration::StencilBufferAvailable GetStencilBufferRequired() override { return Integration::StencilBufferAvailable::FALSE; };
+ int GetSurfaceOrientation() const override {return 0;};
+
+ int GetScreenOrientation() const override {return 0;};
+
void SetBackgroundColor( Vector4 color ) {};
Vector4 GetBackgroundColor() { return Color::WHITE; };
+
+private:
+ PositionSize mPositionSize;
};
namespace Internal
Dali::Integration::SceneHolder::WheelEventSignalType& WheelEventSignal();
+ Dali::Integration::SceneHolder::WheelEventGeneratedSignalType& WheelEventGeneratedSignal();
+
Integration::Scene GetScene();
Dali::RenderSurfaceInterface& GetRenderSurface();
-private:
+ Dali::RenderTaskList GetRenderTaskList();
+
+protected:
TestRenderSurface mRenderSurface;
Integration::Scene mScene;