Added ability to disable images in wxRTC for performance or image corruption reasons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2111,7 +2111,21 @@ public:
|
||||
|
||||
bool GetVirtualAttributesEnabled() const;
|
||||
|
||||
/**
|
||||
Enable or disable images
|
||||
*/
|
||||
|
||||
void EnableImages(bool b) { m_enableImages = b; }
|
||||
|
||||
/**
|
||||
Returns @true if images are enabled.
|
||||
*/
|
||||
|
||||
bool GetImagesEnabled() const { return m_enableImages; }
|
||||
|
||||
wxRichTextBuffer* m_buffer;
|
||||
bool m_enableVirtualAttributes;
|
||||
bool m_enableImages;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -4642,7 +4656,7 @@ public:
|
||||
/**
|
||||
Creates a cached image at the required size.
|
||||
*/
|
||||
virtual bool LoadImageCache(wxDC& dc, bool resetCache = false, const wxSize& parentSize = wxDefaultSize);
|
||||
virtual bool LoadImageCache(wxDC& dc, wxRichTextDrawingContext& context, bool resetCache = false, const wxSize& parentSize = wxDefaultSize);
|
||||
|
||||
protected:
|
||||
wxRichTextImageBlock m_imageBlock;
|
||||
|
Reference in New Issue
Block a user