Class: Tuile::Component::Notification::View
- Defined in:
- lib/tuile/component/notification.rb,
sig/tuile.rbs
Overview
The message rows, minus the wheel — the one thing a plain
TextView would add here. On a short terminal the queued
messages are taller than the box, and the box is unfocusable, so
scrolling them would be a capability the keyboard cannot reach
(D_mouse); they are meant to wait until the ticker retires the ones
above.
Instance Attribute Summary
Attributes inherited from TextView
#auto_scroll, #scroll_top_row, #scrollbar_visibility
Instance Method Summary collapse
-
#handle_mouse_scroll?(_event) ⇒ Boolean
@param
_event.
Methods inherited from TextView
#<<, #add_line, #append, #append_to_region, #at_bottom?, #build_text, #clear, #create_region, #empty?, #focusable?, #following?, #half_page_rows, #handle_key?, #handle_width_changed, #initialize, #insert, #move_scroll_top_row_by, #move_scroll_top_row_to, #normalize_replace_range, #pad_to, #paintable_row, #pop_line, #push_line, #region_start_index, #remove_last_n_from_region, #remove_last_n_lines, #remove_region, #repaint, #replace, #replace_in_region, #rewrap, #row_offset_at, #scroll_half_page_down, #scroll_half_page_up, #scroll_top_row_max, #scrollbar_columns, #scrollbar_visible?, #set_region_text, #splice_lines, #tab_stop?, #text, #text=, #text_for_region, #update_region_counts, #update_scroll_top_row_if_auto_scroll, #viewport_rows, #wrap_line, #wrap_width
Constructor Details
This class inherits a constructor from Tuile::Component::TextView
Instance Method Details
#handle_mouse_scroll?(_event) ⇒ Boolean
@param _event
@return — true — claimed on the box's behalf, and inert.
206 |
# File 'lib/tuile/component/notification.rb', line 206 def handle_mouse_scroll?(_event) = true |