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 
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 
52 {
53  PurpleTheme parent;
54  gpointer priv;
55 };
56 
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 
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 
168 
178 
187 
196 
205 
214 
223 
232 
241 
250 
259 
268 
277 
286 
296 
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 
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 */
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.
const gchar * pidgin_theme_font_get_color_describe(PidginThemeFont *font)
Get the color of a PidginThemeFont.
PidginThemeFont * pidgin_theme_font_new(const gchar *face, GdkColor *color)
Create a new PidginThemeFont.
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.
GdkColor * pidgin_blist_theme_get_contact_color(PidginBlistTheme *theme)
Returns the colors to be used for contacts and chats.
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.
GdkColor * pidgin_blist_theme_get_background_color(PidginBlistTheme *theme)
Returns the background color of the buddy list.
void pidgin_theme_font_free(PidginThemeFont *font)
Frees a font and color pair.
Purple Theme Abstact Class API.
void pidgin_blist_theme_set_expanded_background_color(PidginBlistTheme *theme, const GdkColor *color)
Sets the background color to be used for expanded groups.
G_BEGIN_DECLS GType pidgin_blist_theme_get_type(void)
GObject foo.
PidginThemeFont * pidgin_blist_theme_get_contact_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used for expanded contacts.
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...
const GdkColor * pidgin_theme_font_get_color(PidginThemeFont *font)
Get the color of a PidginThemeFont as a GdkColor object.
PidginThemeFont * pidgin_blist_theme_get_offline_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used for offline buddies.
PidginBlistLayout * pidgin_blist_theme_get_layout(PidginBlistTheme *theme)
Returns the layout to be used with the buddy list.
const gchar * pidgin_theme_font_get_font_face(PidginThemeFont *font)
Get the font-face of a PidginThemeFont.
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).
void pidgin_theme_font_set_font_face(PidginThemeFont *font, const gchar *face)
Set the font-face of a PidginThemeFont.
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.
PidginThemeFont * pidgin_blist_theme_get_idle_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used for idle buddies.
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.
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.
PidginThemeFont * pidgin_blist_theme_get_expanded_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used with expanded groups.
PidginThemeFont * pidgin_blist_theme_get_online_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used for online buddies.
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.
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.
void pidgin_blist_theme_set_opacity(PidginBlistTheme *theme, gdouble opacity)
Sets the opacity to be used for this buddy list theme.
void pidgin_blist_theme_set_collapsed_background_color(PidginBlistTheme *theme, const GdkColor *color)
Sets the background color to be used for collapsed groups.
PidginThemeFont * pidgin_blist_theme_get_status_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used for a buddy's status message.
void pidgin_blist_theme_set_background_color(PidginBlistTheme *theme, const GdkColor *color)
Sets the background color to be used for this buddy list theme.
void pidgin_blist_theme_set_layout(PidginBlistTheme *theme, const PidginBlistLayout *layout)
Sets the buddy list layout to be used for this buddy list theme.
void pidgin_blist_theme_set_contact_color(PidginBlistTheme *theme, const GdkColor *color)
Sets the background color to be used for contacts and chats.
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...
void pidgin_theme_font_set_color(PidginThemeFont *font, const GdkColor *color)
Set the color of a PidginThemeFont.
GdkColor * pidgin_blist_theme_get_expanded_background_color(PidginBlistTheme *theme)
Returns the background color to be used with expanded groups.
PidginThemeFont * pidgin_blist_theme_get_away_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used for away and idle buddies.
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.
PidginThemeFont * pidgin_blist_theme_get_collapsed_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used with collapsed groups.
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.
GdkColor * pidgin_blist_theme_get_collapsed_background_color(PidginBlistTheme *theme)
Returns the background color to be used with collapsed groups.