RADLib
RADical C++ application framework
RADSlintFramebufferBackend.h
Go to the documentation of this file.
1 #ifndef RADSLINTFRAMEBUFFERBACKEND_H
2 #define RADSLINTFRAMEBUFFERBACKEND_H
3 
9 #pragma once
10 
11 #include <RADUi/RADSlintBackend.h>
12 
13 #include <radkernel/rad_display.h>
14 
15 #include <cstdint>
16 #include <memory>
17 
18 namespace RADUi::Slint {
19 
24  const char *framebufferDevice = "auto";
27  uint32_t maxFrames = 0;
29  const char *keyboardInputDevice = nullptr;
30  const char *pointerInputDevice = nullptr;
31  };
32 
35  std::shared_ptr<SlintBackend> installFramebufferBackend(const FramebufferPlatformConfig& config = {});
36 
39  const FramebufferPlatformConfig& config,
40  std::shared_ptr<SlintBackend>* backend);
41 
42 } // namespace RADUi::Slint
43 
44 #endif
Definition: RADSlintBackend.h:20
rad_status_t tryInstallFramebufferBackend(const FramebufferPlatformConfig &config, std::shared_ptr< SlintBackend > *backend)
Embedded-safe variant that reports RAD status instead of throwing on setup errors.
std::shared_ptr< SlintBackend > installFramebufferBackend(const FramebufferPlatformConfig &config={})
Backend & backend()
Returns the installed backend or throws when none is installed.
enum rad_status rad_status_t
Configuration for the embedded framebuffer-backed Slint platform.
Definition: RADSlintFramebufferBackend.h:21
const char * pointerInputDevice
Definition: RADSlintFramebufferBackend.h:30
const char * keyboardInputDevice
Optional RAD input devices to poll and forward into Slint.
Definition: RADSlintFramebufferBackend.h:29
uint32_t maxFrames
Definition: RADSlintFramebufferBackend.h:27
const char * framebufferDevice
Definition: RADSlintFramebufferBackend.h:24