aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-03-22 03:21:23 +0000
committernyamatongwe <unknown>2001-03-22 03:21:23 +0000
commitd9525c42114f501c0696d1cc9a9ffb928f2a3157 (patch)
treeb2598e5922670b7ba9685ac4ef8029e064672927
parentff2392c6c36dc4f5acbed3505ae584c97e63792a (diff)
downloadscintilla-mirror-d9525c42114f501c0696d1cc9a9ffb928f2a3157.tar.gz
Patch from James Larcombe.
Functions to delete from caret to end of line and from start of line to caret. Mode for caret policy to be even handed with respect to left and right margins rather than favouring display to the left.
-rw-r--r--include/Scintilla.h3
-rw-r--r--include/Scintilla.iface9
2 files changed, 12 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index 833418171..470911397 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -366,6 +366,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define CARET_SLOP 0x01
#define CARET_CENTER 0x02
#define CARET_STRICT 0x04
+#define CARET_XEVEN 0x08
#define SCI_SETCARETPOLICY 2369
#define SCI_LINESONSCREEN 2370
#define SCI_USEPOPUP 2371
@@ -393,6 +394,8 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define VISIBLE_SLOP 0x01
#define VISIBLE_STRICT 0x04
#define SCI_SETVISIBLEPOLICY 2394
+#define SCI_DELLINELEFT 2395
+#define SCI_DELLINERIGHT 2396
#define SCI_GRABFOCUS 2400
#define SCI_STARTRECORD 3001
#define SCI_STOPRECORD 3002
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index c4d3c54f7..87bfccc7a 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -971,6 +971,9 @@ val CARET_CENTER=0x02
# If CARET_SLOP also set then reposition whenever outside slop border
# If CARET_SLOP not set then recentre even when visible
val CARET_STRICT=0x04
+# If CARET_XEVEN set then both left and right margins are given equal weight
+# rather than favouring left following behaviour.
+val CARET_XEVEN=0x08
# Set the way the line the caret is on is kept visible.
fun void SetCaretPolicy=2369(int caretPolicy, int caretSlop)
@@ -1038,6 +1041,12 @@ val VISIBLE_STRICT=0x04
# Set the way the display area is determined when a particular line is to be moved to.
fun void SetVisiblePolicy=2394(int visiblePolicy, int visibleSlop)
+# Delete back from the current position to the start of the line
+fun void DelLineLeft=2395(,)
+
+# Delete forwards from the current position to the end of the line
+fun void DelLineRight=2396(,)
+
# Set the focus to this Scintilla widget.
# GTK+ Specific
fun void GrabFocus=2400(,)