OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Utilities for GDI+ interoperability. More...
#include <owl/geometry.h>
#include <owl/color.h>
#include <algorithm>
#include <gdiplus.h>
#include <cmath>
Go to the source code of this file.
Namespaces | |
namespace | owl |
Object Windows Library (OWLNext Core) | |
Functions | |
Gdiplus::Color | owl::ConvertToGdiplus (const TColor &v, BYTE alphaChannel=255) |
ConvertToGdiplus overload; Converts TColor to Gdiplus::Color with the given alpha channel. | |
template<class TDest , class T > | |
TDest | owl::ConvertToGdiplus (const T &) |
ConvertToGdiplus template; Converts any of TSize, TPoint and TRect to its counter-part in GDI+; Gdiplus::Size/SizeF, Point/PointF and Rect/RectF. | |
template<> | |
Gdiplus::Size | owl::ConvertToGdiplus< Gdiplus::Size > (const TSize &v) |
template<> | |
Gdiplus::SizeF | owl::ConvertToGdiplus< Gdiplus::SizeF > (const TSize &v) |
template<> | |
Gdiplus::Point | owl::ConvertToGdiplus< Gdiplus::Point > (const TPoint &v) |
template<> | |
Gdiplus::PointF | owl::ConvertToGdiplus< Gdiplus::PointF > (const TPoint &v) |
template<> | |
Gdiplus::Rect | owl::ConvertToGdiplus< Gdiplus::Rect > (const TRect &v) |
template<> | |
Gdiplus::RectF | owl::ConvertToGdiplus< Gdiplus::RectF > (const TRect &v) |
TSize | owl::ConvertFromGdiplus (const Gdiplus::Size &v) |
ConvertFromGdiplus overloads; Converts any of Gdiplus::Size/SizeF, Point/PointF, Rect/RectF and Color to its counter-part in OWLNext; TSize, TPoint, TRect and TColor. | |
TSize | owl::ConvertFromGdiplus (const Gdiplus::SizeF &v) |
TPoint | owl::ConvertFromGdiplus (const Gdiplus::Point &v) |
TPoint | owl::ConvertFromGdiplus (const Gdiplus::PointF &v) |
TRect | owl::ConvertFromGdiplus (const Gdiplus::Rect &v) |
TRect | owl::ConvertFromGdiplus (const Gdiplus::RectF &v) |
TColor | owl::ConvertFromGdiplus (const Gdiplus::Color &v) |
Converts Gdiplus::Color to TColor. | |
template<class TDest , class T > | |
TDest | owl::gdiplus_cast (const T &) |
gdiplus_cast template; Simulates a cast operator that can convert to and from any of OWLNext types TSize, TPoint, TRect and TColor, and its counter-part in GDI+; Gdiplus::Size/SizeF, Point/PointF, Rect/RectF and Color. | |
template<> | |
Gdiplus::Size | owl::gdiplus_cast< Gdiplus::Size > (const TSize &v) |
template<> | |
Gdiplus::SizeF | owl::gdiplus_cast< Gdiplus::SizeF > (const TSize &v) |
template<> | |
Gdiplus::Point | owl::gdiplus_cast< Gdiplus::Point > (const TPoint &v) |
template<> | |
Gdiplus::PointF | owl::gdiplus_cast< Gdiplus::PointF > (const TPoint &v) |
template<> | |
Gdiplus::Rect | owl::gdiplus_cast< Gdiplus::Rect > (const TRect &v) |
template<> | |
Gdiplus::RectF | owl::gdiplus_cast< Gdiplus::RectF > (const TRect &v) |
template<> | |
Gdiplus::Color | owl::gdiplus_cast< Gdiplus::Color > (const TColor &v) |
template<> | |
TSize | owl::gdiplus_cast< TSize > (const Gdiplus::Size &v) |
template<> | |
TSize | owl::gdiplus_cast< TSize > (const Gdiplus::SizeF &v) |
template<> | |
TPoint | owl::gdiplus_cast< TPoint > (const Gdiplus::Point &v) |
template<> | |
TPoint | owl::gdiplus_cast< TPoint > (const Gdiplus::PointF &v) |
template<> | |
TRect | owl::gdiplus_cast< TRect > (const Gdiplus::Rect &v) |
template<> | |
TRect | owl::gdiplus_cast< TRect > (const Gdiplus::RectF &v) |
template<> | |
TColor | owl::gdiplus_cast< TColor > (const Gdiplus::Color &v) |
Utilities for GDI+ interoperability.
Definition in file gdiplus.h.