X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e0e6ac8acc4c32513e9b8a37eb551471e032415f..e0dc13d470f31c31f38927a2565b94cd126ddf9a:/include/wx/msw/dc.h diff --git a/include/wx/msw/dc.h b/include/wx/msw/dc.h index a6021d164f..0ab2cc622e 100644 --- a/include/wx/msw/dc.h +++ b/include/wx/msw/dc.h @@ -133,6 +133,14 @@ public: static void ClearCache(); #endif + // RTL related functions + // --------------------- + + // get or change the layout direction (LTR or RTL) for this dc, + // wxLayout_Default is returned if layout direction is not supported + virtual wxLayoutDirection GetLayoutDirection() const; + virtual void SetLayoutDirection(wxLayoutDirection dir); + protected: void Init() { @@ -224,6 +232,8 @@ protected: virtual void DoDrawPolyPolygon(int n, int count[], wxPoint points[], wxCoord xoffset, wxCoord yoffset, int fillStyle = wxODDEVEN_RULE); + virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const + { return subrect == NULL ? GetSelectedBitmap() : GetSelectedBitmap().GetSubBitmap(*subrect); } #if wxUSE_PALETTE