mirror of
https://github.com/nicbarker/clay.git
synced 2025-01-23 18:06:04 +00:00
Fix variable name in README.md (#59)
This commit is contained in:
parent
35d72e5fba
commit
b2dba60711
@ -272,7 +272,7 @@ void HandleButtonInteraction(Clay_ElementId elementId, Clay_PointerData pointerI
|
|||||||
ButtonData linkButton = (ButtonData) { .link = "https://github.com/nicbarker/clay" };
|
ButtonData linkButton = (ButtonData) { .link = "https://github.com/nicbarker/clay" };
|
||||||
|
|
||||||
// HandleButtonInteraction will be called for each frame the mouse / pointer / touch is inside the button boundaries
|
// HandleButtonInteraction will be called for each frame the mouse / pointer / touch is inside the button boundaries
|
||||||
CLAY(CLAY_LAYOUT({ .padding = { 8, 8 }}), Clay_OnHover(HandleButtonInteraction, &buttonData)) {
|
CLAY(CLAY_LAYOUT({ .padding = { 8, 8 }}), Clay_OnHover(HandleButtonInteraction, &linkButton)) {
|
||||||
CLAY_TEXT(CLAY_STRING("Button"), &headerTextConfig);
|
CLAY_TEXT(CLAY_STRING("Button"), &headerTextConfig);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user