comparison gtk/plugins/perl/common/GtkConvWin.xs @ 14416:eeca8be382a5

[gaim-migrate @ 17124] This is a Gaim::Gtk perl module for use by gaim plugins to get access to the gtkgaim interface functions. It isn't complete because anything dealing with Gtk widgets themselves doesn't work yet (I need to figure out the best way to do that). To use this a perl plugin just needs to include 'use Gaim::Gtk;' either on top of 'use Gaim;' or instead of it. I'm not done with this yet. At the moment you have to 'use Gaim;' or 'use Gaim::Gtk;' which loads all the parts, I'm planning to let you actually say 'use Gaim::Gtk::Debug;' to just get the gtkdebug.h functions. Though 'use Gaim' would work the same way as always. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Sat, 02 Sep 2006 05:31:10 +0000
parents
children d6eae5115b31
comparison
equal deleted inserted replaced
14415:76d345643ba4 14416:eeca8be382a5
1 #include "gtkmodule.h"
2
3 MODULE = Gaim::Gtk::Conversation::Window PACKAGE = Gaim::Gtk::Conversation::Window PREFIX = gaim_gtk_conv_window_
4 PROTOTYPES: ENABLE
5
6 Gaim::Gtk::Conversation::Window
7 gaim_gtk_conv_window_new()
8
9 void
10 gaim_gtk_conv_window_destroy(win)
11 Gaim::Gtk::Conversation::Window win
12
13 void
14 gaim_gtk_conv_window_show(win)
15 Gaim::Gtk::Conversation::Window win
16
17 void
18 gaim_gtk_conv_window_hide(win)
19 Gaim::Gtk::Conversation::Window win
20
21 void
22 gaim_gtk_conv_window_raise(win)
23 Gaim::Gtk::Conversation::Window win
24
25 void
26 gaim_gtk_conv_window_switch_gtkconv(win, gtkconv)
27 Gaim::Gtk::Conversation::Window win
28 Gaim::Gtk::Conversation gtkconv
29
30 void
31 gaim_gtk_conv_window_add_gtkconv(win, gtkconv)
32 Gaim::Gtk::Conversation::Window win
33 Gaim::Gtk::Conversation gtkconv
34
35 void
36 gaim_gtk_conv_window_remove_gtkconv(win, gtkconv)
37 Gaim::Gtk::Conversation::Window win
38 Gaim::Gtk::Conversation gtkconv
39
40 Gaim::Gtk::Conversation
41 gaim_gtk_conv_window_get_gtkconv_at_index(win, index)
42 Gaim::Gtk::Conversation::Window win
43 int index
44
45 Gaim::Gtk::Conversation
46 gaim_gtk_conv_window_get_active_gtkconv(win)
47 Gaim::Gtk::Conversation::Window win
48
49 Gaim::Conversation
50 gaim_gtk_conv_window_get_active_conversation(win)
51 Gaim::Gtk::Conversation::Window win
52
53 gboolean
54 gaim_gtk_conv_window_is_active_conversation(conv)
55 Gaim::Conversation conv
56
57 gboolean
58 gaim_gtk_conv_window_has_focus(win)
59 Gaim::Gtk::Conversation::Window win
60
61 Gaim::Gtk::Conversation::Window
62 gaim_gtk_conv_window_get_at_xy(x, y)
63 int x
64 int y
65
66 void
67 gaim_gtk_conv_window_get_gtkconvs(win)
68 Gaim::Gtk::Conversation::Window win
69 PREINIT:
70 GList *l;
71 PPCODE:
72 for (l = gaim_gtk_conv_window_get_gtkconvs(win); l != NULL; l = l->next) {
73 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Gtk::Conversation")));
74 }
75
76 guint
77 gaim_gtk_conv_window_get_gtkconv_count(win)
78 Gaim::Gtk::Conversation::Window win
79
80 Gaim::Gtk::Conversation::Window
81 gaim_gtk_conv_window_first_with_type(type)
82 Gaim::ConversationType type
83
84 Gaim::Gtk::Conversation::Window
85 gaim_gtk_conv_window_last_with_type(type)
86 Gaim::ConversationType type
87
88 MODULE = Gaim::Gtk::Conversation::Window PACKAGE = Gaim::Gtk::Conversation::Placement PREFIX = gaim_gtkconv_placement_
89 PROTOTYPES: ENABLE
90
91 void
92 gaim_gtkconv_placement_get_options()
93 PREINIT:
94 GList *l;
95 PPCODE:
96 for (l = gaim_gtkconv_placement_get_options(); l != NULL; l = l->next) {
97 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Gtk::Conversation::Window")));
98 }
99
100 void
101 gaim_gtkconv_placement_add_fnc(id, name, fnc)
102 const char * id
103 const char * name
104 Gaim::Conversation::PlacementFunc fnc
105
106 void
107 gaim_gtkconv_placement_remove_fnc(id)
108 const char * id
109
110 const char *
111 gaim_gtkconv_placement_get_name(id)
112 const char * id
113
114 Gaim::Conversation::PlacementFunc
115 gaim_gtkconv_placement_get_fnc(id)
116 const char * id
117
118 void
119 gaim_gtkconv_placement_set_current_func(func)
120 Gaim::Conversation::PlacementFunc func
121
122 Gaim::Conversation::PlacementFunc
123 gaim_gtkconv_placement_get_current_func()
124
125 void
126 gaim_gtkconv_placement_place(gtkconv)
127 Gaim::Gtk::Conversation gtkconv
128
129 MODULE = Gaim::Gtk::Conversation::Window PACKAGE = Gaim::Gtk::Conversation::Windows PREFIX = gaim_gtk_conv_windows_
130 PROTOTYPES: ENABLE
131
132 void
133 gaim_gtk_conv_windows_get_list()
134 PREINIT:
135 GList *l;
136 PPCODE:
137 for (l = gaim_gtk_conv_windows_get_list(); l != NULL; l = l->next) {
138 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Gtk::Conversation::Window")));
139 }