|
Symbian platform (C++)
SDK native APIs, runtime and tooling
|
Owns one Window Server window, its requests and optional RGB565 frame. More...
#include <cpp/symbian/api/include/symbian/api/display/window_surface.h>
Classes | |
| struct | Impl |
Public Member Functions | |
| WindowSurface (const WindowSurface &)=delete | |
| WindowSurface & | operator= (const WindowSurface &)=delete |
| WindowSurface (WindowSurface &&other) noexcept | |
| WindowSurface & | operator= (WindowSurface &&other) noexcept |
| ~WindowSurface () | |
| absl::Status | SetAutomaticOrientation (bool enabled) |
| Follow the device's automatic display orientation policy. | |
| absl::StatusOr< Rgb565Frame > | CreateRgb565Frame () |
| absl::Status | UpdateRgb565Frame (Rgb565FrameWriter writer) |
| absl::Status | Present () |
| absl::Status | Present (std::span< const WindowTextLine > lines, int font_height_pixels=20) |
| absl::Status | DrawTextLines (std::span< const WindowTextLine > lines, int font_height_pixels=20) |
| absl::StatusOr< std::vector< std::u16string > > | WrapTextLines (std::u16string_view text, int max_width_pixels, int font_height_pixels=20) const |
| absl::StatusOr< std::optional< WindowInput > > | PollInput () |
| absl::Status | WaitForInput () |
| void | DestroyFrame () |
| void | Close () |
| WindowSize | size () const |
| DisplayRotation | rotation () const |
| void *absl_nullable | NativeWindowHandle () const |
| Opaque native window for the SDK EGL compatibility bridge. | |
| void | set_measure_frames (bool enabled) |
| WindowFrameMetrics | frame_metrics () const |
Static Public Member Functions | |
| static absl::StatusOr< WindowSurface > | Create (std::string_view task_caption={}, WindowSurfaceOptions options={}) |
| static absl::StatusOr< std::unique_ptr< WindowSurface > > | CreateUnique (std::string_view task_caption={}, WindowSurfaceOptions options={}) |
| static absl::StatusOr< WindowSize > | PrimarySize () |
| static std::optional< std::uint32_t > | PrimaryRefreshRateHz () |
| Physical refresh rate when the display driver reports one. | |
Owns one Window Server window, its requests and optional RGB565 frame.
All methods run on the opening thread. PollInput is nonblocking; the caller owns pacing and any structured task scope. The frame view remains valid until DestroyFrame or Close. At most one window and one bitmap are allocated.
|
delete |
|
noexcept |
| symbian::api::display::WindowSurface::~WindowSurface | ( | ) |
| void symbian::api::display::WindowSurface::Close | ( | ) |
|
static |
| absl::StatusOr< Rgb565Frame > symbian::api::display::WindowSurface::CreateRgb565Frame | ( | ) |
|
static |
| void symbian::api::display::WindowSurface::DestroyFrame | ( | ) |
| absl::Status symbian::api::display::WindowSurface::DrawTextLines | ( | std::span< const WindowTextLine > | lines, |
| int | font_height_pixels = 20 |
||
| ) |
| WindowFrameMetrics symbian::api::display::WindowSurface::frame_metrics | ( | ) | const |
| void *absl_nullable symbian::api::display::WindowSurface::NativeWindowHandle | ( | ) | const |
Opaque native window for the SDK EGL compatibility bridge.
|
delete |
|
noexcept |
| absl::StatusOr< std::optional< WindowInput > > symbian::api::display::WindowSurface::PollInput | ( | ) |
| absl::Status symbian::api::display::WindowSurface::Present | ( | ) |
| absl::Status symbian::api::display::WindowSurface::Present | ( | std::span< const WindowTextLine > | lines, |
| int | font_height_pixels = 20 |
||
| ) |
|
static |
Physical refresh rate when the display driver reports one.
|
static |
| DisplayRotation symbian::api::display::WindowSurface::rotation | ( | ) | const |
| void symbian::api::display::WindowSurface::set_measure_frames | ( | bool | enabled | ) |
| absl::Status symbian::api::display::WindowSurface::SetAutomaticOrientation | ( | bool | enabled | ) |
Follow the device's automatic display orientation policy.
| WindowSize symbian::api::display::WindowSurface::size | ( | ) | const |
| absl::Status symbian::api::display::WindowSurface::UpdateRgb565Frame | ( | Rgb565FrameWriter | writer | ) |
| absl::Status symbian::api::display::WindowSurface::WaitForInput | ( | ) |
| absl::StatusOr< std::vector< std::u16string > > symbian::api::display::WindowSurface::WrapTextLines | ( | std::u16string_view | text, |
| int | max_width_pixels, | ||
| int | font_height_pixels = 20 |
||
| ) | const |