Blender V5.3
blender::ui::MarkdownLayoutCache Struct Reference

#include <interface_label_markdown.hh>

Public Attributes

ResourceScope scope
MarkdownLayoutCacheKey key
MarkdownLayout md_layout

Detailed Description

Drawing markdown is split into two phases:

  1. The text is parsed into a MarkdownLayout which contains rendering instructions. This happens as part of resolving the ui::Layout.
  2. The computed layout is drawn using the computed instructions.

Importantly, the drawing instructions are reused across different redraws (unless e.g. the width or font size changes).

Definition at line 125 of file interface_label_markdown.hh.

Member Data Documentation

◆ key

MarkdownLayoutCacheKey blender::ui::MarkdownLayoutCache::key

◆ md_layout

MarkdownLayout blender::ui::MarkdownLayoutCache::md_layout

◆ scope

ResourceScope blender::ui::MarkdownLayoutCache::scope

Definition at line 126 of file interface_label_markdown.hh.

Referenced by blender::ui::label_markdown_resolve().


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