Glib::OptionGroup man page on OpenSuSE

Man page or keyword search:  
man Server   25941 pages
apropos Keyword Search (all sections)
Output format
OpenSuSE logo
[printable version]

Glib::OptionGroup(3)  User Contributed Perl Documentation Glib::OptionGroup(3)

NAME
       Glib::OptionGroup

HIERARCHY
	 Glib::Boxed
	 +----Glib::OptionGroup

METHODS
   optiongroup = Glib::OptionGroup->new (key => value, ...)
       Creates a new option group from the given key-value pairs.  The valid
       keys are name, description, help_description, and entries.  The first
       three specify strings while the last one, entries, specifies an array
       reference of option entries.  Example:

	 my $group = Glib::OptionGroup->new (
		       name => 'urgs',
		       description => 'Urgs Urgs Urgs',
		       help_description => 'Help with Urgs',
		       entries => \@entries);

       An option entry is a hash reference like this:

	 { long_name => 'verbose',
	   short_name => 'v',
	   flags => [qw/reverse hidden in-main/],
	   arg_type => 'none',
	   arg_value => \$verbose,
	   description => 'verbose desc.',
	   arg_description => 'verbose arg desc.' }

       Of those keys only long_name, arg_type, and arg_value are required.  So
       this is a valid option entry too:

	 { long_name => 'package-names',
	   arg_type => 'string-array',
	   arg_value => \$package_names }

       For convenience, option entries can also be specified as array
       references containing long_name, short_name, arg_type, and arg_value:

	 [ 'filenames', 'f', 'filename-array', \$filenames ]

       If you don't want an option to have a short name, specify undef for it:

	 [ 'filenames', undef, 'filename-array', \$filenames ]

   $group->set_translate_func ($func, $data=undef)
       ·   $func (scalar)

       ·   $data (scalar)

   $group->set_translation_domain ($domain)
       ·   $domain (string)

ENUMS AND FLAGS
   enum Glib::OptionArg
       ·   'none' / 'G_OPTION_ARG_NONE'

       ·   'string' / 'G_OPTION_ARG_STRING'

       ·   'int' / 'G_OPTION_ARG_INT'

       ·   'filename' / 'G_OPTION_ARG_FILENAME'

       ·   'string-array' / 'G_OPTION_ARG_STRING_ARRAY'

       ·   'filename-array' / 'G_OPTION_ARG_FILENAME_ARRAY'

       ·   'double' / 'G_OPTION_ARG_DOUBLE'

       ·   'int64' / 'G_OPTION_ARG_INT64'

   flags Glib::OptionFlags
       ·   'hidden' / 'G_OPTION_FLAG_HIDDEN'

       ·   'in-main' / 'G_OPTION_FLAG_IN_MAIN'

       ·   'reverse' / 'G_OPTION_FLAG_REVERSE'

       ·   'no-arg' / 'G_OPTION_FLAG_NO_ARG'

       ·   'filename' / 'G_OPTION_FLAG_FILENAME'

       ·   'optional-arg' / 'G_OPTION_FLAG_OPTIONAL_ARG'

       ·   'noalias' / 'G_OPTION_FLAG_NOALIAS'

SEE ALSO
       Glib, Glib::Boxed

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

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

perl v5.18.1			  2013-09-28		  Glib::OptionGroup(3)
[top]

List of man pages available for OpenSuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net