BSB Developer Docs
Loading...
Searching...
No Matches
desktop.h
Go to the documentation of this file.
1
10#pragma once
11
12#include <stdbool.h>
13
17#define RECORD_DESKTOP "desktop"
18
22typedef struct Desktop Desktop;
23
27typedef enum {
31 DesktopSwitchDirectionsCount,
33
49bool desktop_replace_current_app(Desktop* instance, const char* name, const char* args);
50
63void desktop_pin_current_app(Desktop* instance, bool pin);
64
bool desktop_replace_current_app(Desktop *instance, const char *name, const char *args)
Request the Desktop service to replace the currently running app.
Definition desktop.c:376
void desktop_pin_current_app(Desktop *instance, bool pin)
Pin or unpin the currently running app.
Definition desktop.c:383
DesktopSwitchDirection
Direction of rotary switch movement.
Definition desktop.h:27
@ DesktopSwitchDirectionUp
Switch moved up.
Definition desktop.h:28
@ DesktopSwitchDirectionDown
Switch moved down.
Definition desktop.h:29
DesktopSwitchDirection desktop_get_switch_direction(Desktop *instance)
Get the direction of the last rotary switch movement.
Definition desktop.c:389
Definition desktop_i.h:23