mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
Add Tooltip/TooltipTrigger/TooltipContent, data-tooltip attributes, Portal placement with border arrow, C attach helpers, docs, and tests.
12 lines
325 B
C
12 lines
325 B
C
#include <LCUI.h>
|
|
|
|
void tooltip_basic_init(ui_widget_t *parent)
|
|
{
|
|
ui_widget_t *button = ui_create_button();
|
|
|
|
ui_button_set_variant(button, UI_BUTTON_VARIANT_OUTLINE);
|
|
ui_button_set_text(button, "Hover");
|
|
ui_tooltip_attach(button, "Add to library");
|
|
ui_widget_append(parent, button);
|
|
}
|