pike.git / src / post_modules / GTK2 / source / pangofontdescription.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/pangofontdescription.pre:16:   {    pgtk_verify_not_inited();    pgtk_verify_setup();    if (args) {    char *str;    get_all_args("create",args,"%s",&str);    if (str)    THIS->obj=(void *)pango_font_description_from_string(str);    else    THIS->obj=(void *)pango_font_description_new(); +  my_pop_n_elems(args);    } else    THIS->obj=(void *)pango_font_description_new();    pgtk__init_this_object();   }      Pango.FontDescription copy()   //! Copy a font description.   {    pgtk_verify_inited();    {
pike.git/src/post_modules/GTK2/source/pangofontdescription.pre:39:    push_gobjectclass(pfd,ppango_font_description_program);    }   }      int equal(Pango.FontDescription desc)   //! Compares two font descriptions for equality.   {    pgtk_verify_inited();    {    struct object *o1; +  int res; +     get_all_args("equal",args,"%o",&o1); -  +  res=pango_font_description_equal((PangoFontDescription *)THIS->obj, +  (PangoFontDescription *)get_gobject(o1));    my_pop_n_elems(args); -  push_int(pango_font_description_equal((PangoFontDescription *)THIS->obj, -  (PangoFontDescription *)get_gobject(o1))); +  PGTK_PUSH_INT(res);    }   }      void destroy()   //! Destructor.   {    if (THIS->obj)    pango_font_description_free((PangoFontDescription *)THIS->obj);    THIS->obj=0; -  +  my_pop_n_elems(args);    push_int(0);   }      void set_family(string family)   //! Sets the family name. The family name represents a family of related   //! fonts styles, and will resolve to a particular PangoFontFamily.   {    pgtk_verify_inited();    {    char *str;
pike.git/src/post_modules/GTK2/source/pangofontdescription.pre:247:      int better_match(Pango.FontDescription new, ?Pango.FontDescription old)   //! Determines if the style attributes of new are a closer match than old, or   //! if old is omitted, determines if new is a match at all. Approximate   //! matching is done for weight and style; other attributes must match exactly.   {    pgtk_verify_inited();    {    struct object *o1,*o2=NULL;    int res; -  if (args==1) -  get_all_args("better_match",args,"%o",&o1); -  else -  get_all_args("better_match",args,"%o%o",&o1,&o2); -  my_pop_n_elems(args); +  get_all_args("better_match",args,"%o.%o",&o1,&o2);    res=pango_font_description_better_match((PangoFontDescription *)THIS->obj,    (PangoFontDescription *)get_gobject(o2),    (PangoFontDescription *)get_gobject(o1)); -  +  my_pop_n_elems(args);    push_int(res);    }   }      string to_string()   //! Creates a string representation. The family list in the string description   //! will only have a terminating comm if the last word of the list is a valid   //! style option.   {    pgtk_verify_inited();