grim/guifications1
Clone
Summary
Browse
Changes
Graph
moved .cvsignore to .hgignore
default
tip
2010-12-15, Gary Kramlich
8707c33529f9
moved .cvsignore to .hgignore
can't do much more with this since gaim doesn't exist anymore :)
/*
Guifications - The notification plugin to end all notification plugins!
Copyright (C) 2003-2004 Gary Kramlich
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef GF_UTILS_H
#define GF_UTILS_H
#include
<glib.h>
#include
<pango/pango.h>
#include
<gtk/gtk.h>
#include
"guifications.h"
/***********************************************************************
structs
***********************************************************************/
typedef
struct
_dimensions
{
guint
height
;
guint
width
;
}
dimensions
;
/***********************************************************************
Prototypes
***********************************************************************/
void
gf_resize
(
GtkWidget
*
window
,
GtkWidget
*
box
);
gint
get_window_x
(
GtkWidget
*
window
);
gint
get_window_y
(
GtkWidget
*
window
);
gint
get_window_width
(
GtkWidget
*
box
);
gint
get_window_height
(
GtkWidget
*
box
);
void
get_image_size
(
dimensions
*
image_size
);
void
get_zoom_size
(
dimensions
image_size
,
dimensions
*
zoom_size
);
void
clip_layout
(
PangoLayout
**
layout
,
gboolean
use_color
,
const
gchar
*
text_x
,
const
gchar
*
text_color
);
void
set_color
(
PangoLayout
**
layout
,
gboolean
custom_color
,
const
gchar
*
pref
);
gchar
*
set_text_color
(
const
gchar
*
text
,
const
gchar
*
pref
);
gchar
*
g_strrndup
(
const
gchar
*
src
,
gint
n
);
gint
get_icon_size
();
gboolean
is_even
(
gint
number
);
void
get_text_pos
(
gint
*
x
,
gint
*
y
,
gboolean
line
,
PangoLayout
*
layout
);
void
get_icon_pos
(
gint
*
x
,
gint
*
y
);
/**********************************************************************/
#endif