summaryrefslogtreecommitdiff
path: root/rufl.h
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2005-02-12 21:00:56 +0000
committerJames Bursa <james@netsurf-browser.org>2005-02-12 21:00:56 +0000
commit8a7d90bd8b43ac9dca499aa613f624a952bdf4d7 (patch)
tree07b0b5cd39f63ab97ee72b60c3cb9ffb23e089de /rufl.h
parente9dbce5471b2e4283bc13e5eeb6b2f5433944cc4 (diff)
downloadlibrufl-8a7d90bd8b43ac9dca499aa613f624a952bdf4d7.tar.gz
librufl-8a7d90bd8b43ac9dca499aa613f624a952bdf4d7.tar.bz2
[project @ 2005-02-12 21:00:56 by bursa]
Implement rufl_x_to_offset(). svn path=/import/rufl/; revision=2446
Diffstat (limited to 'rufl.h')
-rw-r--r--rufl.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/rufl.h b/rufl.h
index 36d946a..f253e98 100644
--- a/rufl.h
+++ b/rufl.h
@@ -74,6 +74,17 @@ rufl_code rufl_width(const char *font_family, rufl_style font_style,
/**
+ * Find where in a string a x coordinate falls.
+ */
+
+rufl_code rufl_x_to_offset(const char *font_family, rufl_style font_style,
+ unsigned int font_size,
+ const char *string, size_t length,
+ int click_x,
+ size_t *char_offset, int *actual_x);
+
+
+/**
* Dump the internal library state to stdout.
*/