mirror of
https://github.com/nicbarker/clay.git
synced 2026-02-06 12:48:49 +00:00
SetMesureText and SetQueryScrollOffset takes userData (#212)
This commit is contained in:
parent
8e7e30dda6
commit
e8025cc254
12 changed files with 44 additions and 31 deletions
|
|
@ -83,7 +83,7 @@ static inline char *Clay_Cairo__NullTerminate(Clay_String *str) {
|
|||
}
|
||||
|
||||
// Measure text using cairo's *toy* text API.
|
||||
static inline Clay_Dimensions Clay_Cairo_MeasureText(Clay_String *str, Clay_TextElementConfig *config) {
|
||||
static inline Clay_Dimensions Clay_Cairo_MeasureText(Clay_String *str, Clay_TextElementConfig *config, uintptr_t userData) {
|
||||
// Edge case: Clay computes the width of a whitespace character
|
||||
// once. Cairo does not factor in whitespaces when computing text
|
||||
// extents, this edge-case serves as a short-circuit to introduce
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue