class
TermBuf::PasteNotice
- TermBuf::PasteNotice
- Reference
- Object
Overview
A panel saying a paste is arriving, so a long one does not look like a hung application.
The driver will not draw this. The buffer belongs to the application, and
something writing into it uninvited would have to undraw itself and would
fight whatever else was painting. So the decoder reports and this draws:
Events::Pasting opens it and Events::Paste closes it.
in TermBuf::Events::Pasting then notice.arriving event.bytes
in TermBuf::Events::Paste then notice.finished
and #draw does nothing at all while nothing is arriving.
Defined in:
termbuf/widgets/paste_notice.crConstructors
Instance Method Summary
-
#arriving(bytes : Int32) : Nil
A paste has been going long enough to be worth mentioning, and has bytes so far.
-
#border : Border | Nil
Drawn around the panel, or
nilfor none. -
#border=(border : Border | Nil)
Drawn around the panel, or
nilfor none. -
#bytes : Int32 | Nil
Bytes collected so far, or
nilwhen nothing is arriving. -
#draw(screen : Drawing, area : Rect) : Nil
Draws centred within area, or nothing at all when no paste is arriving.
-
#finished : Nil
The paste is over.
-
#label : String
What it says, before the byte count.
-
#label=(label : String)
What it says, before the byte count.
-
#style : Style
What the panel is drawn in.
-
#style=(style : Style)
What the panel is drawn in.
-
#text : String
What the panel says, which is the byte count as it grows.
-
#visible? : Bool
Whether there is anything to draw.
Constructor Detail
Instance Method Detail
A paste has been going long enough to be worth mentioning, and has bytes so far.
Draws centred within area, or nothing at all when no paste is arriving.