aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/PlatCocoa.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-20 12:53:27 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-20 12:53:27 +1100
commit921df6efca5b385790a2806f8b8844becb36e773 (patch)
treed84a6c8801e83a972485c052559ab9997e8073d2 /cocoa/PlatCocoa.h
parent2813306346e4087679915c2b30f1be4949f0228a (diff)
downloadscintilla-mirror-921df6efca5b385790a2806f8b8844becb36e773.tar.gz
Add AllocatePixMap method on Surface to create a pixmap surface.
Diffstat (limited to 'cocoa/PlatCocoa.h')
-rw-r--r--cocoa/PlatCocoa.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cocoa/PlatCocoa.h b/cocoa/PlatCocoa.h
index 040821cb8..f8a941f95 100644
--- a/cocoa/PlatCocoa.h
+++ b/cocoa/PlatCocoa.h
@@ -75,11 +75,13 @@ private:
public:
SurfaceImpl();
+ SurfaceImpl(const SurfaceImpl *surface, int width, int height);
~SurfaceImpl() override;
void Init(WindowID wid) override;
void Init(SurfaceID sid, WindowID wid) override;
void InitPixMap(int width, int height, Surface *surface_, WindowID wid) override;
+ std::unique_ptr<Surface> AllocatePixMap(int width, int height) override;
CGContextRef GetContext() { return gc; }
void SetMode(SurfaceMode mode) override;