grim/guifications3
Clone
Summary
Browse
Changes
Graph
removed some ENABLE_NLS wrappers
2011-05-17, Gary Kramlich
f31281edef1c
removed some ENABLE_NLS wrappers
/*
* Guifications - The end-all, be-all notification framework
* Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef GF_PRIMITIVES_H
#define GF_PRIMITIVES_H
#include
<glib-object.h>
#define GF_TYPE_LINE (gf_line_get_gtype())
typedef
struct
_GfLine
{
gint
x1
;
gint
y1
;
gint
x2
;
gint
y2
;
}
GfLine
;
#define GF_TYPE_POINT (gf_point_get_gtype())
typedef
struct
_GfPoint
{
gint
x
;
gint
y
;
}
GfPoint
;
#define GF_TYPE_RECTANGLE (gf_rectangle_get_gtype())
typedef
struct
_GfRectangle
{
gint
x
;
gint
y
;
gint
width
;
gint
height
;
}
GfRectangle
;
#define GF_TYPE_SEGMENT (gf_segment_get_gtype())
typedef
struct
_GfSegment
{
gint
x1
;
gint
y1
;
gint
x2
;
gint
y2
;
}
GfSegment
;
G_BEGIN_DECLS
GType
gf_line_get_gtype
(
void
);
GType
gf_point_get_gtype
(
void
);
gboolean
gf_rectangle_intersect
(
const
GfRectangle
*
src1
,
const
GfRectangle
*
src2
,
GfRectangle
*
dest
);
void
gf_rectangle_union
(
const
GfRectangle
*
src1
,
const
GfRectangle
*
src2
,
GfRectangle
*
dest
);
GType
gf_rectangle_get_gtype
(
void
);
GType
gf_segment_get_gtype
(
void
);
G_END_DECLS
#endif
/* GF_PRIMITIVES_H */