mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2025-10-06 04:59:40 +02:00
* Fill option for widget frame * Add widget circle element * Add widget line element * Fix missing include for InputType * Fix missing comment * Update api symbols * Load .fxbm from file * Fix copy pasta * Add fill param to example * Fix some comments * Bump JS SDK 0.3 * Fix free * Rename widget frame to rect * Gui: add widget_add_frame_element backward compatibility macros Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
25 lines
372 B
C
25 lines
372 B
C
/**
|
|
* @file widget_element_i.h
|
|
* GUI: internal Widget Element API
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <input/input.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef enum {
|
|
GuiButtonTypeLeft,
|
|
GuiButtonTypeCenter,
|
|
GuiButtonTypeRight,
|
|
} GuiButtonType;
|
|
|
|
typedef void (*ButtonCallback)(GuiButtonType result, InputType type, void* context);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|