X11::Xlib::XVisualInfo - Struct to list details of a Visual*
my $conn= X11::Xlib->new(); my @visuals= map { $_->unpack } $conn->XGetVisualInfo(0, my $foo); use DDP; p @visuals;
The real "Visual" structure in Xlib is hidden from users, but various functions give you XVisualInfo to be able to inspect a Visual without making lots of method calls.
(copied from Xlib docs)
typedef struct { Visual *visual; VisualID visualid; int screen; unsigned int depth; int class; unsigned long red_mask; unsigned long green_mask; unsigned long blue_mask; int colormap_size; int bits_per_rgb; } XVisualInfo;
See parent class X11::Xlib::Struct
Olivier Thauvin, <nanardon@nanardon.zarb.org>
Michael Conrad, <mike@nrdvana.net>
Copyright (C) 2009-2010 by Olivier Thauvin
Copyright (C) 2017 by Michael Conrad
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
To install X11::Xlib, copy and paste the appropriate command in to your terminal.
cpanm
cpanm X11::Xlib
CPAN shell
perl -MCPAN -e shell install X11::Xlib
For more information on module installation, please visit the detailed CPAN module installation guide.