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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkentry.pre:5:   inherit GTK2.Editable;      //! Use this widget when you want the user to input a single line of text.   //! IMG: GTK2.Entry()->set_text("Hello world")->set_editable(1)      //! Properties:   //! int activates-default   //! int cursor-position   //! int editable   //! int has-frame + require gtk210; + //! int inner-border + endrequire;   //! int invisible-char   //! int max-length   //! int scroll-offset   //! int selection-bound -  + require gtk212; + //! int shadow-type + endrequire;   //! string text -  + require gtk210; + //! int truncate-multiline + endrequire;   //! int visibility   //! int width-chars   //! float xalign   //! <p>   //! Style properties:      signal activate;   signal backspace;   signal copy_clipboard;   signal cut_clipboard;
pike.git/src/post_modules/GTK2/source/gtkentry.pre:87:   int get_has_frame();   //! Gets the value set by set_has_frame().      require gtk210;   array get_inner_border()   //! This function returns the entry's inner-border property.   {    pgtk2_verify_inited();    pgtk2_pop_n_elems(args);    { -  GtkBorder *gb; +  const GtkBorder *gb;       gb=gtk_entry_get_inner_border(GTK_ENTRY(THIS->obj));    push_int(gb->left);    push_int(gb->right);    push_int(gb->top);    push_int(gb->bottom);    f_aggregate(4);    }   }   endrequire;
pike.git/src/post_modules/GTK2/source/gtkentry.pre:112:   void set_activates_default(int setting);   //! If setting is true, pressing Enter will activate the default widget for   //! the window containing the entry. This usually means that the dialog box   //! containing the entry will be closed, since the default widget is usually   //! one of the dialog buttons.      void set_has_frame(int setting);   //! Sets whether the entry has a beveled frame around it.      require gtk210; - void set_inner_border(array border) + void set_inner_border(int left, int right, int top, int bottom)   //! Sets the inner-border property to border, or clears it if 0 is passed.   //! The inner-border is the area around the entry's text, but inside its   //! frame.   //! <p>   //! If set, this property overrides the inner-border style property.   //! Overriding the style-provided border is useful when you want to do   //! in-place editing of some text in a canvas or list widget, where   //! pixel-exact positioning of the entry is important.   {    pgtk2_verify_inited();    { -  struct array *a; +  INT_TYPE l,r,t,b;    GtkBorder gb;    -  get_all_args("set_inner_border",args,"%A",&a); -  if (a==NULL || a->size!=4) -  Pike_error("Invalid array.\n"); -  gb.left=PGTK_GETINT(ITEM(a)[0]); -  gb.right=PGTK_GETINT(ITEM(a)[1]); -  gb.top=PGTK_GETINT(ITEM(a)[2]); -  gb.bottom=PGTK_GETINT(ITEM(a)[3]); +  get_all_args("set_inner_border",args,"%i%i%i%i",&l,&r,&t,&b); +  gb.left=l; +  gb.right=r; +  gb.top=t; +  gb.bottom=b;    gtk_entry_set_inner_border(GTK_ENTRY(THIS->obj),&gb);    }    RETURN_THIS();   }   endrequire;      void set_width_chars(int n_chars);   //! changes the size request of the entry to be about the right size for   //! n_chars characters. Note that it changes the size request, the size can   //! still be affected by how you pack the widget into containers. If n_chars
pike.git/src/post_modules/GTK2/source/gtkentry.pre:223:   require gtk24;   void set_completion(GTK2.EntryCompletion completion);   //! Sets completion to be the auxiliary completion object to use. All further   //! configuration of the completion mechanism is done on completion using   //! the GTK2.EntryCompletion API.      +GTK2.EntryCompletion get_completion();   //! Returns the completion object.   endrequire;    + require gtk212; + void set_cursor_hadjustment(GTK2.Adjustment adj); + //! Hooks up an adjustment to the cursor position in an entry, so that when + //! the cursor is moved, the adjustment is scrolled to show that position. +  + GTK2.Adjustment get_cursor_hadjustment(); + //! Retrieves the horizontal cursor adjustment + endrequire;