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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkentry.pre:13:   //! int editable   //! int has-frame   //! int invisible-char   //! int max-length   //! int scroll-offset   //! int selection-bound   //! string text   //! int visibility   //! int width-chars   //! float xalign + //! <p> + //! Style properties:      signal activate;   signal backspace;   signal copy_clipboard;   signal cut_clipboard;   signal delete_from_cursor;   signal insert_at_cursor;   signal move_cursor;   signal paste_clipboard;   signal populate_popup;
pike.git/src/post_modules/GTK2/source/gtkentry.pre:78:   //! Sets the maximum allowed length of the contents. If the current contents   //! are longer than the given length, then they will be truncated to fit.   //! Range is 0-65536. 0 means no maximum.      int get_activates_default();   //! Retrieves the value set by set_activates_default().      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; +  +  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; +    int get_width_chars();   //! Gets the value set by set_width_chars().      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) + //! 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; +  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]); +  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   //! is -1, the size reverts to the default entry size.      int get_invisible_char();   //! Retrieves the character displayed in place of the real characters for   //! entries with visibility set to false.   
pike.git/src/post_modules/GTK2/source/gtkentry.pre:111:   void set_alignment(float align);   //! Sets the alignment for the ocntents of the entry. This controls the   //! horizontal positioning of the contents when the displayed text is shorter   //! than the width of the entry.      float get_alignment();   //! Gets the value set by set_alignment().   endrequire;      require pango; - Pango.Layout get_layout(); + +Pango.Layout get_layout();   //! Gets the Pango.Layout used to display the entry. The layout is useful to   //! e.g. convert text positions to pixel positions, in combination with   //! get_layout_offsets().   //! <p>   //! Keep in mind that the layout text may contain a preedit string, so   //! layout_index_to_text_index() and text_index_to_layout_index() are needed   //! to convert byte indices in the layout to byte indices in the entry   //! contents.      mapping get_layout_offsets()
pike.git/src/post_modules/GTK2/source/gtkentry.pre:169:      int get_visibility();   //! Retrieves whether the text is visible.      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(); + +GTK2.EntryCompletion get_completion();   //! Returns the completion object.   endrequire;