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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtktextview.pre:21:   //! Style properties:   //! GDK2.Color error-underline-color      signal backspace;   signal copy_clipboard;   signal cut_clipboard;   signal delete_from_cursor;   signal insert_at_cursor;   signal move_cursor;   signal move_focus; - signal move_viewpoert; + signal move_viewport;   signal page_horizontally;   signal paste_clipboard;   signal populate_popup;   signal select_all;   signal set_anchor;   signal set_scroll_adjustments;   signal toggle_overwrite;      void create(GTK2.TextBuffer|mapping(string:mixed)|void buffer_or_props)   //! Create a new W(TextView).   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (args) {    if (TYPEOF(Pike_sp[-args]) == PIKE_T_OBJECT) {    struct object *o1;    GtkWidget *gt; -  get_all_args("create",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    gt=gtk_text_view_new_with_buffer(GTK_TEXT_BUFFER(get_gobject(o1)));    THIS->obj=G_OBJECT(gt);    } else {    INIT_WITH_PROPS(GTK_TYPE_TEXT_VIEW);    }    pgtk2_pop_n_elems(args);    } else {    GtkWidget *gt;    gt=gtk_text_view_new();    THIS->obj=G_OBJECT(gt);
pike.git/src/post_modules/GTK2/source/gtktextview.pre:78:      void scroll_to_iter(GTK2.TextIter iter, float within_margin,    int use_align, float xalign, float yalign)   //! Scrolls the view so that iter is on the screen as with scroll_to_mark().   {    pgtk2_verify_inited();    {    struct object *o1;    FLOAT_TYPE within_margin,xalign,yalign;    INT_TYPE use_align; -  get_all_args("scroll_to_iter",args,"%o%f%i%f%f",&o1,&within_margin, +  get_all_args(NULL,args,"%o%f%i%f%f",&o1,&within_margin,    &use_align,&xalign,&yalign);    gtk_text_view_scroll_to_iter(GTK_TEXT_VIEW(THIS->obj),    (GtkTextIter *)get_pg2object(o1,pgtk2_text_iter_program),within_margin,use_align,    xalign,yalign);    }    RETURN_THIS();   }      void scroll_mark_onscreen(GTK2.TextMark mark);   //! Scrolls the view the minimum distance such that mark is contained
pike.git/src/post_modules/GTK2/source/gtktextview.pre:130:   //! to convert these coordinates to coordinates for one of the windows in   //! the text view.   {    pgtk2_verify_inited();    {    GdkRectangle *gdr;    struct object *o1;    gdr=g_malloc(sizeof(GdkRectangle));    if (gdr==NULL)    SIMPLE_OUT_OF_MEMORY_ERROR("get_iter_location",sizeof(GdkRectangle)); -  get_all_args("get_iter_location",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    gtk_text_view_get_iter_location(GTK_TEXT_VIEW(THIS->obj),    (GtkTextIter *)get_pg2object(o1,pgtk2_text_iter_program),gdr);    pgtk2_pop_n_elems(args);    push_gdkobject(gdr,rectangle,1);    }   }      +GTK2.TextIter get_line_at_y(int y)   //! Returns a W(TextIter) for the start of the line containing the coordinate   //! y. y is in buffer coordinates, convert from window coordinates with   //! window_to_buffer_coords().   {    pgtk2_verify_inited();    {    INT_TYPE y;    GtkTextIter *gti; -  get_all_args("get_line_at_y",args,"%i",&y); +  get_all_args(NULL,args,"%i",&y);    pgtk2_pop_n_elems(args);    gti=g_malloc(sizeof(GtkTextIter));    if (gti==NULL)    SIMPLE_OUT_OF_MEMORY_ERROR("get_line_at_y",sizeof(GtkTextIter));    gtk_text_view_get_line_at_y(GTK_TEXT_VIEW(THIS->obj),    gti,y,NULL);    push_pgdk2object(gti,pgtk2_text_iter_program,1);    }   }      mapping get_line_yrange(GTK2.TextIter iter)   //! Gets the y coordinate of the top of the line containing iter, and the   //! height of the line. The coordinate is a buffer coordinate; convert to   //! window coordinates with buffer_to_window_coords().   {    pgtk2_verify_inited();    {    gint y,height;    struct object *o1; -  get_all_args("get_line_yrange",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    gtk_text_view_get_line_yrange(GTK_TEXT_VIEW(THIS->obj),    (GtkTextIter *)get_pg2object(o1,pgtk2_text_iter_program),&y,&height);    pgtk2_pop_n_elems(args);    ref_push_string(_STR("y")); push_int(y);    ref_push_string(_STR("height")); push_int(height);    f_aggregate_mapping(4);    }   }      +GTK2.TextIter get_iter_at_location(int x, int y)   //! Retrieves the iterator at buffer coordinates x and y. Buffer coordinates   //! are coordinates for the entire buffer, not just the currently-displayed   //! portions. If you have coordinates from an event, you have to convert   //! those to buffer coordinates with window_to_buffer_coords().   {    pgtk2_verify_inited();    {    INT_TYPE x,y;    GtkTextIter *iter; -  get_all_args("get_iter_at_location",args,"%i%i",&x,&y); +  get_all_args(NULL,args,"%i%i",&x,&y);    pgtk2_pop_n_elems(args);    iter=g_malloc(sizeof(GtkTextIter));    if (iter==NULL)    SIMPLE_OUT_OF_MEMORY_ERROR("get_iter_at_location",sizeof(GtkTextIter));    gtk_text_view_get_iter_at_location(GTK_TEXT_VIEW(THIS->obj),    iter,x,y);    push_gobjectclass(iter,pgtk2_text_iter_program);    }   }      require gtk26;   +GTK2.TextIter get_iter_at_position(int x, int y)   //! Retrieves the iterator pointing to the character at buffer coordinates   //! x and y.   {    pgtk2_verify_inited();    {    GtkTextIter *iter;    INT_TYPE x,y;    gint trailing; -  get_all_args("get_iter_at_position",args,"%i%i",&x,&y); +  get_all_args(NULL,args,"%i%i",&x,&y);    pgtk2_pop_n_elems(args);    iter=g_malloc(sizeof(GtkTextIter));    if (iter==NULL)    SIMPLE_OUT_OF_MEMORY_ERROR("get_iter_at_position",sizeof(GtkTextIter));    gtk_text_view_get_iter_at_position(GTK_TEXT_VIEW(THIS->obj),    iter,&trailing,x,y);    push_pgdk2object(iter,pgtk2_text_iter_program,1);   // push_gobjectclass(iter,pgtk2_text_iter_program);    }   }   endrequire;      array buffer_to_window_coords(int wintype, int buffer_x, int buffer_y)   //! Converts coordinate (buffer_x,buffer_y) to coordinates for the window   //! win, and returns the results. wintype is one of CONST(GTK_TEXT_WINDOW_).   {    pgtk2_verify_inited();    {    gint win_x,win_y;    INT_TYPE buffer_x,buffer_y,wintype; -  get_all_args("buffer_to_window_coords",args,"%i%i%i",&wintype, +  get_all_args(NULL,args,"%i%i%i",&wintype,    &buffer_x,&buffer_y);    pgtk2_pop_n_elems(args);    gtk_text_view_buffer_to_window_coords(GTK_TEXT_VIEW(THIS->obj),    wintype,buffer_x,buffer_y,&win_x,&win_y);    push_int(win_x);    push_int(win_y);    f_aggregate(2);    }   }      array window_to_buffer_coords(int wintype, int window_x, int window_y)   //! Converts coordinates on the window identified by wintype to buffer   //! coordinates, returning the result.   {    pgtk2_verify_inited();    {    INT_TYPE wintype,win_x,win_y;    gint buffer_x,buffer_y; -  get_all_args("window_to_buffer_coords",args,"%i%i%i",&wintype, +  get_all_args(NULL,args,"%i%i%i",&wintype,    &win_x,&win_y);    pgtk2_pop_n_elems(args);    gtk_text_view_window_to_buffer_coords(GTK_TEXT_VIEW(THIS->obj),    wintype,win_x,win_y,&buffer_x,&buffer_y);    push_int(buffer_x);    push_int(buffer_y);    f_aggregate(2);    }   }   
pike.git/src/post_modules/GTK2/source/gtktextview.pre:295:   //! other paragraph separator characters. Display lines are created by   //! line-wrapping a paragraph. If wrapping is turned off, display lines and   //! paragraphs will be the same. Display lines are divided differently for   //! each view, since they depend on the view's width; paragraphs are the same   //! in all view, since they depend on the contents of the W(TextBuffer).   {    pgtk2_verify_inited();    {    struct object *o1;    int res; -  get_all_args("forward_display_line",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    res=gtk_text_view_forward_display_line(GTK_TEXT_VIEW(THIS->obj),    (GtkTextIter *)get_pg2object(o1,pgtk2_text_iter_program));    pgtk2_pop_n_elems(args);    push_int(res);    }   }      int backward_display_line(GTK2.TextIter iter)   //! See forward_display_line().   {    pgtk2_verify_inited();    {    struct object *o1;    int res; -  get_all_args("backward_display_line",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    res=gtk_text_view_backward_display_line(GTK_TEXT_VIEW(THIS->obj),    (GtkTextIter *)get_pg2object(o1,pgtk2_text_iter_program));    pgtk2_pop_n_elems(args);    push_int(res);    }   }      int forward_display_line_end(GTK2.TextIter iter)   //! Moves the iter forward to the next display line end.   {    pgtk2_verify_inited();    {    struct object *o1;    int res; -  get_all_args("forward_display_line_end",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    res=gtk_text_view_forward_display_line_end(GTK_TEXT_VIEW(THIS->obj),    (GtkTextIter *)get_pg2object(o1,pgtk2_text_iter_program));    pgtk2_pop_n_elems(args);    push_int(res);    }   }      int backward_display_line_start(GTK2.TextIter iter)   //! Moves the iter backward to the next display line start.   {    pgtk2_verify_inited();    {    struct object *o1;    int res; -  get_all_args("backward_display_line_start",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    res=gtk_text_view_backward_display_line_start(GTK_TEXT_VIEW(THIS->obj),    (GtkTextIter *)get_pg2object(o1,pgtk2_text_iter_program));    pgtk2_pop_n_elems(args);    push_int(res);    }   }      int starts_display_line(GTK2.TextIter iter)   //! Determines whether iter is at the start of a display line.   {    pgtk2_verify_inited();    {    struct object *o1;    int res; -  get_all_args("starts_display_line",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    res=gtk_text_view_starts_display_line(GTK_TEXT_VIEW(THIS->obj),    (GtkTextIter *)get_pg2object(o1,pgtk2_text_iter_program));    pgtk2_pop_n_elems(args);    push_int(res);    }   }      int move_visually(GTK2.TextIter iter, int count)   //! Move the iterator a given number of characters visually, treating it as   //! the strong cursor position. If count is positive, then the new strong
pike.git/src/post_modules/GTK2/source/gtktextview.pre:379:   //! <p>   //! In the presence of bidirection text, the correspondence between logical   //! and visual order will depend on the direction of the current run, and   //! there may be jumps when the cursor is moved off the end of a run.   {    pgtk2_verify_inited();    {    struct object *o1;    INT_TYPE count;    int res; -  get_all_args("move_visually",args,"%o%i",&o1,&count); +  get_all_args(NULL,args,"%o%i",&o1,&count);    res=gtk_text_view_move_visually(GTK_TEXT_VIEW(THIS->obj),    (GtkTextIter *)get_pg2object(o1,pgtk2_text_iter_program),count);    pgtk2_pop_n_elems(args);    push_int(res);    }   }      void add_child_at_anchor(GTK2.Widget child, GTK2.TextChildAnchor anchor);   //! Adds a child widget in the text buffer, at the given anchor.   
pike.git/src/post_modules/GTK2/source/gtktextview.pre:491:   //! Gets the default indentation for paragraphs.      require pango;   void set_tabs(Pango.TabArray tabs)   //! Sets the default tab stops for paragraphs. Tags in the buffer may   //! override the default.   {    pgtk2_verify_inited();    {    struct object *o1; -  get_all_args("set_tabs",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    gtk_text_view_set_tabs(GTK_TEXT_VIEW(THIS->obj),    (PangoTabArray *)get_gobject(o1));    }    RETURN_THIS();   }      +Pango.TabArray get_tabs()   //! Gets the default tabs. Tags in the buffer may override the defaults.   //! The return value will be 0 if "standard" (8-space) tabs are used.   {