struct
UI::RichText::Span
- UI::RichText::Span
- Struct
- Value
- Object
Defined in:
ui/views/rich_text.crConstructors
Instance Method Summary
- #bold : Bool
- #clone
- #color : Color
- #copy_with(text _text = @text, font _font = @font, color _color = @color, bold _bold = @bold, italic _italic = @italic, underline _underline = @underline, strikethrough _strikethrough = @strikethrough, link _link = @link)
- #font : Font
- #italic : Bool
- #link : String | Nil
- #strikethrough : Bool
- #text : String
- #underline : Bool
Constructor Detail
def self.new(text : String = "", font : Font = Font.new, color : Color = Color.new(r: 0.0, g: 0.0, b: 0.0), bold : Bool = false, italic : Bool = false, underline : Bool = false, strikethrough : Bool = false, link : String | Nil = nil)
#
Instance Method Detail
def copy_with(text _text = @text, font _font = @font, color _color = @color, bold _bold = @bold, italic _italic = @italic, underline _underline = @underline, strikethrough _strikethrough = @strikethrough, link _link = @link)
#