1Gtk2::Builder(3)      User Contributed Perl Documentation     Gtk2::Builder(3)
2
3
4

NAME

6       Gtk2::Builder - wrapper for GtkBuilder
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::Builder
11

METHODS

13   builder = Gtk2::Builder->new
14   integer = $builder->add_from_file ($filename)
15       •   $filename (localized file name)
16
17       May croak with a Glib::Error in $@ on failure.
18
19   integer = $builder->add_from_string ($buffer)
20       •   $buffer (string)
21
22       May croak with a Glib::Error in $@ on failure.
23
24   integer = $builder->add_objects_from_string ($buffer, $first_object_id,
25       ...)
26       •   $buffer (string)
27
28       •   $first_object_id (string)
29
30       •   ... (list)
31
32       Since: gtk+ 2.14
33
34   $builder->connect_signals ($user_data)
35   $builder->connect_signals ($user_data, $package)
36   $builder->connect_signals ($user_data, %handlers)
37       There are four ways to let Gtk2::Builder do the signal connecting work
38       for you:
39
40       "$builder->connect_signals ($user_data)"
41           When invoked like this, Gtk2::Builder will connect signals to
42           functions in the calling package.  The callback names are specified
43           in the UI description.
44
45       "$builder->connect_signals ($user_data, $package)"
46           When invoked like this, Gtk2::Builder will connect signals to
47           functions in the package $package.
48
49       "$builder->connect_signals ($user_data, $object)"
50           When invoked like this, Gtk2::Builder will connect signals to
51           method calls against the object $object.
52
53       "$builder->connect_signals ($user_data, %handlers)"
54           When invoked like this, %handlers is used as a mapping from handler
55           names to code references.
56
57   $builder->connect_signals_full ($func, $user_data=undef)
58       •   $func (scalar)
59
60       •   $user_data (scalar)
61
62   object = $builder->get_object ($name)
63       •   $name (string)
64
65   list = $builder->get_objects
66   string or undef = $builder->get_translation_domain
67   $builder->set_translation_domain ($domain)
68       •   $domain (string or undef)
69

PROPERTIES

71       'translation-domain' (string : default undef : readable / writable /
72       private / static-nick / static-blurb)
73           The translation domain used by gettext
74

SEE ALSO

76       Gtk2, Glib::Object
77
79       Copyright (C) 2003-2011 by the gtk2-perl team.
80
81       This software is licensed under the LGPL.  See Gtk2 for a full notice.
82
83
84
85perl v5.34.0                      2021-07-22                  Gtk2::Builder(3)
Impressum