GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Pango
  • get_extents
  • get_height
  • get_length
  • get_pixel_extents
  • get_resolved_direction
  • get_start_index
  • get_x_ranges
  • index_to_x
  • is_paragraph_start
  • ref
  • unref
  • x_to_index
  • gi-docgen

This view

  • Original page
  • New address

GeezerVison is showing docs.gtk.org — Pango.LayoutLine

Description [src]

struct PangoLayoutLine {
  PangoLayout* layout;
  gint start_index;
  gint length;
  PangoLayoutRun* runs;
  guint is_paragraph_start : 1;
  guint resolved_dir : 3;
}

A PangoLayoutLine represents one of the lines resulting from laying out a paragraph via PangoLayout.

PangoLayoutLine structures are obtained by calling pango_layout_get_line() and are only valid until the text, attributes, or settings of the parent PangoLayout are modified.

Structure members
layout: PangoLayout

The layout this line belongs to, might be NULL.

start_index: gint

Start of line as byte index into layout->text.

length: gint

Length of line in bytes.

runs: PangoLayoutRun

List of runs in the line, from left to right.

is_paragraph_start: guint

TRUE if this is the first line of the paragraph.

resolved_dir: guint

Resolved PangoDirection of line.

Instance methods

pango_layout_line_get_extents

Computes the logical and ink extents of a layout line.

pango_layout_line_get_height

Computes the height of the line, as the maximum of the heights of fonts used in this line.

since: 1.44

pango_layout_line_get_length

Returns the length of the line, in bytes.

since: 1.50

pango_layout_line_get_pixel_extents

Computes the logical and ink extents of layout_line in device units.

pango_layout_line_get_resolved_direction

Returns the resolved direction of the line.

since: 1.50

pango_layout_line_get_start_index

Returns the start index of the line, as byte index into the text of the layout.

since: 1.50

pango_layout_line_get_x_ranges

Gets a list of visual ranges corresponding to a given logical range.

pango_layout_line_index_to_x

Converts an index within a line to a X position.

pango_layout_line_is_paragraph_start

Returns whether this is the first line of the paragraph.

since: 1.50

pango_layout_line_ref

Increase the reference count of a PangoLayoutLine by one.

since: 1.10

pango_layout_line_unref

Decrease the reference count of a PangoLayoutLine by one.

pango_layout_line_x_to_index

Converts from x offset to the byte index of the corresponding character within the text of the layout.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.