class

Cohn

Inherits EventTarget < Reference < Object

[ ] self-sufficient cursor


[ ] handle ins/del 1 000 000s of selections and cursors bearably 500 000 cursors do APPLY in: approx 500ms same for selections, really

Constructors

new(window : SF::RenderWindow, content, platform : Platform, theme : Theme)
Source

Instance methods

acquire
Source
clear_selections_from(start : Int)
Source
i_touch_selections_or_doc

use everywhere you touch @selections or @document !!!

Source
mainloop
Source
on_input(event : SF::Event::TextEntered, chr : Char)
Source
on_key_pressed(event : SF::Event::KeyPressed)
Source
on_with_ctrl_pressed(event : SF::Event::KeyPressed)
Source
recompute_visible_selections

just recompute visible, release/acquire rects

Source
release
Source
selection(cidx : Cursor | Int = 0, aidx : Cursor | Int = cidx, focus = true)
Source
theme=(theme : Theme)
Source
uniq_selections

merge overlaps & recompute visible

Source