Flipper Zero Firmware
Loading...
Searching...
No Matches
example_view_dispatcher.c File Reference

Example application demonstrating the usage of the ViewDispatcher library. More...

#include <gui/gui.h>
#include <gui/view_dispatcher.h>
#include <gui/modules/widget.h>
#include <gui/modules/submenu.h>

Data Structures

struct  ExampleViewDispatcherApp
 

Enumerations

enum  ViewIndex { ViewIndexWidget , ViewIndexSubmenu , ViewIndexCount }
 
enum  SubmenuIndex { SubmenuIndexNothing , SubmenuIndexSwitchView }
 

Functions

int32_t example_view_dispatcher_app (void *arg)
 

Detailed Description

Example application demonstrating the usage of the ViewDispatcher library.

This application can display one of two views: either a Widget or a Submenu. Each view has its own way of switching to another one:

  • A center button in the Widget view.
  • A submenu item in the Submenu view

Press either to switch to a different view. Press Back to exit the application.