/*
 * Java-Gnome Bindings Library
 *
 * Copyright 1998-2004 the Java-Gnome Team, all rights reserved.
 *
 * The Java-Gnome bindings library is free software distributed under
 * the terms of the GNU Library General Public License version 2.
 */

package org.gnu.pango;
import org.gnu.glib.Boxed;

/**
 * The PangoLayoutLine structure represents one of the lines resulting from
 * laying out a paragraph via PangoLayout. PangoLayoutLine structures are
 * obtained by calling {@link Layout#getLine(int)} and are only valid until the
 * text, attributes, or settings of the parent PangoLayout are modified.
 *
 * <p>Routines for rendering PangoLayout objects are provided in code specific
 * to each rendering system.
 */
public class LayoutLine extends Boxed 
{

	protected LayoutLine(int handle){
		this.handle = handle;
	}
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    native static final protected void pango_layout_line_ref (int line);
    native static final protected void pango_layout_line_unref (int line);
    native static final protected boolean pango_layout_line_x_to_index (int line, int xPos, int [] 
        index, int [] trailing);
    native static final protected void pango_layout_line_index_to_x (int line, int index, boolean 
        trailing, int [] xPos);
    native static final protected void pango_layout_line_get_x_ranges (int line, int startIndex, 
        int endIndex, int [] ranges, int [] numRanges);
    native static final protected void pango_layout_line_get_extents (int line, int [] inkRect, int []
        logicalRect);
    native static final protected void pango_layout_line_get_pixel_extents (int line, int [] 
        inkRect, int [] logicalRect);
    /****************************************
     * END OF GENERATED CODE
     ****************************************/
}

