eb05362005-11-05Henrik Grubbström (Grubba) /* -*- C -*- */
f284492006-08-03Lance Dillon not gtk210;
a9e4522005-11-08Henrik Grubbström (Grubba) require gnomeui;
1a05542005-07-28Martin Nilsson  class Gnome2.DruidPageEdge; inherit Gnome2.DruidPage; /* member string title; member string text; member GDK2.Pixbuf logo_image; member GDK2.Pixbuf watermark_image; member GDK2.Pixbuf top_watermark_image; member GDK2.Color background_color; member GDK2.Color textbox_color; member GDK2.Color logo_background_color; member GDK2.Color title_color; member GDK2.Color text_color; member int position; */ void create(int position, ?int anti_alias) //! Create a new Gnome2.DruidPageEdge, with optional anti-aliasing. {
ba9e802006-02-27Martin Stjernholm  pgtk2_verify_not_inited(); pgtk2_verify_setup();
1a05542005-07-28Martin Nilsson  {
1e51d42005-12-28Martin Nilsson  INT_TYPE pos,aa=0;
3d76632005-11-03Lance Dillon  GtkWidget *gpe;
96f5f42018-08-05Martin Nilsson  get_all_args(NULL,args,"%i.%i",&pos,&aa);
1e51d42005-12-28Martin Nilsson  if (aa)
3d76632005-11-03Lance Dillon  gpe=gnome_druid_page_edge_new_aa(pos);
1e51d42005-12-28Martin Nilsson  else gpe=gnome_druid_page_edge_new(pos); THIS->obj=G_OBJECT(gpe);
1a05542005-07-28Martin Nilsson  }
ba9e802006-02-27Martin Stjernholm  pgtk2_pop_n_elems(args); pgtk2__init_this_object();
1a05542005-07-28Martin Nilsson } void set_bg_color(GDK2.Color color) //! This will set the background color. {
ba9e802006-02-27Martin Stjernholm  pgtk2_verify_inited();
1a05542005-07-28Martin Nilsson  { GdkColor *color; struct object *o1;
96f5f42018-08-05Martin Nilsson  get_all_args(NULL,args,"%o",&o1);
1a05542005-07-28Martin Nilsson  color=(GdkColor *)get_gdkobject(o1,color); gnome_druid_page_edge_set_bg_color(GNOME_DRUID_PAGE_EDGE(THIS->obj), color); } RETURN_THIS(); } void set_textbox_color(GDK2.Color color) //! Sets the color of the background in the main text area of the page. {
ba9e802006-02-27Martin Stjernholm  pgtk2_verify_inited();
1a05542005-07-28Martin Nilsson  { GdkColor *color; struct object *o1;
96f5f42018-08-05Martin Nilsson  get_all_args(NULL,args,"%o",&o1);
1a05542005-07-28Martin Nilsson  color=(GdkColor *)get_gdkobject(o1,color); gnome_druid_page_edge_set_textbox_color(GNOME_DRUID_PAGE_EDGE(THIS->obj), color); } RETURN_THIS(); } void set_logo_bg_color(GDK2.Color color) //! Sets the color behind the druid page's logo. {
ba9e802006-02-27Martin Stjernholm  pgtk2_verify_inited();
1a05542005-07-28Martin Nilsson  { GdkColor *color; struct object *o1;
96f5f42018-08-05Martin Nilsson  get_all_args(NULL,args,"%o",&o1);
1a05542005-07-28Martin Nilsson  color=(GdkColor *)get_gdkobject(o1,color); gnome_druid_page_edge_set_logo_bg_color(GNOME_DRUID_PAGE_EDGE(THIS->obj), color); } RETURN_THIS(); } void set_title_color(GDK2.Color color) //! Sets the color of the title text. {
ba9e802006-02-27Martin Stjernholm  pgtk2_verify_inited();
1a05542005-07-28Martin Nilsson  { GdkColor *color; struct object *o1;
96f5f42018-08-05Martin Nilsson  get_all_args(NULL,args,"%o",&o1);
1a05542005-07-28Martin Nilsson  color=(GdkColor *)get_gdkobject(o1,color); gnome_druid_page_edge_set_title_color(GNOME_DRUID_PAGE_EDGE(THIS->obj), color); } RETURN_THIS(); } void set_text_color(GDK2.Color color) //! Sets the color of the text in the body of the page. {
ba9e802006-02-27Martin Stjernholm  pgtk2_verify_inited();
1a05542005-07-28Martin Nilsson  { GdkColor *color; struct object *o1;
96f5f42018-08-05Martin Nilsson  get_all_args(NULL,args,"%o",&o1);
1a05542005-07-28Martin Nilsson  color=(GdkColor *)get_gdkobject(o1,color); gnome_druid_page_edge_set_text_color(GNOME_DRUID_PAGE_EDGE(THIS->obj), color); } RETURN_THIS(); }
a7f5322011-01-15Henrik Grubbström (Grubba) void set_text(sprintf_format text, sprintf_args ... fmt)
1a05542005-07-28Martin Nilsson //! Sets the contents of the text portion.
0e75122010-09-19Marcus Comstedt { pgtk2_get_string_arg_with_sprintf(args); pgtk2_verify_inited(); gnome_druid_page_edge_set_text(GNOME_DRUID_PAGE_EDGE(THIS->obj),Pike_sp[-1].u.string->str); pgtk2_return_this(1); }
1a05542005-07-28Martin Nilsson  void set_title(string title); //! Sets the contents of the page's title text. void set_logo(?GDK2.Pixbuf logo) //! Sets a GDK2.Pixbuf as the logo in the top right corner. If omitted, then no //! logo will be displayed. {
ba9e802006-02-27Martin Stjernholm  pgtk2_verify_inited();
1a05542005-07-28Martin Nilsson  if (args) { struct object *o1;
96f5f42018-08-05Martin Nilsson  get_all_args(NULL,args,"%o",&o1);
1a05542005-07-28Martin Nilsson  gnome_druid_page_edge_set_logo(GNOME_DRUID_PAGE_EDGE(THIS->obj), GDK_PIXBUF(get_gobject(o1))); } else { gnome_druid_page_edge_set_logo(GNOME_DRUID_PAGE_EDGE(THIS->obj),NULL); } RETURN_THIS(); } void set_watermark(?GDK2.Pixbuf watermark) //! Sets a GDK2.Pixbuf as the watermark on the left strip on the druid. If //! watermark is omitted, it is reset to the normal color. {
ba9e802006-02-27Martin Stjernholm  pgtk2_verify_inited();
1a05542005-07-28Martin Nilsson  if (args) { struct object *o1;
96f5f42018-08-05Martin Nilsson  get_all_args(NULL,args,"%o",&o1);
1a05542005-07-28Martin Nilsson  gnome_druid_page_edge_set_watermark(GNOME_DRUID_PAGE_EDGE(THIS->obj), GDK_PIXBUF(get_gobject(o1))); } else gnome_druid_page_edge_set_watermark(GNOME_DRUID_PAGE_EDGE(THIS->obj),NULL); RETURN_THIS(); } void set_top_watermark(?GDK2.Pixbuf watermark) //! Sets a GDK2.Pixbuf as the watermark on top of the top strip on the druid. //! If watermark is omitted, it is reset to the normal color. {
ba9e802006-02-27Martin Stjernholm  pgtk2_verify_inited();
1a05542005-07-28Martin Nilsson  if (args) { struct object *o1;
96f5f42018-08-05Martin Nilsson  get_all_args(NULL,args,"%o",&o1);
1a05542005-07-28Martin Nilsson  gnome_druid_page_edge_set_top_watermark(GNOME_DRUID_PAGE_EDGE(THIS->obj), GDK_PIXBUF(get_gobject(o1))); } else gnome_druid_page_edge_set_top_watermark( GNOME_DRUID_PAGE_EDGE(THIS->obj),NULL); RETURN_THIS(); }
f284492006-08-03Lance Dillon endrequire; endnot;