struct UI::RichText::Span

Defined in:

ui/views/rich_text.cr

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def bold : Bool #

def clone #

[View source]
def color : Color #

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) #

[View source]
def font : Font #

def italic : Bool #

def link : String | Nil #

def strikethrough : Bool #

def text : String #

def underline : Bool #