typeset 0.1.0
縦書き・横書きの日本語組版ライブラリ(JLReq 水準、ラスタ / PDF / SVG)
読み取り中…
検索中…
一致する文字列を見つけられません
display_list.hpp ファイル
#include <cstdint>
#include <limits>
#include <memory>
#include <optional>
#include <string>
#include <variant>
#include <vector>
#include "typeset/geom.hpp"

[ソースコード]

クラス

struct  typeset::dl::Glyph
 配置済みグリフ 1 個 [詳解]
 
struct  typeset::dl::GlyphRun
 同じ face・サイズ・塗りのグリフ列 [詳解]
 
struct  typeset::dl::PathItem
 パス(罫線・下線・吹き出し・図形) [詳解]
 
struct  typeset::dl::RectItem
 塗り矩形(背景・網かけ)。PathItem でも書けるが頻出なので専用に持つ [詳解]
 
struct  typeset::dl::Image
 画像(RGBA8888、非前乗算) [詳解]
 
struct  typeset::dl::ImageItem
 
struct  typeset::dl::Bookmark
 しおり(PDF のアウトライン)。描画はしない [詳解]
 
struct  typeset::dl::Group
 変形・クリップ・不透明度のスコープ [詳解]
 
struct  typeset::dl::DisplayList
 1 ページ分の表示リスト [詳解]
 

名前空間

namespace  glyphware
 
namespace  typeset
 geom — 単位と幾何
 
namespace  typeset::dl
 dl — 表示リスト(Display List)
 

型定義

using typeset::dl::Item = std::variant< GlyphRun, PathItem, RectItem, ImageItem, Group, Bookmark >
 

関数

Rect typeset::dl::bounds (const DisplayList &list)
 全要素のバウンディングボックス(グリフは em box で概算)
 
Rect typeset::dl::runBounds (const GlyphRun &run)
 GlyphRun の外接矩形(グリフは em box で概算。グラデーションの BoundingBox 座標に使う)
 

変数

constexpr uint32_t typeset::dl::kNoChar = std::numeric_limits<uint32_t>::max()