struct Obsctl::TUI::PointerTarget

Overview

Where a pointer landed on the dashboard.

#index is the item under the pointer, or nil for a click that hit a panel but not one of its rows -- a border, a title, or empty space below the last item. That still identifies a panel, which is enough to move focus.

Defined in:

obsctl/tui/hit_test.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(panel : FocusPanel, index : Int32 | Nil = nil, on_mute_control : Bool = false) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(panel _panel = @panel, index _index = @index, on_mute_control _on_mute_control = @on_mute_control) #

[View source]
def index : Int32 | Nil #

def on_mute_control : Bool #

def panel : FocusPanel #