diff options
| author | Devin J. Pohly <djpohly@gmail.com> | 2018-02-24 14:53:23 -0600 |
|---|---|---|
| committer | Devin J. Pohly <djpohly@gmail.com> | 2018-02-25 21:56:26 -0600 |
| commit | 88d8293fb4ba150a5f19d58d133b5db93d9dcfa5 (patch) | |
| tree | f9e3cce2feda5565049c5d99012e8bd84144b8a2 /win.h | |
| parent | Split mode bits between Term and TermWindow (diff) | |
| download | st-88d8293fb4ba150a5f19d58d133b5db93d9dcfa5.tar.gz st-88d8293fb4ba150a5f19d58d133b5db93d9dcfa5.zip | |
Move win-agnostic parts of draw/drawregion to st.c
Introduces three functions to encapsulate X-specific behavior:
* xdrawline: draws a portion of a single line (used by drawregion)
* xbegindraw: called to prepare for drawing (will be useful for e.g.
Wayland) and returns true if drawing should happen
* xfinishdraw: called to finish drawing (used by draw)
Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
Diffstat (limited to '')
| -rw-r--r-- | win.h | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -23,12 +23,12 @@ enum win_mode { | |||
| 23 | |MODE_MOUSEMANY, | 23 | |MODE_MOUSEMANY, |
| 24 | }; | 24 | }; |
| 25 | 25 | ||
| 26 | void draw(void); | ||
| 27 | void drawregion(int, int, int, int); | ||
| 28 | |||
| 29 | void xbell(void); | 26 | void xbell(void); |
| 30 | void xclipcopy(void); | 27 | void xclipcopy(void); |
| 28 | void xdrawcursor(void); | ||
| 29 | void xdrawline(Line, int, int, int); | ||
| 31 | void xhints(void); | 30 | void xhints(void); |
| 31 | void xfinishdraw(void); | ||
| 32 | void xloadcols(void); | 32 | void xloadcols(void); |
| 33 | int xsetcolorname(int, const char *); | 33 | int xsetcolorname(int, const char *); |
| 34 | void xsettitle(char *); | 34 | void xsettitle(char *); |
| @@ -36,3 +36,4 @@ int xsetcursor(int); | |||
| 36 | void xsetmode(int, unsigned int); | 36 | void xsetmode(int, unsigned int); |
| 37 | void xsetpointermotion(int); | 37 | void xsetpointermotion(int); |
| 38 | void xsetsel(char *); | 38 | void xsetsel(char *); |
| 39 | int xstartdraw(void); | ||
