Skip to content

Commit

Permalink
add Fl_Text_Buffer_append2
Browse files Browse the repository at this point in the history
  • Loading branch information
MoAlyousef committed Oct 4, 2023
1 parent cd45f61 commit 6a8b52e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fltk
2 changes: 2 additions & 0 deletions include/cfl_text.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ void Fl_Text_Buffer_set_text(Fl_Text_Buffer *self, const char *txt);

void Fl_Text_Buffer_append(Fl_Text_Buffer *self, const char *txt);

void Fl_Text_Buffer_append2(Fl_Text_Buffer *self, const char *txt, int len);

void Fl_Text_Buffer_remove(Fl_Text_Buffer *self, int start, int end);

int Fl_Text_Buffer_length(const Fl_Text_Buffer *self);
Expand Down
4 changes: 4 additions & 0 deletions src/cfl_text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ void Fl_Text_Buffer_append(Fl_Text_Buffer *self, const char *txt) {
LOCK(self->append(txt));
}

void Fl_Text_Buffer_append2(Fl_Text_Buffer *self, const char *txt, int len) {
LOCK(self->append(txt, len));
}

void Fl_Text_Buffer_remove(Fl_Text_Buffer *self, int start, int end) {
LOCK(self->remove(start, end));
}
Expand Down

0 comments on commit 6a8b52e

Please sign in to comment.