aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Platform.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-10-28 05:08:21 +0000
committernyamatongwe <unknown>2001-10-28 05:08:21 +0000
commitdcdc0127cd5edf2e2f7f9d0d49a4ab5d93a94986 (patch)
treeb2b80c00705f988876282127e462bfb3b3ff2180 /include/Platform.h
parent144d8ad47767077a8205eae0a2749be7dab2b407 (diff)
downloadscintilla-mirror-dcdc0127cd5edf2e2f7f9d0d49a4ab5d93a94986.tar.gz
Hid implementation of Surface.
Changed DrawText to DrawTextNoClip to avoid name clash with macro.
Diffstat (limited to 'include/Platform.h')
-rw-r--r--include/Platform.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/Platform.h b/include/Platform.h
index 0beede070..5281260c4 100644
--- a/include/Platform.h
+++ b/include/Platform.h
@@ -199,10 +199,11 @@ class Palette {
#if PLAT_GTK
void *allocatedPalette; // GdkColor *
int allocatedLen;
-#elif PLAT_WIN
- void *hpal;
#endif
public:
+#if PLAT_WIN
+ void *hpal;
+#endif
bool allowRealization;
Palette();
@@ -277,7 +278,7 @@ public:
virtual void Ellipse(PRectangle rc, ColourAllocated fore, ColourAllocated back)=0;
virtual void Copy(PRectangle rc, Point from, Surface &surfaceSource)=0;
- virtual void DrawText(PRectangle rc, Font &font_, int ybase, const char *s, int len, ColourAllocated fore, ColourAllocated back)=0;
+ virtual void DrawTextNoClip(PRectangle rc, Font &font_, int ybase, const char *s, int len, ColourAllocated fore, ColourAllocated back)=0;
virtual void DrawTextClipped(PRectangle rc, Font &font_, int ybase, const char *s, int len, ColourAllocated fore, ColourAllocated back)=0;
virtual void MeasureWidths(Font &font_, const char *s, int len, int *positions)=0;
virtual int WidthText(Font &font_, const char *s, int len)=0;