aboutsummaryrefslogtreecommitdiffhomepage
path: root/curses/ScintillaCurses.h
diff options
context:
space:
mode:
Diffstat (limited to 'curses/ScintillaCurses.h')
-rw-r--r--curses/ScintillaCurses.h27
1 files changed, 12 insertions, 15 deletions
diff --git a/curses/ScintillaCurses.h b/curses/ScintillaCurses.h
index 620982c2d..1705d0de2 100644
--- a/curses/ScintillaCurses.h
+++ b/curses/ScintillaCurses.h
@@ -10,21 +10,20 @@
extern "C" {
#endif
-typedef void *Scintilla;
/**
* Creates a new Scintilla window.
* Curses does not have to be initialized before calling this function.
* @param callback A callback function for Scintilla notifications.
*/
-Scintilla *scintilla_new(void (*callback)(Scintilla *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.
* @param sci The Scintilla window returned by `scintilla_new()`.
* @return curses `WINDOW`.
*/
-WINDOW *scintilla_get_window(Scintilla *sci);
+WINDOW *scintilla_get_window(void *sci);
/**
* Sends the given message with parameters to the given Scintilla window.
* Curses does not have to be initialized before calling this function.
@@ -33,8 +32,8 @@ WINDOW *scintilla_get_window(Scintilla *sci);
* @param wParam The first parameter.
* @param lParam The second parameter.
*/
-sptr_t scintilla_send_message(Scintilla *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.
@@ -47,8 +46,7 @@ sptr_t scintilla_send_message(Scintilla *sci, unsigned int iMessage,
* pressed.
* @param alt Flag indicating whether or not the alt modifier key is pressed.
*/
-void scintilla_send_key(Scintilla *sci, int key, bool shift, bool ctrl,
- bool alt);
+void scintilla_send_key(void *sci, int key, bool shift, bool ctrl, bool alt);
/**
* Sends the specified mouse event to the given Scintilla window for processing.
* Curses must have been initialized prior to calling this function.
@@ -66,9 +64,8 @@ void scintilla_send_key(Scintilla *sci, int key, bool shift, bool ctrl,
* @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(Scintilla *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
@@ -81,7 +78,7 @@ bool scintilla_send_mouse(Scintilla *sci, int event, unsigned int time,
* @param buffer The buffer to copy clipboard text to.
* @return size of the clipboard text.
*/
-int scintilla_get_clipboard(Scintilla *sci, char *buffer);
+int scintilla_get_clipboard(void *sci, char *buffer);
/**
* Refreshes the Scintilla window on the virtual screen.
* This should be done along with the normal curses `noutrefresh()`, as the
@@ -89,7 +86,7 @@ int scintilla_get_clipboard(Scintilla *sci, char *buffer);
* Curses must have been initialized prior to calling this function.
* @param sci The Scintilla window returned by `scintilla_new()`.
*/
-void scintilla_noutrefresh(Scintilla *sci);
+void scintilla_noutrefresh(void *sci);
/**
* Refreshes the Scintilla window on the physical screen.
* This should be done along with the normal curses `refresh()`, as the physical
@@ -97,13 +94,13 @@ void scintilla_noutrefresh(Scintilla *sci);
* Curses must have been initialized prior to calling this function.
* @param sci The Scintilla window returned by `scintilla_new()`.
*/
-void scintilla_refresh(Scintilla *sci);
+void scintilla_refresh(void *sci);
/**
* Deletes the given Scintilla window.
* Curses must have been initialized prior to calling this function.
* @param sci The Scintilla window returned by `scintilla_new()`.
*/
-void scintilla_delete(Scintilla *sci);
+void scintilla_delete(void *sci);
/**
* Returns the curses `COLOR_PAIR` for the given curses foreground and