projects
/
platform
/
core
/
uifw
/
dali-adaptor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "[Tizen] Add screen and client rotation itself function"
[platform/core/uifw/dali-adaptor.git]
/
dali
/
integration-api
/
adaptor-framework
/
render-surface-interface.h
diff --git
a/dali/integration-api/adaptor-framework/render-surface-interface.h
b/dali/integration-api/adaptor-framework/render-surface-interface.h
index
687dd38
..
25ad128
100644
(file)
--- a/
dali/integration-api/adaptor-framework/render-surface-interface.h
+++ b/
dali/integration-api/adaptor-framework/render-surface-interface.h
@@
-2,7
+2,7
@@
#define DALI_RENDER_SURFACE_INTERFACE_H
/*
#define DALI_RENDER_SURFACE_INTERFACE_H
/*
- * Copyright (c) 20
19
Samsung Electronics Co., Ltd.
+ * Copyright (c) 20
20
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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-19,9
+19,10
@@
*/
// EXTERNAL INCLUDES
*/
// EXTERNAL INCLUDES
-#include <dali/integration-api/render-surface.h>
#include <dali/integration-api/core-enumerations.h>
#include <dali/public-api/math/vector4.h>
#include <dali/integration-api/core-enumerations.h>
#include <dali/public-api/math/vector4.h>
+#include <dali/public-api/math/rect.h>
+#include <dali/public-api/object/any.h>
namespace Dali
{
namespace Dali
{
@@
-39,6
+40,11
@@
class GraphicsInterface;
}
/**
}
/**
+ * @brief The position and size of the render surface.
+ */
+typedef Dali::Rect<int> PositionSize;
+
+/**
* @brief Interface for a render surface onto which Dali draws.
*
* Dali::Adaptor requires a render surface to draw on to. This is
* @brief Interface for a render surface onto which Dali draws.
*
* Dali::Adaptor requires a render surface to draw on to. This is
@@
-51,10
+57,17
@@
class GraphicsInterface;
* implementation of RenderSurface for the given platform
*/
* implementation of RenderSurface for the given platform
*/
-class RenderSurfaceInterface
: public Dali::Integration::RenderSurface
+class RenderSurfaceInterface
{
public:
{
public:
+ enum Type
+ {
+ WINDOW_RENDER_SURFACE,
+ PIXMAP_RENDER_SURFACE,
+ NATIVE_RENDER_SURFACE
+ };
+
/**
* @brief Constructor
* Inlined as this is a pure abstract interface
/**
* @brief Constructor
* Inlined as this is a pure abstract interface
@@
-87,12
+100,6
@@
public:
virtual void GetDpi( unsigned int& dpiHorizontal, unsigned int& dpiVertical ) = 0;
/**
virtual void GetDpi( unsigned int& dpiHorizontal, unsigned int& dpiVertical ) = 0;
/**
- * @brief Return the orientation of the surface.
- * @return The orientation
- */
- virtual int GetOrientation() const = 0;
-
- /**
* @brief InitializeGraphics the platform specific graphics surface interfaces
*/
virtual void InitializeGraphics() = 0;
* @brief InitializeGraphics the platform specific graphics surface interfaces
*/
virtual void InitializeGraphics() = 0;
@@
-160,7
+167,7
@@
public:
/**
* @brief Gets the surface type
*/
/**
* @brief Gets the surface type
*/
- virtual Dali::
Integration::RenderSu
rface::Type GetSurfaceType() = 0;
+ virtual Dali::
RenderSurfaceInte
rface::Type GetSurfaceType() = 0;
/**
* @brief Makes the graphics context current
/**
* @brief Makes the graphics context current