Packages

Native desktop GUI framework for Gleam, powered by Iced

Current section

Files

Jump to
plushie_gleam include plushie@widget_WidgetDef.hrl
Raw

include/plushie@widget_WidgetDef.hrl

-record(widget_def, {
init :: fun(() -> any()),
view :: fun((binary(), any(), any()) -> plushie@node:node_()),
handle_event :: fun((plushie@event:event(), any()) -> {plushie@widget:event_action(),
any()}),
subscriptions :: fun((any(), any()) -> list(plushie@subscription:subscription())),
cache_key :: gleam@option:option(fun((any(), any()) -> gleam@dynamic:dynamic_()))
}).