diff options
author | nyamatongwe <unknown> | 2011-06-25 07:58:03 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-06-25 07:58:03 +1000 |
commit | 640bc7546d4d8ad5228e09ed2d280ea12b0690e9 (patch) | |
tree | 8b0e456078c1db7c0751a9edee6bfbe258a24792 /macosx/PlatMacOSX.cxx | |
parent | aa198d68b4f938a20aadfb53267fab87f64a7004 (diff) | |
download | scintilla-mirror-640bc7546d4d8ad5228e09ed2d280ea12b0690e9.tar.gz |
Initial implementation of RGBA images.
Diffstat (limited to 'macosx/PlatMacOSX.cxx')
-rw-r--r-- | macosx/PlatMacOSX.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/macosx/PlatMacOSX.cxx b/macosx/PlatMacOSX.cxx index 56c9d32c2..381be992d 100644 --- a/macosx/PlatMacOSX.cxx +++ b/macosx/PlatMacOSX.cxx @@ -12,6 +12,9 @@ #include <sys/time.h> +#include <vector> +#include <map> + #include <Carbon/Carbon.h> #include "QuartzTextLayout.h" #include "TCarbonEvent.h" @@ -482,6 +485,10 @@ void Scintilla::SurfaceImpl::AlphaRectangle(PRectangle rc, int /*cornerSize*/, C } } +void SurfaceImpl::DrawRGBAImage(PRectangle /* rc */, int /* width */, int /* height */, const unsigned char * /* pixelsImage*/) { + // Not supported for Carbon +} + void SurfaceImpl::Ellipse(PRectangle rc, ColourAllocated fore, ColourAllocated back) { // Drawing an ellipse with bezier curves. Code modified from: // http://www.codeguru.com/gdi/ellipse.shtml @@ -1128,6 +1135,7 @@ public: int Find(const char *prefix); void GetValue(int n, char *value, int len); void RegisterImage(int type, const char *xpm_data); + void RegisterRGBAImage(int type, int width, int height, const unsigned char *pixelsImage); void ClearRegisteredImages(); void SetDoubleClickAction(CallBackAction action, void *data) { doubleClickAction = action; @@ -1635,6 +1643,10 @@ void ListBoxImpl::RegisterImage(int type, const char *xpm_data) { xset.Add(type, xpm_data); } +void ListBoxImpl::RegisterRGBAImage(int /* type */, int /* width */, int /* height */, const unsigned char * /*pixelsImage */) { + // Not supported for Carbon +} + void ListBoxImpl::ClearRegisteredImages() { xset.Clear(); } |