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

version» Context lines:

pike.git/src/post_modules/GTK2/source/pangolayout.pre:7:   //! Pango Layout.      void create(Pango.Context context)   //! Create a new layout with attributes initialized to default values for   //! a particular Pango.Context   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    {    struct object *o1; -  get_all_args("create",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    THIS->obj=(void *)pango_layout_new(PANGO_CONTEXT(get_gobject(o1)));    pgtk2_pop_n_elems(args);    }    pgtk2__init_this_object();   }      Pango.Layout copy(Pango.Layout src)   //! Does a copy of the src.   {    pgtk2_verify_inited();    {    struct object *o1;    PangoLayout *pl; -  get_all_args("copy",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    pl=pango_layout_copy(PANGO_LAYOUT(get_gobject(o1)));    pgtk2_pop_n_elems(args);    push_gobject(pl);   /* push_gobjectclass(pl,ppango2_layout_program); */    }   }      Pango.Context get_context()   //! Returns the Pango.Context.   {
pike.git/src/post_modules/GTK2/source/pangolayout.pre:65:      string get_text();   //! Gets the text.      void set_markup(string markup, int length)   //! Same as set_markup_with_accel(), but the markup text isn't scanned for   //! accelerators.   {    struct pike_string *text;    -  get_all_args("set_markup",args,"%t",&text); +  get_all_args(NULL,args,"%t",&text);    ref_push_string(text);    f_string_to_utf8(1);    pango_layout_set_markup(PANGO_LAYOUT(THIS->obj),Pike_sp[-1].u.string->str,Pike_sp[-1].u.string->len);    pop_stack();    RETURN_THIS();   }      void set_markup_with_accel(string markup, int length, ?int accel_marker)   //! Sets the layout text and attribute from marked-up text. Replaces the   //! current text and attribute list.
pike.git/src/post_modules/GTK2/source/pangolayout.pre:89:   //! ampersand or underscore. All characters marked as an acclerator will   //! receive a GTK2.PANGO_UNDERLINE_LOW attribute, and the first character so   //! marked will be returned. Two accel_marker characters following each other   //! produce a single literal accel_marker character.   {    pgtk2_verify_inited();    {    const char *markup;    INT_TYPE len, accel_marker=0;    gunichar accel_char; -  get_all_args("set_markup_with_accel",args,"%s%i.%i",&markup,&len, +  get_all_args(NULL,args,"%s%i.%i",&markup,&len,    &accel_marker);    pango_layout_set_markup_with_accel(PANGO_LAYOUT(THIS->obj),    markup,len,accel_marker,&accel_char);    pgtk2_pop_n_elems(args);    push_int(accel_char);    }   }      void set_font_description(Pango.FontDescription desc)   //! Sets the default font description for the layout. If no font   //! description is set on the layout, the font descriptions from the layout's   //! context is used.   {    pgtk2_verify_inited();    {    struct object *o1; -  get_all_args("set_font_description",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    pango_layout_set_font_description(PANGO_LAYOUT(THIS->obj),    (PangoFontDescription *)get_gobject(o1));    }    RETURN_THIS();   }      /*   Pango.FontDescription get_font_description()   //! Gets the font description for the layout, if any.   {
pike.git/src/post_modules/GTK2/source/pangolayout.pre:208:   int get_alignment();   //! Gets the alignment.      void set_tabs(?Pango.TabArray tabs)   //! Sets the tabs to use, overriding the default tabs (by default, tabs are   //! every 8 spaces). If tabs is omitted, the default tabs are reinstated.   {    pgtk2_verify_inited();    if (args) {    struct object *o1; -  get_all_args("set_tabs",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    pango_layout_set_tabs(PANGO_LAYOUT(THIS->obj),    (PangoTabArray *)get_gobject(o1));    } else    pango_layout_set_tabs(PANGO_LAYOUT(THIS->obj),NULL);    RETURN_THIS();   }      Pango.TabArray get_tabs()   //! Gets the current W(TabArray) used by this layout. If no W(TabArray) has   //! been set, then the default tabs are in use and 0 is returned. Default
pike.git/src/post_modules/GTK2/source/pangolayout.pre:253:   //! or the end of the line is chosen as describe for x_to_index(). If either   //! the x or y positions were not inside the layout, then returns 0.   //! <p>   //! Returns:   //! ([ "index": byte index, "trailing": where in grapheme user clicked ]).   {    pgtk2_verify_inited();    {    INT_TYPE x,y;    int index,trailing,res; -  get_all_args("xy_to_index",args,"%i%i",&x,&y); +  get_all_args(NULL,args,"%i%i",&x,&y);    pgtk2_pop_n_elems(args);    res=pango_layout_xy_to_index(PANGO_LAYOUT(THIS->obj),x,y,&index,&trailing);    if (res) {    ref_push_string(_STR("index")); push_int(index);    ref_push_string(_STR("trailing")); push_int(trailing);    f_aggregate_mapping(4);    } else {    push_int(0);    }    }
pike.git/src/post_modules/GTK2/source/pangolayout.pre:281:   //! then width will be negative.   //! <p>   //! Returns:   //! ([ "x": x coordinate, "y": y coordinate,   //! "width": width of the rectangle, "height": height of the rectangle ])   {    pgtk2_verify_inited();    {    INT_TYPE index;    PangoRectangle pos; -  get_all_args("index_to_pos",args,"%i",&index); +  get_all_args(NULL,args,"%i",&index);    pgtk2_pop_n_elems(args);    pango_layout_index_to_pos(PANGO_LAYOUT(THIS->obj),index,&pos);    ref_push_string(_STR("x")); push_int(pos.x);    ref_push_string(_STR("y")); push_int(pos.y);    ref_push_string(_STR("width")); push_int(pos.width);    ref_push_string(_STR("height")); push_int(pos.height);    f_aggregate_mapping(8);    }   }   
pike.git/src/post_modules/GTK2/source/pangolayout.pre:307:   //! direction of the layout are inserted. The weak cursor location is the   //! location where characters of the directionality opposite to the base   //! direction of the layout are inserted.   //! Returns:   //! array of mappings, each mapping is the same as index_to_pos().   {    pgtk2_verify_inited();    {    INT_TYPE index;    PangoRectangle pos1,pos2; -  get_all_args("get_cursor_pos",args,"%i",&index); +  get_all_args(NULL,args,"%i",&index);    pgtk2_pop_n_elems(args);    pango_layout_get_cursor_pos(PANGO_LAYOUT(THIS->obj),index,&pos1,&pos2);    ref_push_string(_STR("x")); push_int(pos1.x);    ref_push_string(_STR("y")); push_int(pos1.y);    ref_push_string(_STR("width")); push_int(pos1.width);    ref_push_string(_STR("height")); push_int(pos1.height);    f_aggregate_mapping(8);    ref_push_string(_STR("x")); push_int(pos2.x);    ref_push_string(_STR("y")); push_int(pos2.y);    ref_push_string(_STR("width")); push_int(pos2.width);
pike.git/src/post_modules/GTK2/source/pangolayout.pre:344:   //! may be jumps when the cursor is moved off the end of a run.   //! <p>   //! Motion here is in cursor positions, not in characters, so a single call to   //! move_cursor_visually() may move the cursor over multiple characters when   //! multiple characters combine to form a single grapheme.   {    pgtk2_verify_inited();    {    INT_TYPE strong,old_index,old_trailing,dir;    int new_index,new_trailing; -  get_all_args("move_cursor_visually",args,"%i%i%i%i",&strong,&old_index, +  get_all_args(NULL,args,"%i%i%i%i",&strong,&old_index,    &old_trailing,&dir);    pgtk2_pop_n_elems(args);    pango_layout_move_cursor_visually(PANGO_LAYOUT(THIS->obj),    strong,old_index,old_trailing,dir,&new_index,&new_trailing);    ref_push_string(_STR("index")); push_int(new_index);    ref_push_string(_STR("trailing")); push_int(new_trailing);    f_aggregate_mapping(4);    }   }   
pike.git/src/post_modules/GTK2/source/pangolayout.pre:379:   int get_line_count();   //! Retrieves the count of lines.      Pango.LayoutLine get_line(int line)   //! Retrieves a specific line.   {    pgtk2_verify_inited();    {    INT_TYPE line;    PangoLayoutLine *pll; -  get_all_args("get_line",args,"%i",&line); +  get_all_args(NULL,args,"%i",&line);    pgtk2_pop_n_elems(args);    pll=pango_layout_get_line(PANGO_LAYOUT(THIS->obj),line);    push_gobjectclass(pll,ppango2_layout_line_program);    }   }      endrequire;