* Added support for running applications from SD card (FAPs - Flipper Application Packages) * Added plugin_dist target for fbt to build FAPs * All apps of type FlipperAppType.EXTERNAL and FlipperAppType.PLUGIN are built as FAPs by default * Updated VSCode configuration for new fbt features - re-deploy stock configuration to use them * Added debugging support for FAPs with fbt debug & VSCode * Added public firmware API with automated versioning Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: SG <who.just.the.doctor@gmail.com> Co-authored-by: あく <alleteam@gmail.com>
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/**
 | 
						|
 * @file view_port_i.h
 | 
						|
 * GUI: internal ViewPort API
 | 
						|
 */
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
#include "gui_i.h"
 | 
						|
#include "view_port.h"
 | 
						|
 | 
						|
struct ViewPort {
 | 
						|
    Gui* gui;
 | 
						|
    bool is_enabled;
 | 
						|
    ViewPortOrientation orientation;
 | 
						|
 | 
						|
    uint8_t width;
 | 
						|
    uint8_t height;
 | 
						|
 | 
						|
    ViewPortDrawCallback draw_callback;
 | 
						|
    void* draw_callback_context;
 | 
						|
 | 
						|
    ViewPortInputCallback input_callback;
 | 
						|
    void* input_callback_context;
 | 
						|
};
 | 
						|
 | 
						|
/** Set GUI reference.
 | 
						|
 *
 | 
						|
 * To be used by GUI, called upon view_port tree insert
 | 
						|
 *
 | 
						|
 * @param      view_port  ViewPort instance
 | 
						|
 * @param      gui        gui instance pointer
 | 
						|
 */
 | 
						|
void view_port_gui_set(ViewPort* view_port, Gui* gui);
 | 
						|
 | 
						|
/** Process draw call. Calls draw callback.
 | 
						|
 *
 | 
						|
 * To be used by GUI, called on tree redraw.
 | 
						|
 *
 | 
						|
 * @param      view_port  ViewPort instance
 | 
						|
 * @param      canvas     canvas to draw at
 | 
						|
 */
 | 
						|
void view_port_draw(ViewPort* view_port, Canvas* canvas);
 | 
						|
 | 
						|
/** Process input. Calls input callback.
 | 
						|
 *
 | 
						|
 * To be used by GUI, called on input dispatch.
 | 
						|
 *
 | 
						|
 * @param      view_port  ViewPort instance
 | 
						|
 * @param      event      pointer to input event
 | 
						|
 */
 | 
						|
void view_port_input(ViewPort* view_port, InputEvent* event);
 |