diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2006-06-26 01:14:33 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2006-06-26 01:14:33 +0000 |
commit | 8db70d8e2df01bbd1245e790d3594bb72409956d (patch) | |
tree | 4143d4cd99312e3cb95bcbad35e29e5d31ac735e /riscos/textarea.h | |
parent | f1a1143a24e8d695a4f32d77d8b15b5e666328e6 (diff) | |
download | netsurf-8db70d8e2df01bbd1245e790d3594bb72409956d.tar.gz netsurf-8db70d8e2df01bbd1245e790d3594bb72409956d.tar.bz2 |
UTF-8 capable single/multi-line text area/display field - needs
optimisation, completion of outstanding todos.
Use this to display SSL certificate issuer and subject information.
svn path=/trunk/netsurf/; revision=2647
Diffstat (limited to 'riscos/textarea.h')
-rw-r--r-- | riscos/textarea.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/riscos/textarea.h b/riscos/textarea.h new file mode 100644 index 000000000..461ee2665 --- /dev/null +++ b/riscos/textarea.h @@ -0,0 +1,32 @@ +/* + * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * Licensed under the GNU General Public License, + * http://www.opensource.org/licenses/gpl-license + * Copyright 2006 John-Mark Bell <jmb202@ecs.soton.ac.uk> + */ + +/** \file + * Single/Multi-line UTF-8 text area (interface) + */ + +#ifndef _NETSURF_RISCOS_TEXTAREA_H_ +#define _NETSURF_RISCOS_TEXTAREA_H_ + +/* Text area flags */ +#define TEXTAREA_MULTILINE 0x01 /**< Text area is multiline */ +#define TEXTAREA_READONLY 0x02 /**< Text area is read only */ + +uintptr_t textarea_create(wimp_w parent, wimp_i icon, unsigned int flags, + const char *font_family, unsigned int font_size); +void textarea_destroy(uintptr_t self); +bool textarea_set_text(uintptr_t self, const char *text); +int textarea_get_text(uintptr_t self, char *buf, unsigned int len); +void textarea_insert_text(uintptr_t self, unsigned int index, + const char *text); +void textarea_replace_text(uintptr_t self, unsigned int start, + unsigned int end, const char *text); +void textarea_set_caret(uintptr_t self, unsigned int caret); +unsigned int textarea_get_caret(uintptr_t self); + + +#endif |