Tickit::Widget::Layout::Desktop - provides a holder for "desktop-like" widget behaviour
version 0.009
Returns true if this location is the maximise button.
Returns true if this location is the close button.
Override mouse click events to mark this window as active before continuing with the usual move/resize detection logic.
Provides click-to-raise and click-to-focus behaviour.
Runs the given coderef with a Tickit::RenderBuffer, saving and restoring the context around the call.
Returns $self.
Represents the inner area of this window, i.e. the content without the frame.
Override geometry changes to allow welding and constraints.
We have a set of rules for each widget, of the following form:
{ left => [ left => $w1, right => $w2, ], top => [ top => $w2 ] }
If the left edge changes, the left edge of $w1 and the right edge of $w2 would move by the same amount.
If the top changes, the top of $w2 would move by the same amount
That's about it. The idea is that edges can be "joined", meaning that resizing applies to multiple widgets at once.
Tom Molesworth <cpan@perlsite.co.uk>
Copyright Tom Molesworth 2012-2015. Licensed under the same terms as Perl itself.
To install Tickit::Widget::Layout::Desktop, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tickit::Widget::Layout::Desktop
CPAN shell
perl -MCPAN -e shell install Tickit::Widget::Layout::Desktop
For more information on module installation, please visit the detailed CPAN module installation guide.