ui/qt/text.h

changeset 528
fb1dca7d83da
parent 527
7273a78e8e5b
equal deleted inserted replaced
527:7273a78e8e5b 528:fb1dca7d83da
1 /* 1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 * 3 *
4 * Copyright 2014 Olaf Wintermann. All rights reserved. 4 * Copyright 2025 Olaf Wintermann. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met: 7 * modification, are permitted provided that the following conditions are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
44 void ui_textarea_set(UiText *text, const char *str); 44 void ui_textarea_set(UiText *text, const char *str);
45 char* ui_textarea_getsubstr(UiText *text, int begin, int end); 45 char* ui_textarea_getsubstr(UiText *text, int begin, int end);
46 void ui_textarea_insert(UiText *text, int pos, char *str); 46 void ui_textarea_insert(UiText *text, int pos, char *str);
47 void ui_textarea_setposition(UiText *text, int pos); 47 void ui_textarea_setposition(UiText *text, int pos);
48 int ui_textarea_position(UiText *text); 48 int ui_textarea_position(UiText *text);
49 void ui_textarea_setselection(UiText *text, int begin, int end);
49 void ui_textarea_selection(UiText *text, int *begin, int *end); 50 void ui_textarea_selection(UiText *text, int *begin, int *end);
50 int ui_textarea_length(UiText *text); 51 int ui_textarea_length(UiText *text);
51 void ui_textarea_remove(UiText *text, int begin, int end); 52 void ui_textarea_remove(UiText *text, int begin, int end);
52 53
53 char* ui_textfield_get(UiString *str) ; 54 char* ui_textfield_get(UiString *str) ;

mercurial