NAME


NAME

Glib::Flags


DESCRIPTION

Glib maps flag and enum values to the nicknames strings provided by the underlying C libraries. Representing flags this way in Perl is an interesting problem, which Glib solves by using some cool overloaded operators.

The functions described here actually do the work of those overloaded operators. See the description of the flags operators in the ``This Is Now That'' section of the Glib manpage for more info.


METHODS

scalar = $a->all ($b, $swap)

scalar = $a->as_arrayref ($b, $swap)

integer = $a->bool ($b, $swap)

integer = $a->eq ($b, $swap)

integer = $a->ge ($b, $swap)

scalar = $a->intersect ($b, $swap)

scalar = $a->sub ($b, $swap)

scalar = $a->union ($b, $swap)

scalar = $a->xor ($b, $swap)


SEE ALSO

the Glib manpage


COPYRIGHT

Copyright (C) 2003-2007 by the gtk2-perl team.

This software is licensed under the LGPL. See the Glib manpage for a full notice.

 NAME