class

Crubbletea::Bubbles::Viewport::Model

Inherits Reference < Object

Constructors

new(width : Int32 = 80, height : Int32 = 24, style : Lipgloss::Style = Lipgloss::Style.new, highlight : Bool = false, highlight_style : Lipgloss::Style = Lipgloss::Style.new.reverse(true), gutter : Bool = false, soft_wrap : Bool = true)
Source

Instance methods

at_bottom?
Source
at_top?
Source
content
Source
content=(s : String) : Nil
Source
goto_bottom
Source
gutter
Source
height
Source
height=(h : Int32) : Nil
Source
highlight
Source
highlight_style
Source
line(i : Int32) : String
Source
max_y_offset
Source
over?(y : Int32) : Bool
Source
past_bottom?(y : Int32) : Bool
Source
set_size(w : Int32, h : Int32) : Nil
Source
set_x_offset(n : Int32) : Nil
Source
set_y_offset(n : Int32) : Nil
Source
soft_wrap
Source
style
Source
total_lines
Source
view
Source
view_down(n : Int32 = 1) : Nil
Source
view_up(n : Int32 = 1) : Nil
Source
width
Source
width=(w : Int32) : Nil
Source
x_offset
Source
y_cursor_offset
Source
y_offset
Source