/// Common interface for scrollable components
////// Provides a unified API for mouse scroll handling in Phase 2.
/// Components implement this trait to support scroll wheel events.
#[allow(dead_code)]pubtraitScrollable{/// Scroll the view up by the given number of lines
fnscroll_view_up(&mutself, lines:usize);/// Scroll the view down by the given number of lines
fnscroll_view_down(&mutself, lines:usize);/// Get the current scroll offset
fnscroll_offset(&self)->usize;/// Get the maximum scroll offset (content_size - viewport_size)
fnmax_scroll(&self)->usize;/// Get the viewport size (number of visible items/lines)
fnviewport_size(&self)->usize;}