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_ITEM_SHAPE_H
#define GF_ITEM_SHAPE_H
#include
<gflib/gf_enum.h>
#include
<gflib-ui/gf_item.h>
#include
<gflib-ui/gf_primitives.h>
#define GF_TYPE_ITEM_SHAPE (gf_item_shape_get_gtype())
#define GF_ITEM_SHAPE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GF_TYPE_ITEM_SHAPE, GfItemShape))
#define GF_ITEM_SHAPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GF_TYPE_ITEM_SHAPE, GfItemShapeClass))
#define GF_IS_ITEM_SHAPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GF_TYPE_ITEM_SHAPE))
#define GF_IS_ITEM_SHAPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GF_TYPE_ITEM_SHAPE))
#define GF_ITEM_SHAPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GF_TYPE_ITEM_SHAPE, GfItemShapeClass))
typedef
struct
_GfItemShape
GfItemShape
;
typedef
struct
_GfItemShapeClass
GfItemShapeClass
;
#define GF_TYPE_ITEM_SHAPE_TYPE (gf_item_shape_type_get_gtype())
typedef
enum
_GfItemShapeType
{
GF_ITEM_SHAPE_UNKNOWN
=
-1
,
GF_ITEM_SHAPE_ARC
,
GF_ITEM_SHAPE_CIRCLE
,
GF_ITEM_SHAPE_LINE
,
GF_ITEM_SHAPE_POLYGON
,
GF_ITEM_SHAPE_RECTANGLE
,
GF_ITEM_SHAPE_SEGMENT
,
GF_ITEM_SHAPES
}
GfItemShapeType
;
struct
_GfItemShape
{
GfItem
parent
;
/**< The parent */
/* Padding for future additions */
void
(
*
_gf_reserved1
)(
void
);
/**< Reserved 1 */
void
(
*
_gf_reserved2
)(
void
);
/**< Reserved 2 */
void
(
*
_gf_reserved3
)(
void
);
/**< Reserved 3 */
void
(
*
_gf_reserved4
)(
void
);
/**< Reserved 4 */
};
struct
_GfItemShapeClass
{
GfItemClass
parent
;
/**< The parent */
/* Padding for future additions */
void
(
*
_gf_reserved1
)(
void
);
/**< Reserved 1 */
void
(
*
_gf_reserved2
)(
void
);
/**< Reserved 2 */
void
(
*
_gf_reserved3
)(
void
);
/**< Reserved 3 */
void
(
*
_gf_reserved4
)(
void
);
/**< Reserved 4 */
};
G_BEGIN_DECLS
GType
gf_item_shape_get_gtype
(
void
);
GfItemShape
*
gf_item_shape_new
(
GfItemShapeType
type
);
void
gf_item_shape_set_type
(
GfItemShape
*
shape
,
GfItemShapeType
type
);
GfItemShapeType
gf_item_shape_get_type
(
const
GfItemShape
*
shape
);
void
gf_item_shape_set_x
(
GfItemShape
*
shape
,
gint
x
);
gint
gf_item_shape_get_x
(
const
GfItemShape
*
shape
);
void
gf_item_shape_set_y
(
GfItemShape
*
shape
,
gint
y
);
gint
gf_item_shape_get_y
(
const
GfItemShape
*
shape
);
void
gf_item_shape_set_width
(
GfItemShape
*
shape
,
guint
width
);
guint
gf_item_shape_get_width
(
const
GfItemShape
*
shape
);
void
gf_item_shape_set_height
(
GfItemShape
*
shape
,
guint
height
);
guint
gf_item_shape_get_height
(
const
GfItemShape
*
shape
);
void
gf_item_shape_set_angle_start
(
GfItemShape
*
shape
,
gint
angle
);
gint
gf_item_shape_get_angle_start
(
const
GfItemShape
*
shape
);
void
gf_item_shape_set_angle_end
(
GfItemShape
*
shape
,
gint
angle
);
gint
gf_item_shape_get_angle_end
(
const
GfItemShape
*
shape
);
void
gf_item_shape_add_point
(
GfItemShape
*
shape
,
gint
x
,
gint
y
);
gboolean
gf_item_shape_remove_point
(
GfItemShape
*
shape
,
gint
x
,
gint
y
);
guint
gf_item_shape_get_number_of_points
(
const
GfItemShape
*
shape
);
GList
*
gf_item_shape_get_points
(
const
GfItemShape
*
shape
);
GType
gf_item_shape_type_get_gtype
(
void
);
#define gf_item_shape_type_from_string(str) \
gf_enum_from_string(GF_TYPE_ITEM_SHAPE_TYPE, (str))
#define gf_item_shape_type_to_string(type, i18n) \
gf_enum_to_string(GF_TYPE_ITEM_SHAPE_TYPE, (type), (i18n))
G_END_DECLS
#endif
/* GF_ITEM_SHAPE_H */