[Tickit-dev] New C library functions - window_get_term, window_children
Paul "LeoNerd" Evans
leonerd at leonerd.org.uk
Mon Oct 31 12:10:04 GMT 2016
I've added a few new functions to the C library just now:
TickitTerm *tickit_window_get_term(TickitWindow *win);
Returns the invariant that
tickit_window_get_term(tickit_window_new_root(tt)) == tt;
additionally works on any window in the heirarchy, returning the
backing terminal for the root.
size_t tickit_window_children(const TickitWindow *win);
size_t tickit_window_get_children(const TickitWindow *win,
TickitWindow *children[], size_t n);
Works analogously to tickit_renderbuffer_*rects; namely the first
returns the total number of child windows and the latter copies out
up-to-n of those pointer values into the given array.
These were directly needed in order to support functions the Perl
wrapping module provides, but perhaps they'll be useful elsewhere too.
--
Paul "LeoNerd" Evans
leonerd at leonerd.org.uk | https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/ | https://www.tindie.com/stores/leonerd/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://mail.leonerd.org.uk/pipermail/tickit-dev/attachments/20161031/04113bb0/attachment.sig>
More information about the Tickit-dev
mailing list