eb05362005-11-05Henrik Grubbström (Grubba) /* -*- C -*- */
1a05542005-07-28Martin Nilsson class GTK2.Arrow; inherit GTK2.Misc; //! An arrow pointing in one of four directions. The 'etched' shadow //! types does not work. //! IMG: GTK2.Arrow(GTK2.ARROW_UP, GTK2.SHADOW_OUT) //! IMG: GTK2.Arrow(GTK2.ARROW_LEFT, GTK2.SHADOW_IN) //! IMG: GTK2.Arrow(GTK2.ARROW_RIGHT, GTK2.SHADOW_IN) //! IMG: GTK2.Arrow(GTK2.ARROW_DOWN, GTK2.SHADOW_OUT) //! Properties: //! int arrow-type CONST(GTK_ARROW_) //! int shadow-type CONST(GTK_SHADOW_)
3d76632005-11-03Lance Dillon void create(int|mapping(string:mixed) arrow_type_or_props, ?int shadow_type)
1a05542005-07-28Martin Nilsson //! First argument is one of CONST(GTK_ARROW), second one of CONST(GTK_SHADOW).
3d76632005-11-03Lance Dillon {
ba9e802006-02-27Martin Stjernholm  pgtk2_verify_not_inited(); pgtk2_verify_setup();
3d76632005-11-03Lance Dillon  {
017b572011-10-28Henrik Grubbström (Grubba)  if (TYPEOF(Pike_sp[-args]) == PIKE_T_INT) {
cac4202005-12-17Marcus Comstedt  INT_TYPE arrow,shadow;
3d76632005-11-03Lance Dillon  GtkWidget *ga;
96f5f42018-08-05Martin Nilsson  get_all_args(NULL,args,"%i%i",&arrow,&shadow);
3d76632005-11-03Lance Dillon  ga=gtk_arrow_new(arrow,shadow); THIS->obj=G_OBJECT(ga); } else { INIT_WITH_PROPS(GTK_TYPE_ARROW); }
ba9e802006-02-27Martin Stjernholm  pgtk2_pop_n_elems(args);
3d76632005-11-03Lance Dillon  }
ba9e802006-02-27Martin Stjernholm  pgtk2__init_this_object();
3d76632005-11-03Lance Dillon }
1a05542005-07-28Martin Nilsson  void set(int arrow_type, int shadow_type); //! First argument is one of CONST(GTK_ARROW), second one of CONST(GTK_SHADOW).