Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Gtk2::AccelGroup(3)   User Contributed Perl Documentation  Gtk2::AccelGroup(3)

NAME
       Gtk2::AccelGroup	- wrapper for GtkAccelGroup

SYNOPSIS
	 my $win = Gtk2::Window->new;
	 my $accel = Gtk2::AccelGroup->new;
	 $accel->connect (42, ['control-mask'],	['visible'],
			  sub {	# do something });
	 $win->add_accel_group ($accel);

HIERARCHY
	 Glib::Object
	 +----Gtk2::AccelGroup

METHODS
   accelgroup =	Gtk2::AccelGroup->new
   boolean = Gtk2::AccelGroups->activate ($object, $accel_key, $accel_mods)
       o   $object (Glib::Object)

       o   $accel_key (integer)

       o   $accel_mods (Gtk2::Gdk::ModifierType)

   $accel_group->connect ($accel_key, $accel_mods, $accel_flags, $func)
       o   $accel_key (integer)

       o   $accel_mods (Gtk2::Gdk::ModifierType)

       o   $accel_flags	(Gtk2::AccelFlags)

       o   $func (scalar)

   $accel_group->connect_by_path ($accel_path, $func)
       o   $accel_path (string)

       o   $func (scalar)

   boolean = $accel_group->disconnect ($func)
       o   $func (scalar)

   boolean = $accel_group->disconnect_key ($accel_key, $accel_mods)
       o   $accel_key (integer)

       o   $accel_mods (Gtk2::Gdk::ModifierType)

   list	= Gtk2::AccelGroups->from_object ($object)
       o   $object (Glib::Object)

       Returns a list of Gtk2::AccelGroup's.

   boolean = $accel_group->get_is_locked
       Since: gtk+ 2.14

   $accel_group->lock
   modifiertype	= $accel_group->get_modifier_mask
       Since: gtk+ 2.14

   $accel_group->unlock
PROPERTIES
       'is-locked' (boolean : default false : readable)
	   Is the accel	group locked

       'modifier-mask' (Gtk2::Gdk::ModifierType	: default
       shift-mask,control-mask,mod1-mask,super-mask,hyper-mask,meta-mask :
       readable)
	   Modifier Mask

SIGNALS
       boolean = accel-activate	(Gtk2::AccelGroup, Glib::Object, Glib::UInt,
       Gtk2::Gdk::ModifierType)
       accel-changed (Gtk2::AccelGroup,	Glib::UInt, Gtk2::Gdk::ModifierType,
       GClosure)

ENUMS AND FLAGS
   flags Gtk2::AccelFlags
       o   'visible' / 'GTK_ACCEL_VISIBLE'

       o   'locked' / 'GTK_ACCEL_LOCKED'

       o   'mask' / 'GTK_ACCEL_MASK'

   flags Gtk2::Gdk::ModifierType
       o   'shift-mask'	/ 'GDK_SHIFT_MASK'

       o   'lock-mask' / 'GDK_LOCK_MASK'

       o   'control-mask' / 'GDK_CONTROL_MASK'

       o   'mod1-mask' / 'GDK_MOD1_MASK'

       o   'mod2-mask' / 'GDK_MOD2_MASK'

       o   'mod3-mask' / 'GDK_MOD3_MASK'

       o   'mod4-mask' / 'GDK_MOD4_MASK'

       o   'mod5-mask' / 'GDK_MOD5_MASK'

       o   'button1-mask' / 'GDK_BUTTON1_MASK'

       o   'button2-mask' / 'GDK_BUTTON2_MASK'

       o   'button3-mask' / 'GDK_BUTTON3_MASK'

       o   'button4-mask' / 'GDK_BUTTON4_MASK'

       o   'button5-mask' / 'GDK_BUTTON5_MASK'

       o   'super-mask'	/ 'GDK_SUPER_MASK'

       o   'hyper-mask'	/ 'GDK_HYPER_MASK'

       o   'meta-mask' / 'GDK_META_MASK'

       o   'release-mask' / 'GDK_RELEASE_MASK'

       o   'modifier-mask' / 'GDK_MODIFIER_MASK'

SEE ALSO
       Gtk2, Glib::Object

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

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

perl v5.32.0			  2020-08-30		   Gtk2::AccelGroup(3)

NAME | SYNOPSIS | HIERARCHY | METHODS | PROPERTIES | SIGNALS | ENUMS AND FLAGS | SEE ALSO | COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Gtk2::AccelGroup&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help