diff options
| author | nyamatongwe <unknown> | 2010-03-13 03:40:05 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2010-03-13 03:40:05 +0000 |
| commit | 679f7ac66d626ad11e676b4833305b7f81682302 (patch) | |
| tree | d74c633c7699ee0a892293c3d949fb10ba0e197b /include/Scintilla.h | |
| parent | 8e37e4efe5f90c7b6157ffd513ac418db7089c2d (diff) | |
| download | scintilla-mirror-679f7ac66d626ad11e676b4833305b7f81682302.tar.gz | |
Change definition of Sci_RangeToFormat to avoid reliance on Platform.h.
Diffstat (limited to 'include/Scintilla.h')
| -rw-r--r-- | include/Scintilla.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index d1f4518fd..999cd86f5 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -905,23 +905,28 @@ struct Sci_TextToFind { #define TextRange Sci_TextRange #define TextToFind Sci_TextToFind -#ifdef PLATFORM_H +typedef void *Sci_SurfaceID; + +struct Sci_Rectangle { + int left; + int top; + int right; + int bottom; +}; /* This structure is used in printing and requires some of the graphics types * from Platform.h. Not needed by most client code. */ struct Sci_RangeToFormat { - SurfaceID hdc; - SurfaceID hdcTarget; - PRectangle rc; - PRectangle rcPage; + Sci_SurfaceID hdc; + Sci_SurfaceID hdcTarget; + Sci_Rectangle rc; + Sci_Rectangle rcPage; Sci_CharacterRange chrg; }; #define RangeToFormat Sci_RangeToFormat -#endif - struct Sci_NotifyHeader { /* Compatible with Windows NMHDR. * hwndFrom is really an environment specific window handle or pointer |
