pidgin 2.14.14dev
Loading...
Searching...
No Matches
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
63typedef struct
64{
65 const gchar *font;
66 const gchar *color;
67
68} PidginThemeFont;
69#endif
70typedef struct _PidginThemeFont PidginThemeFont;
71
72typedef 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
95PidginThemeFont * pidgin_theme_font_new(const gchar *face, GdkColor *color);
96
102void pidgin_theme_font_free(PidginThemeFont *font);
103
110void pidgin_theme_font_set_font_face(PidginThemeFont *font, const gchar *face);
111
118void pidgin_theme_font_set_color(PidginThemeFont *font, const GdkColor *color);
119
127const gchar * pidgin_theme_font_get_font_face(PidginThemeFont *font);
128
136const GdkColor * pidgin_theme_font_get_color(PidginThemeFont *font);
137
145const gchar * pidgin_theme_font_get_color_describe(PidginThemeFont *font);
146
147/**************************************************************************/
149/**************************************************************************/
150G_BEGIN_DECLS
151
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
315
323
331
339
346void pidgin_blist_theme_set_expanded_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair);
347
355
362void pidgin_blist_theme_set_collapsed_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair);
363
370void pidgin_blist_theme_set_contact_color(PidginBlistTheme *theme, const GdkColor *color);
371
378void pidgin_blist_theme_set_contact_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair);
379
386void pidgin_blist_theme_set_online_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair);
387
394void pidgin_blist_theme_set_away_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair);
395
402void pidgin_blist_theme_set_offline_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair);
403
410void pidgin_blist_theme_set_idle_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair);
411
419
428
435void pidgin_blist_theme_set_status_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair);
436
437G_END_DECLS
438#endif /* PIDGIN_BLIST_THEME_H */
GdkColor * pidgin_blist_theme_get_collapsed_background_color(PidginBlistTheme *theme)
Returns the background color to be used with collapsed groups.
const GdkColor * pidgin_theme_font_get_color(PidginThemeFont *font)
Get the color of a PidginThemeFont as a GdkColor object.
PidginThemeFont * pidgin_blist_theme_get_collapsed_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used with collapsed groups.
GdkColor * pidgin_blist_theme_get_background_color(PidginBlistTheme *theme)
Returns the background color of the buddy list.
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.
GdkColor * pidgin_blist_theme_get_expanded_background_color(PidginBlistTheme *theme)
Returns the background color to be used with expanded groups.
void pidgin_blist_theme_set_opacity(PidginBlistTheme *theme, gdouble opacity)
Sets the opacity to be used for this buddy list theme.
const gchar * pidgin_theme_font_get_font_face(PidginThemeFont *font)
Get the font-face of a PidginThemeFont.
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_contact_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair)
Sets the text color and font to be used for expanded contacts.
G_BEGIN_DECLS GType pidgin_blist_theme_get_type(void)
GObject foo.
PidginThemeFont * pidgin_blist_theme_get_offline_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used for offline buddies.
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_online_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair)
Sets the text color and font to be used for online buddies.
PidginThemeFont * pidgin_theme_font_new(const gchar *face, GdkColor *color)
Create a new PidginThemeFont.
PidginThemeFont * pidgin_blist_theme_get_expanded_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used with expanded groups.
void pidgin_theme_font_free(PidginThemeFont *font)
Frees a font and color pair.
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.
PidginBlistLayout * pidgin_blist_theme_get_layout(PidginBlistTheme *theme)
Returns the layout to be used with the buddy list.
void pidgin_blist_theme_set_collapsed_background_color(PidginBlistTheme *theme, const GdkColor *color)
Sets the background color to be used for collapsed groups.
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_status_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair)
Sets the text color and font to be used for buddy status messages.
void pidgin_theme_font_set_color(PidginThemeFont *font, const GdkColor *color)
Set the color 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.
GdkColor * pidgin_blist_theme_get_contact_color(PidginBlistTheme *theme)
Returns the colors to be used for contacts and chats.
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_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_idle_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used for idle buddies.
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.
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.
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_blist_theme_set_contact_color(PidginBlistTheme *theme, const GdkColor *color)
Sets the background color to be used for contacts and chats.
const gchar * pidgin_theme_font_get_color_describe(PidginThemeFont *font)
Get the color of a PidginThemeFont.
void pidgin_blist_theme_set_expanded_background_color(PidginBlistTheme *theme, const GdkColor *color)
Sets the background color to be used for expanded groups.
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_font_face(PidginThemeFont *font, const gchar *face)
Set the font-face of a PidginThemeFont.
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.
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.
PidginThemeFont * pidgin_blist_theme_get_online_text_info(PidginBlistTheme *theme)
Returns the text font and color to be used for online buddies.
Purple Theme Abstact Class API.