enum Tessell::Render::CmdKind

Overview

最小绘制命令集合(plan.md:100-103,K1 增加圆角/描边)。 Rect/Text/Line 保持原语义;RoundRect/StrokeRect/StrokeRoundRect 由后端 按自身能力实现,不支持时必须显式跳过或报错,不得静默画成直角/填充。

Defined in:

tessell/render/draw_list.cr

Enum Members

Rect = 0
Text = 1
Line = 2
RoundRect = 3
StrokeRect = 4
StrokeRoundRect = 5
Image = 6

外部纹理四边形(issue #28):bounds=目标矩形;texture_id=外部纹理 handle(独立命名空间,与 atlas_id 的 glyph 页号不混用);color= tint(默认全白 = 原样绘制);p1/p2 = 源矩形(默认 0 = 整图,uv 由 后端按纹理尺寸换算)。

Instance Method Summary

Instance Method Detail

def image? #

Returns true if this enum value equals Image


[View source]
def line? #

Returns true if this enum value equals Line


[View source]
def rect? #

Returns true if this enum value equals Rect


[View source]
def round_rect? #

Returns true if this enum value equals RoundRect


[View source]
def stroke_rect? #

Returns true if this enum value equals StrokeRect


[View source]
def stroke_round_rect? #

Returns true if this enum value equals StrokeRoundRect


[View source]
def text? #

Returns true if this enum value equals Text


[View source]