X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/64a3ee5fd2926c3e5341af2e4d62925fddb90c43..abd61ebf9b7b4101f118d53d8ff9942530ef77b9:/contrib/src/stc/scintilla/include/Scintilla.h diff --git a/contrib/src/stc/scintilla/include/Scintilla.h b/contrib/src/stc/scintilla/include/Scintilla.h index 822b2ea9d7..b4ed329f72 100644 --- a/contrib/src/stc/scintilla/include/Scintilla.h +++ b/contrib/src/stc/scintilla/include/Scintilla.h @@ -1,119 +1,96 @@ // Scintilla source code edit control -// Scintilla.h - interface to the edit control -// Copyright 1998-2000 by Neil Hodgson +/** @file Scintilla.h + ** Interface to the edit control. + **/ +// Copyright 1998-2003 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. +// Most of this file is automatically generated from the Scintilla.iface interface definition +// file which contains any comments about the definitions. HFacer.py does the generation. + #ifndef SCINTILLA_H #define SCINTILLA_H -// Compile-time configuration options -#define MACRO_SUPPORT 1 // Comment out to remove macro hooks - -#if PLAT_GTK -#include -#include - -#ifdef __cplusplus -extern "C" { +#if LCCWIN +typedef BOOL bool; #endif -#define SCINTILLA(obj) GTK_CHECK_CAST (obj, scintilla_get_type (), ScintillaObject) -#define SCINTILLA_CLASS(klass) GTK_CHECK_CLASS_CAS T (klass, scintilla_get_type (), ScintillaClass) -#define IS_SCINTILLA(obj) GTK_CHECK_TYPE (obj, scintilla_get_type ()) - - typedef struct _ScintillaObject ScintillaObject; - typedef struct _ScintillaClass ScintillaClass; - - struct _ScintillaObject - { - GtkFixed vbox; - void *pscin; - }; - - struct _ScintillaClass - { - GtkFixedClass parent_class; - - void (* command) (ScintillaObject *ttt); - void (* notify) (ScintillaObject *ttt); - }; - - guint scintilla_get_type (void); - GtkWidget* scintilla_new (void); - void scintilla_set_id (ScintillaObject *sci,int id); - long scintilla_send_message (ScintillaObject *sci,int iMessage,int wParam,int lParam); - -#include "WinDefs.h" - -#ifdef __cplusplus -} +#if PLAT_WIN +// Return false on failure: +bool Scintilla_RegisterClasses(void *hInstance); +bool Scintilla_ReleaseResources(); #endif +int Scintilla_LinkLexers(); +// Here should be placed typedefs for uptr_t, an unsigned integer type large enough to +// hold a pointer and sptr_t, a signed integer large enough to hold a pointer. +// May need to be changed for 64 bit platforms. +#if _MSC_VER >= 1300 +#include #endif - -#if PLAT_WX -#include "WinDefs.h" +#ifdef MAXULONG_PTR +typedef ULONG_PTR uptr_t; +typedef LONG_PTR sptr_t; +#else +typedef unsigned long uptr_t; +typedef long sptr_t; #endif -// Both GTK and Windows +typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam); -#define INVALID_POSITION -1 - -// Define start of Scintilla messages to be greater than all edit (EM_*) messages -// as many EM_ messages can be used. +//++Autogenerated -- start of section automatically generated from Scintilla.iface +#define INVALID_POSITION -1 #define SCI_START 2000 #define SCI_OPTIONAL_START 3000 #define SCI_LEXER_START 4000 - -#define SCI_ADDTEXT SCI_START + 1 -#define SCI_ADDSTYLEDTEXT SCI_START + 2 -#define SCI_INSERTTEXT SCI_START + 3 -#define SCI_CLEARALL SCI_START + 4 -#define SCI_GETLENGTH SCI_START + 6 -#define SCI_GETCHARAT SCI_START + 7 -#define SCI_GETCURRENTPOS SCI_START + 8 -#define SCI_GETANCHOR SCI_START + 9 -#define SCI_GETSTYLEAT SCI_START + 10 - -#define SCI_REDO SCI_START + 11 -#define SCI_SETUNDOCOLLECTION SCI_START + 12 -#define SCI_SELECTALL SCI_START + 13 -#define SCI_SETSAVEPOINT SCI_START + 14 -#define SCI_GETSTYLEDTEXT SCI_START + 15 -#define SCI_CANREDO SCI_START + 16 -#define SCI_MARKERLINEFROMHANDLE SCI_START + 17 -#define SCI_MARKERDELETEHANDLE SCI_START + 18 - -#define SC_UNDOCOLLECT_NONE 0 -#define SC_UNDOCOLLECT_AUTOSTART 1 - -#define SCI_GETVIEWWS SCI_START + 20 -#define SCI_SETVIEWWS SCI_START + 21 -#define SCI_CHANGEPOSITION SCI_START + 22 -#define SCI_GOTOLINE SCI_START + 24 -#define SCI_GOTOPOS SCI_START + 25 -#define SCI_SETANCHOR SCI_START + 26 -#define SCI_GETCURLINE SCI_START + 27 -#define SCI_GETENDSTYLED SCI_START + 28 -#define SCI_CONVERTEOLS SCI_START + 29 - -#define SCI_GETEOLMODE SCI_START + 30 -#define SCI_SETEOLMODE SCI_START + 31 - +#define SCI_ADDTEXT 2001 +#define SCI_ADDSTYLEDTEXT 2002 +#define SCI_INSERTTEXT 2003 +#define SCI_CLEARALL 2004 +#define SCI_CLEARDOCUMENTSTYLE 2005 +#define SCI_GETLENGTH 2006 +#define SCI_GETCHARAT 2007 +#define SCI_GETCURRENTPOS 2008 +#define SCI_GETANCHOR 2009 +#define SCI_GETSTYLEAT 2010 +#define SCI_REDO 2011 +#define SCI_SETUNDOCOLLECTION 2012 +#define SCI_SELECTALL 2013 +#define SCI_SETSAVEPOINT 2014 +#define SCI_GETSTYLEDTEXT 2015 +#define SCI_CANREDO 2016 +#define SCI_MARKERLINEFROMHANDLE 2017 +#define SCI_MARKERDELETEHANDLE 2018 +#define SCI_GETUNDOCOLLECTION 2019 +#define SCWS_INVISIBLE 0 +#define SCWS_VISIBLEALWAYS 1 +#define SCWS_VISIBLEAFTERINDENT 2 +#define SCI_GETVIEWWS 2020 +#define SCI_SETVIEWWS 2021 +#define SCI_POSITIONFROMPOINT 2022 +#define SCI_POSITIONFROMPOINTCLOSE 2023 +#define SCI_GOTOLINE 2024 +#define SCI_GOTOPOS 2025 +#define SCI_SETANCHOR 2026 +#define SCI_GETCURLINE 2027 +#define SCI_GETENDSTYLED 2028 #define SC_EOL_CRLF 0 #define SC_EOL_CR 1 #define SC_EOL_LF 2 - -#define SCI_STARTSTYLING SCI_START + 32 -#define SCI_SETSTYLING SCI_START + 33 - -#define SCI_SETBUFFEREDDRAW SCI_START + 35 -#define SCI_SETTABWIDTH SCI_START + 36 -#define SCI_SETCODEPAGE SCI_START + 37 -#define SCI_SETUSEPALETTE SCI_START + 39 - +#define SCI_CONVERTEOLS 2029 +#define SCI_GETEOLMODE 2030 +#define SCI_SETEOLMODE 2031 +#define SCI_STARTSTYLING 2032 +#define SCI_SETSTYLING 2033 +#define SCI_GETBUFFEREDDRAW 2034 +#define SCI_SETBUFFEREDDRAW 2035 +#define SCI_SETTABWIDTH 2036 +#define SCI_GETTABWIDTH 2121 +#define SC_CP_UTF8 65001 +#define SC_CP_DBCS 1 +#define SCI_SETCODEPAGE 2037 +#define SCI_SETUSEPALETTE 2039 #define MARKER_MAX 31 - #define SC_MARK_CIRCLE 0 #define SC_MARK_ROUNDRECT 1 #define SC_MARK_ARROW 2 @@ -123,224 +100,527 @@ extern "C" { #define SC_MARK_ARROWDOWN 6 #define SC_MARK_MINUS 7 #define SC_MARK_PLUS 8 - -#define SCI_MARKERDEFINE SCI_START + 40 -#define SCI_MARKERSETFORE SCI_START + 41 -#define SCI_MARKERSETBACK SCI_START + 42 -#define SCI_MARKERADD SCI_START + 43 -#define SCI_MARKERDELETE SCI_START + 44 -#define SCI_MARKERDELETEALL SCI_START + 45 -#define SCI_MARKERGET SCI_START + 46 -#define SCI_MARKERNEXT SCI_START + 47 -#define SCI_MARKERPREVIOUS SCI_START + 48 - +#define SC_MARK_VLINE 9 +#define SC_MARK_LCORNER 10 +#define SC_MARK_TCORNER 11 +#define SC_MARK_BOXPLUS 12 +#define SC_MARK_BOXPLUSCONNECTED 13 +#define SC_MARK_BOXMINUS 14 +#define SC_MARK_BOXMINUSCONNECTED 15 +#define SC_MARK_LCORNERCURVE 16 +#define SC_MARK_TCORNERCURVE 17 +#define SC_MARK_CIRCLEPLUS 18 +#define SC_MARK_CIRCLEPLUSCONNECTED 19 +#define SC_MARK_CIRCLEMINUS 20 +#define SC_MARK_CIRCLEMINUSCONNECTED 21 +#define SC_MARK_BACKGROUND 22 +#define SC_MARK_DOTDOTDOT 23 +#define SC_MARK_ARROWS 24 +#define SC_MARK_PIXMAP 25 +#define SC_MARK_FULLRECT 26 +#define SC_MARK_CHARACTER 10000 +#define SC_MARKNUM_FOLDEREND 25 +#define SC_MARKNUM_FOLDEROPENMID 26 +#define SC_MARKNUM_FOLDERMIDTAIL 27 +#define SC_MARKNUM_FOLDERTAIL 28 +#define SC_MARKNUM_FOLDERSUB 29 #define SC_MARKNUM_FOLDER 30 #define SC_MARKNUM_FOLDEROPEN 31 - -#define SC_MASK_FOLDERS ((1<