Rechercher une page de manuel
Glib::Flags.3pm
Langue: en
Version: 2008-03-10 (mandriva - 01/05/08)
Section: 3 (Bibliothèques de fonctions)
NAME
Glib::FlagsDESCRIPTION
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 Glib for more info.
METHODS
scalar = $a->all ($b, $swap)
scalar = $a->all ($b, $swap)
-
- •
- $b (scalar)
- •
- $swap (integer)
scalar = $a->as_arrayref ($b, $swap)
scalar = $a->as_arrayref ($b, $swap)
-
- •
- $b (scalar)
- •
- $swap (integer)
integer = $a->bool ($b, $swap)
integer = $a->bool ($b, $swap)
-
- •
- $b (scalar)
- •
- $swap (integer)
integer = $a->eq ($b, $swap)
integer = $a->eq ($b, $swap)
-
- •
- $b (scalar)
- •
- $swap (integer)
integer = $a->ge ($b, $swap)
integer = $a->ge ($b, $swap)
-
- •
- $b (scalar)
- •
- $swap (integer)
scalar = $a->intersect ($b, $swap)
scalar = $a->intersect ($b, $swap)
-
- •
- $b (scalar)
- •
- $swap (integer)
scalar = $a->sub ($b, $swap)
scalar = $a->sub ($b, $swap)
-
- •
- $b (scalar)
- •
- $swap (integer)
scalar = $a->union ($b, $swap)
scalar = $a->union ($b, $swap)
-
- •
- $b (scalar)
- •
- $swap (integer)
scalar = $a->xor ($b, $swap)
scalar = $a->xor ($b, $swap)
-
- •
- $b (scalar)
- •
- $swap (integer)
SEE ALSO
GlibCOPYRIGHT
Copyright (C) 2003-2007 by the gtk2-perl team.This software is licensed under the LGPL. See Glib for a full notice.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre