{
using PositionSize = Dali::Rect<int>;
-using WindowPosition = Uint16Pair;
namespace Internal
{
virtual ~Window() = default;
static Window* New(const PositionSize& positionSize, const std::string& name, const std::string& className, bool isTransparent);
- WindowPosition GetPosition() const;
- PositionSize GetPositionSize() const;
- Dali::Window::WindowSize GetSize() const;
+ Dali::Window::WindowPosition GetPosition() const;
+ PositionSize GetPositionSize() const;
+ Dali::Window::WindowSize GetSize() const;
void SetPositionSize(PositionSize positionSize);
return new Window( positionSize );
}
-WindowPosition Window::GetPosition() const
+Dali::Window::WindowPosition Window::GetPosition() const
{
PositionSize positionSize = mRenderSurface.GetPositionSize();
- return WindowPosition(positionSize.x, positionSize.y);
+ return Dali::Window::WindowPosition(positionSize.x, positionSize.y);
}
PositionSize Window::GetPositionSize() const
class Window : public BaseHandle
{
public:
+ class IntPair
+ {
+ public:
+ IntPair()
+ : mX(0),
+ mY(0)
+ {
+ };
+
+ IntPair(int x, int y)
+ {
+ mX = x;
+ mY = y;
+ }
+
+ // Default operation
+ public:
+ IntPair(const IntPair&) = default; ///< Default copy constructor
+ IntPair(IntPair&&) = default; ///< Default move constructor
+ IntPair& operator=(const IntPair&) = default; ///< Default copy assignment operator
+ IntPair& operator=(IntPair&&) = default; ///< Default move assignment operator
+
+ // member data
+ private:
+ int mX;
+ int mY;
+ };
+
+public:
using WindowSize = Uint16Pair;
+ using WindowPosition = Dali::Window::IntPair;
using KeyEventSignalType = Signal< void (const KeyEvent&) >;
using TouchEventSignalType = Signal< void (const TouchEvent&) >;