TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::ClipboardImage Struct Reference

An image on the clipboard: RGBA, 8 bits a channel, alpha not premultiplied, rows from the top. More...

#include <gui_core/text/gui_clipboard.h>

Public Member Functions

bool Empty () const
 No image: no size, or not as many bytes as the size needs.

Public Attributes

uint32_t width = 0
uint32_t height = 0
std::vector< uint8_t > rgba
 width * height * 4 bytes

Detailed Description

An image on the clipboard: RGBA, 8 bits a channel, alpha not premultiplied, rows from the top.

Its pixels go to GraphicsContext::CreateImage as ImageFormat::R8G8B8A8.

Member Function Documentation

◆ Empty()

bool tachyon::ClipboardImage::Empty ( ) const
inline

No image: no size, or not as many bytes as the size needs.

Member Data Documentation

◆ width

uint32_t tachyon::ClipboardImage::width = 0

◆ height

uint32_t tachyon::ClipboardImage::height = 0

◆ rgba

std::vector<uint8_t> tachyon::ClipboardImage::rgba

width * height * 4 bytes


The documentation for this struct was generated from the following file: