20#ifndef INCLUDED_TOOLKIT_HELPER_CONVERT_HXX
21#define INCLUDED_TOOLKIT_HELPER_CONVERT_HXX
23#include <com/sun/star/awt/Rectangle.hpp>
24#include <com/sun/star/awt/Size.hpp>
25#include <com/sun/star/awt/Point.hpp>
31 return css::awt::Size( rVCLSize.
Width(), rVCLSize.
Height() );
34inline ::Size
VCLSize(
const css::awt::Size& rAWTSize )
36 return ::Size( rAWTSize.Width, rAWTSize.Height );
39inline css::awt::Point
AWTPoint( const ::Point& rVCLPoint )
41 return css::awt::Point( rVCLPoint.X(), rVCLPoint.Y() );
44inline ::Point
VCLPoint(
const css::awt::Point& rAWTPoint )
46 return ::Point( rAWTPoint.X, rAWTPoint.Y );
49inline css::awt::Rectangle
AWTRectangle( const ::tools::Rectangle& rVCLRect )
51 return css::awt::Rectangle( rVCLRect.Left(), rVCLRect.Top(), rVCLRect.GetWidth(), rVCLRect.GetHeight() );
54inline ::tools::Rectangle
VCLRectangle(
const css::awt::Rectangle& rAWTRect )
56 return ::tools::Rectangle(
::Point( rAWTRect.X, rAWTRect.Y ),
::Size( rAWTRect.Width, rAWTRect.Height ) );
constexpr tools::Long Height() const
constexpr tools::Long Width() const
css::awt::Size AWTSize(const Size &rVCLSize)
css::awt::Point AWTPoint(const ::Point &rVCLPoint)
css::awt::Rectangle AWTRectangle(const ::tools::Rectangle &rVCLRect)
inline ::tools::Rectangle VCLRectangle(const css::awt::Rectangle &rAWTRect)
inline ::Size VCLSize(const css::awt::Size &rAWTSize)
inline ::Point VCLPoint(const css::awt::Point &rAWTPoint)