Skip to main content

handle_click

Function handle_click 

Source
pub fn handle_click(
    _x: usize,
    y: usize,
    width: usize,
    content: &str,
    scroll: &ScrollState,
    collapse: &mut CollapseState,
    expandable: &mut ExpandableState,
    cache: &mut CacheState,
) -> bool
Expand description

Handle click event at the given position.

§Arguments

  • _x - X coordinate (unused)
  • y - Y coordinate relative to the widget
  • width - Width of the widget
  • content - The markdown content
  • scroll - The scroll state
  • collapse - The collapse state
  • expandable - The expandable state
  • cache - The cache state

§Returns

true if the click was handled.