Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserData for Clay_SetMeasureTextFunction #63

Open
emoon opened this issue Dec 20, 2024 · 0 comments
Open

UserData for Clay_SetMeasureTextFunction #63

emoon opened this issue Dec 20, 2024 · 0 comments

Comments

@emoon
Copy link

emoon commented Dec 20, 2024

So this function

void Clay_SetMeasureTextFunction(Clay_Dimensions (*measureTextFunction)(Clay_String *text, Clay_TextElementConfig *config));

There is no userData being passed to compared to the callback to

void Clay_OnHover(void (*onHoverFunction)(Clay_ElementId elementId, Clay_PointerData pointerData, intptr_t userData), intptr_t userData);

I wonder if it would make sense to add that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant