struct

Egui::RectCmd

Inherits Struct < Value < Object

Constructors

new(clip : Rect, rect : Rect, rounding : Float64, fill : Color32 | Nil, stroke_color : Color32 | Nil, stroke_width : Float64, fill2 : Color32 | Nil = nil, replace : Bool = false)
Source

Instance methods

clip
Source
fill
Source
fill2

Optional second fill color: when set, the fill becomes a vertical gradient from fill (top) to fill2 (bottom) — the backend interpolates per-vertex (Gouraud).

Source
rect
Source
replace?

Blend-off fill: OVERWRITE dst (rgb AND alpha) instead of blending — see Painter#rect_replace.

Source
rounding
Source
stroke_color
Source
stroke_width
Source