-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from adamstyl/line-layer-api
Added support for setting the caret and the selection layer. Thanks @adamstyl !
- Loading branch information
Showing
4 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
namespace ScintillaNET; | ||
|
||
/// <summary> | ||
/// The layer on which a <see cref="Scintilla"/> control will draw elements like for example the text selection. | ||
/// </summary> | ||
public enum Layer | ||
{ | ||
/// <summary> | ||
/// Draw the selection background opaquely on the base layer. | ||
/// </summary> | ||
Base = NativeMethods.SC_LAYER_BASE, | ||
|
||
/// <summary> | ||
/// Draw the selection background translucently under the text. This will not work in single phase drawing mode. | ||
/// (<see cref="Phases.One"/>) as there is no under-text phase. | ||
/// </summary> | ||
UnderText = NativeMethods.SC_LAYER_UNDER_TEXT, | ||
|
||
/// <summary> | ||
/// Draw the selection background translucently over the text. | ||
/// </summary> | ||
OverText = NativeMethods.SC_LAYER_OVER_TEXT | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters