Blender V5.3
blender::IconBufferRef Struct Reference

#include <BKE_icons.hh>

Public Attributes

int width
int height
int channels
Span< uint8_t > buffer

Detailed Description

Simple wrapper to reference a drawable pixel buffer (non-owning). Useful for draw functions that don't care where that buffer comes from (e.g. an ImBuf icon or a PreviewImage icon).

Definition at line 118 of file BKE_icons.hh.

Member Data Documentation

◆ buffer

Span<uint8_t> blender::IconBufferRef::buffer

Reference to the pixels to be drawn (size of width * height * channels).

Definition at line 127 of file BKE_icons.hh.

Referenced by blender::file_draw_preview().

◆ channels

int blender::IconBufferRef::channels

The number of channels per pixel.

Definition at line 124 of file BKE_icons.hh.

Referenced by blender::file_draw_preview().

◆ height

int blender::IconBufferRef::height

Height in pixels.

Definition at line 122 of file BKE_icons.hh.

Referenced by blender::file_draw_preview().

◆ width

int blender::IconBufferRef::width

Width in pixels.

Definition at line 120 of file BKE_icons.hh.

Referenced by blender::file_draw_preview().


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