merge of '134eb2e58f255d14d53d8b9463921ce7edb9aa36'
[pidgin-git.git] / finch / gntblist.h
blobcce411d7c12c00734f9cbda2171aa15238999afd
1 /**
2 * @file gntblist.h GNT BuddyList API
3 * @ingroup finch
5 * finch
7 * Finch is the legal property of its developers, whose names are too numerous
8 * to list here. Please refer to the COPYRIGHT file distributed with this
9 * source distribution.
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 #ifndef _GNT_BLIST_H
26 #define _GNT_BLIST_H
28 #include "blist.h"
30 /**********************************************************************
31 * @name GNT BuddyList API
32 **********************************************************************/
33 /*@{*/
35 /**
36 * Get the ui-functions.
38 * @return The PurpleBlistUiOps structure populated with the appropriate functions.
40 PurpleBlistUiOps * finch_blist_get_ui_ops(void);
42 /**
43 * Perform necessary initializations.
45 void finch_blist_init(void);
47 /**
48 * Perform necessary uninitializations.
50 void finch_blist_uninit(void);
52 /**
53 * Show the buddy list.
55 void finch_blist_show(void);
57 /**
58 * Get the position of the buddy list.
60 * @param x The x-coordinate is set here if not @ NULL.
61 * @param y The y-coordinate is set here if not @c NULL.
63 * @return Returns @c TRUE if the values were set, @c FALSE otherwise.
65 gboolean finch_blist_get_position(int *x, int *y);
67 /**
68 * Set the position of the buddy list.
70 * @param x The x-coordinate of the buddy list.
71 * @param y The y-coordinate of the buddy list.
73 void finch_blist_set_position(int x, int y);
75 /**
76 * Get the size of the buddy list.
78 * @param width The width is set here if not @ NULL.
79 * @param height The height is set here if not @c NULL.
81 * @return Returns @c TRUE if the values were set, @c FALSE otherwise.
83 gboolean finch_blist_get_size(int *width, int *height);
85 /**
86 * Set the size of the buddy list.
88 * @param width The width of the buddy list.
89 * @param height The height of the buddy list.
91 void finch_blist_set_size(int width, int height);
93 /*@}*/
95 #endif