gtkblist-theme.h
Go to the documentation of this file.
1
5 /* pidgin
6 *
7 * Pidgin 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.
10 *
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.
15 *
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.
20 *
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., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
24 */
25
26 #ifndef PIDGIN_BLIST_THEME_H
27 #define PIDGIN_BLIST_THEME_H
28
29 #include <glib.h>
30 #include <glib-object.h>
31 #include <gtk/gtk.h>
32
33 #include "theme.h"
34
41 typedef struct _PidginBlistTheme PidginBlistTheme;
42 typedef struct _PidginBlistThemeClass PidginBlistThemeClass;
43
44 #define PIDGIN_TYPE_BLIST_THEME (pidgin_blist_theme_get_type ())
45 #define PIDGIN_BLIST_THEME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIDGIN_TYPE_BLIST_THEME, PidginBlistTheme))
46 #define PIDGIN_BLIST_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PIDGIN_TYPE_BLIST_THEME, PidginBlistThemeClass))
47 #define PIDGIN_IS_BLIST_THEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIDGIN_TYPE_BLIST_THEME))
48 #define PIDGIN_IS_BLIST_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PIDGIN_TYPE_BLIST_THEME))
49 #define PIDGIN_BLIST_THEME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PIDGIN_TYPE_BLIST_THEME, PidginBlistThemeClass))
50
51 struct _PidginBlistTheme
52 {
53 PurpleTheme parent;
54 gpointer priv;
55 };
56
57 struct _PidginBlistThemeClass
58 {
59 PurpleThemeClass parent_class;
60 };
61
62 #if 0
63 typedef struct
64 {
65 const gchar *font;
66 const gchar *color;
67
68 } PidginThemeFont;
69 #endif
70 typedef struct _PidginThemeFont PidginThemeFont;
71
72 typedef struct
73 {
74 gint status_icon;
75 gint text;
76 gint emblem;
77 gint protocol_icon;
78 gint buddy_icon;
79 gboolean show_status;
80
81 } PidginBlistLayout;
82
83 /**************************************************************************/
85 /**************************************************************************/
86
95 PidginThemeFont * pidgin_theme_font_new(const gchar *face, GdkColor *color);
96
102 void pidgin_theme_font_free(PidginThemeFont *font);
103
110 void pidgin_theme_font_set_font_face(PidginThemeFont *font, const gchar *face);
111
118 void pidgin_theme_font_set_color(PidginThemeFont *font, const GdkColor *color);
119
127 const gchar * pidgin_theme_font_get_font_face(PidginThemeFont *font);
128
136 const GdkColor * pidgin_theme_font_get_color(PidginThemeFont *font);
137
145 const gchar * pidgin_theme_font_get_color_describe(PidginThemeFont *font);
146
147 /**************************************************************************/
149 /**************************************************************************/
150 G_BEGIN_DECLS
151
156 GType pidgin_blist_theme_get_type(void);
157
158 /* get methods */
159
167 GdkColor *pidgin_blist_theme_get_background_color(PidginBlistTheme *theme);
168
177 gdouble pidgin_blist_theme_get_opacity(PidginBlistTheme *theme);
178
186 PidginBlistLayout *pidgin_blist_theme_get_layout(PidginBlistTheme *theme);
187
195 GdkColor *pidgin_blist_theme_get_expanded_background_color(PidginBlistTheme *theme);
196
204 PidginThemeFont *pidgin_blist_theme_get_expanded_text_info(PidginBlistTheme *theme);
205
213 GdkColor *pidgin_blist_theme_get_collapsed_background_color(PidginBlistTheme *theme);
214
222 PidginThemeFont *pidgin_blist_theme_get_collapsed_text_info(PidginBlistTheme *theme);
223
231 GdkColor *pidgin_blist_theme_get_contact_color(PidginBlistTheme *theme);
232
240 PidginThemeFont *pidgin_blist_theme_get_contact_text_info(PidginBlistTheme *theme);
241
249 PidginThemeFont *pidgin_blist_theme_get_online_text_info(PidginBlistTheme *theme);
250
258 PidginThemeFont *pidgin_blist_theme_get_away_text_info(PidginBlistTheme *theme);
259
267 PidginThemeFont *pidgin_blist_theme_get_offline_text_info(PidginBlistTheme *theme);
268
276 PidginThemeFont *pidgin_blist_theme_get_idle_text_info(PidginBlistTheme *theme);
277
285 PidginThemeFont *pidgin_blist_theme_get_unread_message_text_info(PidginBlistTheme *theme);
286
295 PidginThemeFont *pidgin_blist_theme_get_unread_message_nick_said_text_info(PidginBlistTheme *theme);
296
304 PidginThemeFont *pidgin_blist_theme_get_status_text_info(PidginBlistTheme *theme);
305
306 /* Set Methods */
307
314 void pidgin_blist_theme_set_background_color(PidginBlistTheme *theme, const GdkColor *color);
315
322 void pidgin_blist_theme_set_opacity(PidginBlistTheme *theme, gdouble opacity);
323
330 void pidgin_blist_theme_set_layout(PidginBlistTheme *theme, const PidginBlistLayout *layout);
331
338 void pidgin_blist_theme_set_expanded_background_color(PidginBlistTheme *theme, const GdkColor *color);
339
346 void pidgin_blist_theme_set_expanded_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair);
347
354 void pidgin_blist_theme_set_collapsed_background_color(PidginBlistTheme *theme, const GdkColor *color);
355
362 void pidgin_blist_theme_set_collapsed_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair);
363
370 void pidgin_blist_theme_set_contact_color(PidginBlistTheme *theme, const GdkColor *color);
371
378 void pidgin_blist_theme_set_contact_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair);
379
386 void pidgin_blist_theme_set_online_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair);
387
394 void pidgin_blist_theme_set_away_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair);
395
402 void pidgin_blist_theme_set_offline_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair);
403
410 void pidgin_blist_theme_set_idle_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair);
411
418 void pidgin_blist_theme_set_unread_message_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair);
419
427 void pidgin_blist_theme_set_unread_message_nick_said_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair);
428
435 void pidgin_blist_theme_set_status_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair);
436
437 G_END_DECLS
438 #endif /* PIDGIN_BLIST_THEME_H */
pidgin_blist_theme_set_status_text_info
void pidgin_blist_theme_set_status_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair)
Sets the text color and font to be used for buddy status messages.
pidgin_theme_font_get_color_describe
const gchar * pidgin_theme_font_get_color_describe(PidginThemeFont *font)
Get the color of a PidginThemeFont.
pidgin_theme_font_new
PidginThemeFont * pidgin_theme_font_new(const gchar *face, GdkColor *color)
Create a new PidginThemeFont.
pidgin_blist_theme_set_away_text_info
void pidgin_blist_theme_set_away_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair)
Sets the text color and font to be used for away and idle buddies.
pidgin_blist_theme_get_contact_color
GdkColor * pidgin_blist_theme_get_contact_color(PidginBlistTheme *theme)
Returns the colors to be used for contacts and chats.
pidgin_blist_theme_set_online_text_info
void pidgin_blist_theme_set_online_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair)
Sets the text color and font to be used for online buddies.
_PidginBlistThemeClass
Definition: gtkblist-theme.h:57
pidgin_blist_theme_get_background_color
GdkColor * pidgin_blist_theme_get_background_color(PidginBlistTheme *theme)
Returns the background color of the buddy list.
pidgin_theme_font_free
void pidgin_theme_font_free(PidginThemeFont *font)
Frees a font and color pair.
theme.h
Purple Theme Abstact Class API.
pidgin_blist_theme_set_expanded_background_color
void pidgin_blist_theme_set_expanded_background_color(PidginBlistTheme *theme, const GdkColor *color)
Sets the background color to be used for expanded groups.
pidgin_blist_theme_get_type
G_BEGIN_DECLS GType pidgin_blist_theme_get_type(void)
GObject foo.
pidgin_blist_theme_get_contact_text_info
PidginThemeFont * pidgin_blist_theme_get_contact_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used for expanded contacts.
pidgin_blist_theme_get_unread_message_nick_said_text_info
PidginThemeFont * pidgin_blist_theme_get_unread_message_nick_said_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used for chats with unread messages that mention your nick...
pidgin_theme_font_get_color
const GdkColor * pidgin_theme_font_get_color(PidginThemeFont *font)
Get the color of a PidginThemeFont as a GdkColor object.
pidgin_blist_theme_get_offline_text_info
PidginThemeFont * pidgin_blist_theme_get_offline_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used for offline buddies.
pidgin_blist_theme_get_layout
PidginBlistLayout * pidgin_blist_theme_get_layout(PidginBlistTheme *theme)
Returns the layout to be used with the buddy list.
PidginBlistLayout
Definition: gtkblist-theme.h:72
pidgin_theme_font_get_font_face
const gchar * pidgin_theme_font_get_font_face(PidginThemeFont *font)
Get the font-face of a PidginThemeFont.
pidgin_blist_theme_get_opacity
gdouble pidgin_blist_theme_get_opacity(PidginBlistTheme *theme)
Returns the opacity of the buddy list window (0.0 or clear to 1.0 fully opaque).
pidgin_theme_font_set_font_face
void pidgin_theme_font_set_font_face(PidginThemeFont *font, const gchar *face)
Set the font-face of a PidginThemeFont.
pidgin_blist_theme_set_expanded_text_info
void pidgin_blist_theme_set_expanded_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair)
Sets the text color and font to be used for expanded groups.
pidgin_blist_theme_get_idle_text_info
PidginThemeFont * pidgin_blist_theme_get_idle_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used for idle buddies.
pidgin_blist_theme_set_idle_text_info
void pidgin_blist_theme_set_idle_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair)
Sets the text color and font to be used for idle buddies.
pidgin_blist_theme_set_unread_message_text_info
void pidgin_blist_theme_set_unread_message_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair)
Sets the text color and font to be used for buddies with unread messages.
pidgin_blist_theme_get_expanded_text_info
PidginThemeFont * pidgin_blist_theme_get_expanded_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used with expanded groups.
pidgin_blist_theme_get_online_text_info
PidginThemeFont * pidgin_blist_theme_get_online_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used for online buddies.
pidgin_blist_theme_get_unread_message_text_info
PidginThemeFont * pidgin_blist_theme_get_unread_message_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used for buddies with unread messages.
pidgin_blist_theme_set_contact_text_info
void pidgin_blist_theme_set_contact_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair)
Sets the text color and font to be used for expanded contacts.
pidgin_blist_theme_set_opacity
void pidgin_blist_theme_set_opacity(PidginBlistTheme *theme, gdouble opacity)
Sets the opacity to be used for this buddy list theme.
pidgin_blist_theme_set_collapsed_background_color
void pidgin_blist_theme_set_collapsed_background_color(PidginBlistTheme *theme, const GdkColor *color)
Sets the background color to be used for collapsed groups.
_PidginBlistTheme
Definition: gtkblist-theme.h:51
pidgin_blist_theme_get_status_text_info
PidginThemeFont * pidgin_blist_theme_get_status_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used for a buddy&#39;s status message.
pidgin_blist_theme_set_background_color
void pidgin_blist_theme_set_background_color(PidginBlistTheme *theme, const GdkColor *color)
Sets the background color to be used for this buddy list theme.
_PurpleTheme
Definition: theme.h:49
pidgin_blist_theme_set_layout
void pidgin_blist_theme_set_layout(PidginBlistTheme *theme, const PidginBlistLayout *layout)
Sets the buddy list layout to be used for this buddy list theme.
pidgin_blist_theme_set_contact_color
void pidgin_blist_theme_set_contact_color(PidginBlistTheme *theme, const GdkColor *color)
Sets the background color to be used for contacts and chats.
pidgin_blist_theme_set_unread_message_nick_said_text_info
void pidgin_blist_theme_set_unread_message_nick_said_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair)
Sets the text color and font to be used for a chat with unread messages that mention your nick...
pidgin_theme_font_set_color
void pidgin_theme_font_set_color(PidginThemeFont *font, const GdkColor *color)
Set the color of a PidginThemeFont.
pidgin_blist_theme_get_expanded_background_color
GdkColor * pidgin_blist_theme_get_expanded_background_color(PidginBlistTheme *theme)
Returns the background color to be used with expanded groups.
_PurpleThemeClass
Definition: theme.h:55
pidgin_blist_theme_get_away_text_info
PidginThemeFont * pidgin_blist_theme_get_away_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used for away and idle buddies.
pidgin_blist_theme_set_offline_text_info
void pidgin_blist_theme_set_offline_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair)
Sets the text color and font to be used for offline buddies.
pidgin_blist_theme_get_collapsed_text_info
PidginThemeFont * pidgin_blist_theme_get_collapsed_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used with collapsed groups.
pidgin_blist_theme_set_collapsed_text_info
void pidgin_blist_theme_set_collapsed_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair)
Sets the text color and font to be used for expanded groups.
pidgin_blist_theme_get_collapsed_background_color
GdkColor * pidgin_blist_theme_get_collapsed_background_color(PidginBlistTheme *theme)
Returns the background color to be used with collapsed groups.