TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_layered_window.h
Go to the documentation of this file.
1#pragma once
2
3// Library internal: a layered window (WS_EX_LAYERED, Windows) shows a picture given to it rather
4// than a GPU surface. The graphics backends draw a transparent window offscreen, read it back,
5// and hand it over here. Elsewhere no window is layered and these do nothing.
6
8
9#include <cstdint>
10#include <span>
11
12namespace tachyon
13{
16 bool IsLayeredWindow(void* nativeWindow);
17
20 void ShowLayeredPixels(void* nativeWindow, std::span<const uint8_t> bgra, uint2 size);
21}
Definition gui_logging.h:24
bool IsLayeredWindow(void *nativeWindow)
Whether the native window is layered: it gets no swapchain, and shows what ShowLayeredPixels gives it...
void ShowLayeredPixels(void *nativeWindow, std::span< const uint8_t > bgra, uint2 size)
Shows bgra (size pixels, BGRA8, premultiplied alpha) in the layered window.
Definition gui_base_types.h:74