Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > ca81b57b553ae75608ba0fc5e7925e4e > files > 469

libgtkmm1.2-devel-1.2.10-1mdk.ppc.rpm

/* $Id: arrow.gen_h,v 1.36 2001/07/15 13:33:38 murrayc Exp $ */

/* arrow.h
 *
 * Copyright (C) 1998-1999 The Gtk-- Development Team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#include <gtk--/misc.h>
#include <gtk/gtkarrow.h>

namespace Gtk {
//: Produces an arrow pointing in one of the four cardinal directions.
//- This is intended for use where a directional arrow (in one of the
//- four cardinal directions) is desired. As such, it has very limited
//- functionality and basically only draws itself in a particular
//- direction and
//- with a particular shadow type.
//-
//- {Gtk::Arrow::} will fill any space alloted to it, but since it is inherited
//- from {Gtk::Misc::}, it can be padded and/or aligned, to fill exactly
//- the space the programmer desires.
class Arrow : public Misc {


public:
  typedef Arrow          CppObjectType;
  typedef GtkArrow            BaseObjectType;

public:
  //: Returns the underlaying gtk+ object.
  GtkArrow* gtkobj();
  const GtkArrow* gtkobj() const;

  //: Returns true if object is this type.
  static bool isA(Gtk::Object *object);

  virtual ~Arrow();

private:

public:


  //: Creates an arrow.
  //- arrow_type: The direction the arrow points. This is one of: {\enum GTK_ARROW_UP},
  //- {\enum GTK_ARROW_DOWN}, {\enum GTK_ARROW_LEFT}, or {\enum GTK_ARROW_RIGHT}.
  //- shadow_type: The style of the arrow. Can be one of:  {\enum GTK_SHADOW_NONE},
  //- {\enum GTK_SHADOW_IN}, {\enum GTK_SHADOW_OUT}, {\enum GTK_SHADOW_ETCHED_IN},
  //- or {\enum GTK_SHADOW_ETCHED_OUT}.
  Arrow(GtkArrowType arrow_type,
	    GtkShadowType shadow_type);



  //: Changes the direction and shadow of an arrow.



  void set(GtkArrowType arrow_type,GtkShadowType shadow_type);




protected:
  // impl functions

};



//+ PROPERTIES(Gtk_Arrow)
//. name: arrow_type
//. type: gint16
//. get:
//. set: {set()}
//. desc: Specifies which direction the arrow will point.
//.
//. Possible Values: {\enum GTK_ARROW_UP}, {\enum GTK_ARROW_DOWN},
//.  {\enum  GTK_ARROW_LEFT}, {\enum GTK_ARROW_RIGHT}

//. name: shadow_type
//. type: gint16
//. get:
//. set: {set()}
//. desc: Specifies which direction the arrow will point.
//.
//. Possible Values:
//.   {\enum GTK_SHADOW_IN}, {\enum GTK_SHADOW_OUT}

}