aboutsummaryrefslogtreecommitdiffhomepage
path: root/curses/ScintillaCurses.h
diff options
context:
space:
mode:
authormitchell <unknown>2020-03-16 14:35:44 -0400
committermitchell <unknown>2020-03-16 14:35:44 -0400
commitb75ab9523b3706c9130017bae130288313a03a7e (patch)
treeb4f9bd4e1357cd323c7d311372a5f0e3ad192dd9 /curses/ScintillaCurses.h
parentf85830599f08d6e80ed053e9f70cbd3922e68ea1 (diff)
downloadscintilla-mirror-b75ab9523b3706c9130017bae130288313a03a7e.tar.gz
Modernized and reformatted curses platform code.
Also fixed a minor bug in autocompletion list width display.
Diffstat (limited to 'curses/ScintillaCurses.h')
-rw-r--r--curses/ScintillaCurses.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/curses/ScintillaCurses.h b/curses/ScintillaCurses.h
index 080254ba7..9f8ddc4fa 100644
--- a/curses/ScintillaCurses.h
+++ b/curses/ScintillaCurses.h
@@ -15,8 +15,8 @@ extern "C" {
* Curses does not have to be initialized before calling this function.
* @param callback A callback function for Scintilla notifications.
*/
-void *scintilla_new(void (*callback)(void *sci, int iMessage, void *wParam,
- void *lParam));
+void *scintilla_new(
+ void (*callback)(void *sci, int iMessage, void *wParam, void *lParam));
/**
* Returns the curses `WINDOW` associated with the given Scintilla window.
* Curses must have been initialized prior to calling this function.
@@ -32,8 +32,8 @@ WINDOW *scintilla_get_window(void *sci);
* @param wParam The first parameter.
* @param lParam The second parameter.
*/
-sptr_t scintilla_send_message(void *sci, unsigned int iMessage, uptr_t wParam,
- sptr_t lParam);
+sptr_t scintilla_send_message(
+ void *sci, unsigned int iMessage, uptr_t wParam, sptr_t lParam);
/**
* Sends the specified key to the given Scintilla window for processing.
* If it is not consumed, an SCNotification will be emitted.
@@ -64,8 +64,9 @@ void scintilla_send_key(void *sci, int key, bool shift, bool ctrl, bool alt);
* @param alt Flag indicating whether or not the alt modifier key is pressed.
* @return whether or not Scintilla handled the mouse event
*/
-bool scintilla_send_mouse(void *sci, int event, unsigned int time, int button,
- int y, int x, bool shift, bool ctrl, bool alt);
+bool scintilla_send_mouse(
+ void *sci, int event, unsigned int time, int button, int y, int x, bool shift,
+ bool ctrl, bool alt);
/**
* Copies the text of Scintilla's internal clipboard, not the primary and/or
* secondary X selections, into the given buffer and returns the size of the