flipperzero-firmware/applications/nfc/gui_widget/gui_element_i.h

21 lines
483 B
C
Raw Normal View History

#pragma once
#include <furi.h>
#include <gui/view.h>
typedef struct GuiElement GuiElement;
typedef struct GuiWidget GuiWidget;
struct GuiElement {
// generic draw and input callbacks
void (*draw)(Canvas* canvas, GuiElement* element);
bool (*input)(InputEvent* event, GuiElement* element);
// free callback
void (*free)(GuiElement* element);
// generic model holder
void* model;
// pointer to widget that hold our element
GuiWidget* parent;
};