README

mizchi/crater-painter/paint/model does not have a README file

#
PaintNode

pub(all) struct PaintNode {
id : String
tag : String
x : Double
y : Double
width : Double
height : Double
overflow_x :
Overflow

overflow_y :
Overflow

scroll_width : Double
scroll_height : Double
clip :
ClipRect

paint : PaintProperties
stacking_order : Int
text : String?
src : String?
visual_polygon : Array[(Double, Double)]
children : Array[PaintNode]
}

impl Show for PaintNode

#
PaintNode::clips_content

fn PaintNode::clips_content(self : PaintNode) -> Bool

#
PaintNode::get_clip_rect

fn PaintNode::get_clip_rect(self : PaintNode) -> (Double, Double, Double, Double)?

#
PaintNode::get_legacy_clip

fn PaintNode::get_legacy_clip(self : PaintNode) -> (Double, Double, Double, Double)?

#
PaintNode::get_max_scroll

fn PaintNode::get_max_scroll(self : PaintNode) -> (Double, Double)

#
PaintNode::has_horizontal_scrollbar

fn PaintNode::has_horizontal_scrollbar(self : PaintNode) -> Bool

#
PaintNode::has_legacy_clip

fn PaintNode::has_legacy_clip(self : PaintNode) -> Bool

#
PaintNode::has_vertical_scrollbar

fn PaintNode::has_vertical_scrollbar(self : PaintNode) -> Bool

#
PaintNode::is_scrollable

fn PaintNode::is_scrollable(self : PaintNode) -> Bool

#
PaintNode::new

fn PaintNode::new(id : String, tag : String, x : Double, y : Double, width : Double, height : Double, paint : PaintProperties, children : Array[PaintNode], text? : String?, src? : String?, overflow_x? :
Overflow
, overflow_y? :
Overflow
, scroll_width? : Double, scroll_height? : Double, clip? :
ClipRect
, visual_polygon? : Array[(Double, Double)]) -> PaintNode

#
PaintNode::to_json_string

fn PaintNode::to_json_string(self : PaintNode) -> String

PaintNode JSON serialization for native paint renderer. Produces a compact JSON string without external JSON library dependency.

#
PaintProperties

pub(all) struct PaintProperties {
z_index :
ZIndex

visibility :
Visibility

pointer_events :
PointerEvents

opacity : Double
color :
Color

background_color :
Color

background_image :
BackgroundImage

box_shadows : Array[
BoxShadow
]
font_size : Double
line_height : Double
letter_spacing : Double
word_spacing : Double
font_weight : Double
is_bold : Bool
font_family : String
clip_path :
ClipPath

border_top_left_radius : Double
border_top_right_radius : Double
border_bottom_right_radius : Double
border_bottom_left_radius : Double
overflow_x :
Overflow

overflow_y :
Overflow

text_decoration_underline : Bool
text_decoration_line_through : Bool
text_decoration_overline : Bool
border_top_width : Double
border_right_width : Double
border_bottom_width : Double
border_left_width : Double
border_top_color :
Color

border_right_color :
Color

border_bottom_color :
Color

border_left_color :
Color

}

#
PaintProperties::clips_overflow

fn PaintProperties::clips_overflow(self : PaintProperties) -> Bool

#
PaintProperties::default

#
PaintProperties::from_style

#
PaintProperties::should_render

fn PaintProperties::should_render(self : PaintProperties) -> Bool

#
PaintProperties::z_index_value

fn PaintProperties::z_index_value(self : PaintProperties) -> Int

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io