1 /* $Id: arrow.hg,v 1.1 2003/01/21 13:38:42 murrayc Exp $ */
5 * Copyright (C) 1998-2002 The gtkmm Development Team
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the Free
19 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #include <gtkmm/misc.h>
24 _PINCLUDE(gtkmm/private/misc_p.h)
29 /** Produces an arrow pointing in one of the four cardinal directions.
31 * This is intended for use where a directional arrow (in one of the four
32 * cardinal directions) is desired. As such, it has very limited
33 * functionality and basically only draws itself in a particular direction
34 * and with a particular shadow type.
36 * Gtk::Arrow will fill any space alloted to it, but since it is inherited
37 * from Gtk::Misc, it can be padded and/or aligned, to fill exactly the
38 * space the programmer desires.
42 class Arrow : public Misc {
43 _CLASS_GTKOBJECT(Arrow,GtkArrow,GTK_ARROW,Gtk::Misc,GtkMisc)
49 * @param arrow_type A Gtk::ArrowType enum describing the arrow direction.
50 * @param shadow_type A Gtk::ShadowType enum describing the shadow type of
53 _WRAP_CTOR(Arrow(ArrowType arrow_type, ShadowType shadow_type), gtk_arrow_new)
56 // Changes the direction and shadow of an arrow.
57 _WRAP_METHOD(void set(ArrowType arrow_type, ShadowType shadow_type),gtk_arrow_set)
59 _WRAP_PROPERTY("arrow-type", ArrowType)
60 _WRAP_PROPERTY("shadow-type", ShadowType)