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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtklabel.pre:106:      void set_max_width_chars(int n_chars);   //! Sets the desired maximum width in characters to n_chars.   endrequire;      void set_line_wrap(int wrap);   //! Toggles line wrapping within the widget. True makes it break lines if   //! text exceeds the widget's size. False lets the text get cut off by the   //! edge of the widget if it exceeds the widget size.    +    require pango; -  + require gtk210; + void set_line_wrap_mode(int wrap_mode); + //! If line wrapping is on, this controls how the line wrapping is done. The + //! Default is Pango.WRAP_WORD, which means wrap on word boundaries. + endrequire; +    mapping(string:int) get_layout_offsets()   //! Obtains the coordinates where the label will draw the Pango.Layout   //! representing the text in the label; useful to convert mouse events into   //! coordinates inside the Pango.Layout, e.g. to take some action if some part   //! of the label is clicked. Of course, you will need to create a GTK2.EventBox   //! to receive the events, and pack the label inside it, since labels are a   //! GTK2.NO_WINDOW widget. Remember when using the Pango.Layout functions you   //! need to convert to and from pixels using GTK2.PANGO_SCALE.   {    pgtk2_verify_inited();
pike.git/src/post_modules/GTK2/source/gtklabel.pre:191:      int get_max_width_chars();   //! Retrieves the desired maximum width, in characters.   endrequire;      string get_label();   //! Fetches the text from a label widget including any underlines indicating   //! mnemonics and Pango markup.      require pango; - Pango.Layout get_layout(); + +Pango.Layout get_layout();   //! Gets the Pango.Layout used to display the label. The layout is useful to   //! e.g. convert text positions to pixel positions, in combination with   //! get_layout_offsets().   endrequire;      int get_line_wrap();   //! Returns whether lines in the label are automatically wrapped.    - GTK2.Widget get_mnemonic_widget(); + require gtk210; + require pango; + int get_line_wrap_mode(); + //! Returns line wrap mode used by the label. + endrequire; + endrequire; +  + +GTK2.Widget get_mnemonic_widget();   //! Retrieves the target of the mnemonic (keyboard shortcut).      mapping(string:int) get_selection_bounds()   //! Gets the selected range of characters in the label. If there isn't a   //! selection, returns -1 for both start and end.   {    pgtk2_verify_inited();    {    gint start,end;    int res=gtk_label_get_selection_bounds(GTK_LABEL(THIS->obj),&start,&end);