Skip to content

Commit

Permalink
Add cursor color bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
thorio committed Oct 1, 2023
1 parent 4ca334d commit 8d9ffd1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/cfl_input.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ extern "C" {
int widget##_copy(widget *, int clipboard); \
int widget##_undo(widget *); \
int widget##_copy_cuts(widget *); \
unsigned int widget##_cursor_color(widget *); \
void widget##_set_cursor_color(widget *, unsigned int s); \
int widget##_text_font(widget *); \
void widget##_set_text_font(widget *, int s); \
unsigned int widget##_text_color(widget *); \
Expand Down
7 changes: 7 additions & 0 deletions src/cfl_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@
LOCK(auto ret = self->cut()); \
return ret; \
} \
unsigned int widget##_cursor_color(widget *self) { \
LOCK(auto ret = self->cursor_color()); \
return ret; \
} \
void widget##_set_cursor_color(widget *self, unsigned int s) { \
LOCK(self->cursor_color(s)); \
} \
int widget##_text_font(widget *self) { \
LOCK(auto ret = self->textfont()); \
return ret; \
Expand Down

0 comments on commit 8d9ffd1

Please sign in to comment.