summaryrefslogtreecommitdiffstats
path: root/include/widgets/textbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/widgets/textbox.h')
-rw-r--r--include/widgets/textbox.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/widgets/textbox.h b/include/widgets/textbox.h
index d5695c0b..01b67a75 100644
--- a/include/widgets/textbox.h
+++ b/include/widgets/textbox.h
@@ -345,5 +345,19 @@ void textbox_set_ellipsize(textbox *tb, PangoEllipsizeMode mode);
* @returns the position of the cursor (0 if no cursor).
*/
int textbox_get_cursor_x_pos(const textbox *tb);
+
+/**
+ * @param tb Handle to the textbox
+ *
+ * @returns gets a newly allocated copy of the content of the entrybox.
+ */
+char *textbox_get_text ( const textbox *tb );
+
+/**
+ * @param tb Handle to the textbox
+ *
+ * @returns the position of the cursor.
+ */
+int textbox_get_cursor ( const textbox *tb );
/**@}*/
#endif // ROFI_TEXTBOX_H