~ubuntu-branches/ubuntu/trusty/pangomm/trusty-proposed

« back to all changes in this revision

Viewing changes to pango/pangomm/layout.h

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2011-11-17 01:43:19 UTC
  • mfrom: (1.1.14) (13.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20111117014319-1vfhhec3cmndezo9
Tags: 2.28.4-1
* New upstream release.
* debian/watch:
  - Track .xz tarballs.
* Bump debhelper compatibility level to 8.
* debian/control.in:
  - Bump Standards-Version to 3.9.2. No further changes.
  - Set pkg-gnome-maintainers@lists.alioth.debian.org as Maintainer.
* Stop installing libtool .la files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#define _PANGOMM_LAYOUT_H
5
5
 
6
6
 
7
 
#include <glibmm.h>
 
7
#include <glibmm/ustring.h>
 
8
#include <sigc++/sigc++.h>
8
9
 
9
10
/* $Id: layout.hg,v 1.9 2006/06/08 20:39:39 murrayc Exp $ */
10
11
 
345
346
   * this value if the layout contains multiple paragraphs of text.
346
347
   * The default value of -1 means that first line of each paragraph is ellipsized.
347
348
   * This behvaior may be changed in the future to act per layout instead of per
348
 
   * paragraph.  File a bug against pango at  if your
 
349
   * paragraph.  File a bug against pango at http://bugzilla.gnome.org/ if your
349
350
   * code relies on this behavior.
350
351
   * 
351
352
   * Height setting only has effect if a positive width is set on
435
436
   * older than 1.18.
436
437
   * @param justify Whether the lines in the layout should be justified.
437
438
   */
438
 
  void set_justify(bool justify = true);
 
439
  void set_justify(bool justify =  true);
439
440
  
440
441
  /** Gets whether each complete line should be stretched to fill the entire
441
442
   * width of the layout.
475
476
   * @param auto_dir If <tt>true</tt>, compute the bidirectional base direction
476
477
   * from the layout's contents.
477
478
   */
478
 
  void set_auto_dir(bool auto_dir = true);
 
479
  void set_auto_dir(bool auto_dir =  true);
479
480
  
480
481
  
481
482
  /** Sets the alignment for the layout: how partial lines are
513
514
   * you want to allow editing of newlines on a single text line.
514
515
   * @param setting New setting.
515
516
   */
516
 
  void set_single_paragraph_mode(bool setting = true);
 
517
  void set_single_paragraph_mode(bool setting =  true);
517
518
  
518
519
  /** Obtains the value set by set_single_paragraph_mode().
519
520
   * @return <tt>true</tt> if the layout does not break paragraphs at
678
679
   * of the preceding line. @a new_index is always on the line
679
680
   * where the cursor should be displayed.
680
681
   */
681
 
  void move_cursor_visually(bool strong,
682
 
     int old_index, int old_trailing, int direction,
683
 
     int& new_index, int& new_trailing) const;
 
682
  void move_cursor_visually(bool strong, int old_index, int old_trailing, int direction, int& new_index, int& new_trailing) const;
684
683
 
685
684
  
686
685
  /** Converts from X and Y position within a layout to the byte