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

version» Context lines:

pike.git/src/post_modules/GTK2/source/pangofontdescription.pre:93:      void set_style(int style)   //! Sets the style. This describes whether the font is slanted and the manner   //! in which is is slanted. One of CONST(PANGO_STYLE_). Most fonts will   //! either have an italic style or an oblique style, but not both, and font   //! matching in Pango will match italic specifications with oblique fonts and   //! vice-versa if an exact match is not found.   {    pgtk_verify_inited();    { -  int style; +  INT_TYPE style;    get_all_args("set_style",args,"%i",&style);    pango_font_description_set_style((PangoFontDescription *)THIS->obj,style);    }    RETURN_THIS();   }      int get_style()   //! Gets the style.   {    pgtk_verify_inited();    my_pop_n_elems(args);    push_int(pango_font_description_get_style((PangoFontDescription *)THIS->obj));   }      void set_variant(int variant)   //! Sets the variant. One of CONST(PANGO_VARIANT_).   {    pgtk_verify_inited();    { -  int var; +  INT_TYPE var;    get_all_args("set_variant",args,"%i",&var);    pango_font_description_set_variant((PangoFontDescription *)THIS->obj,var);    }    RETURN_THIS();   }      int get_variant()   //! Gets the variant.   {    pgtk_verify_inited();
pike.git/src/post_modules/GTK2/source/pangofontdescription.pre:136:    (PangoFontDescription *)THIS->obj));   }      void set_weight(int weight)   //! Sets the weight. The weight specifies how bold or light the font should   //! be. In addition to the values of CONST(PANGO_WEIGHT_), other intermediate   //! numeric values are possible.   {    pgtk_verify_inited();    { -  int we; +  INT_TYPE we;    get_all_args("set_weight",args,"%i",&we);    pango_font_description_set_weight((PangoFontDescription *)THIS->obj,we);    }    RETURN_THIS();   }      int get_weight()   //! Gets the weight.   {    pgtk_verify_inited();
pike.git/src/post_modules/GTK2/source/pangofontdescription.pre:158:    push_int(pango_font_description_get_weight(    (PangoFontDescription *)THIS->obj));   }      void set_stretch(int stretch)   //! Sets the stretch. This specifies how narrow or wide the font should be.   //! One of CONST(PANGO_STRETCH_).   {    pgtk_verify_inited();    { -  int st; +  INT_TYPE st;    get_all_args("set_stretch",args,"%i",&st);    pango_font_description_set_stretch((PangoFontDescription *)THIS->obj,st);    }    RETURN_THIS();   }      int get_stretch()   //! Get the stretch.   {    pgtk_verify_inited();
pike.git/src/post_modules/GTK2/source/pangofontdescription.pre:185:   //! Sets the size in fractional points. This is the size of the font in   //! points, scaled by PANGO_SCALE. (That is, a size value of 10*PANGO_SCALE)   //! is a 10 point font. The conversion factor between points and device units   //! depends on system configuration and the output device. For screen display,   //! a logical DPI of 96 is common, in which case a 10 point font corresponds   //! to a 1o*(96.72) = 13.3 pixel font. Use set_absolute_size() if you need   //! a particular size in device units.   {    pgtk_verify_inited();    { -  int size; +  INT_TYPE size;    get_all_args("set_size",args,"%i",&size);    pango_font_description_set_size((PangoFontDescription *)THIS->obj,size);    }    RETURN_THIS();   }      int get_size()   //! Gets the size.   {    pgtk_verify_inited();
pike.git/src/post_modules/GTK2/source/pangofontdescription.pre:209:   }      /*   void set_absolute_size(float size)   //! Sets the size in pango units. There are GTK2.PANGO_SCALE pango units in   //! one device unit. For an output backend where a device unit is a pixel,   //! a size value of 10*GTK2.PANGO_SCALE gives a 10 pixel font.   {    pgtk_verify_inited();    { -  double size; -  get_all_args("set_absolute_size",args,"%i",&size); +  FLOAT_TYPE size; +  get_all_args("set_absolute_size",args,"%f",&size);    pango_font_description_set_absolute_size((PangoFontDescription *)THIS->obj,    size);    }    RETURN_THIS();   }      int get_size_is_absolute()   //! Determines whether the size of the font is in points or device units.   {    pgtk_verify_inited();
pike.git/src/post_modules/GTK2/source/pangofontdescription.pre:235:   */      void merge(Pango.FontDescription desc, int replace)   //! Merges the fields that are set int desc to the fields in this description.   //! If replace is false, only fields in this description that are not already   //! set are affected. If true, then fields that are already set will be   //! replaced as well.   {    pgtk_verify_inited();    { -  int rep; +  INT_TYPE rep;    struct object *o1;    get_all_args("merge",args,"%o%i",&o1,&rep);    pango_font_description_merge((PangoFontDescription *)THIS->obj,    (PangoFontDescription *)get_gobject(o1),rep);    }    RETURN_THIS();   }      int better_match(Pango.FontDescription new, ?Pango.FontDescription old)   //! Determines if the style attributes of new are a closer match than old, or