gnu.x11.extension.render
Class Render

java.lang.Object
  extended by gnu.x11.extension.Extension
      extended by gnu.x11.extension.render.Render
All Implemented Interfaces:
ErrorFactory

public class Render
extends Extension
implements ErrorFactory

X Rendering Extension.

This extension is still under active development. Please check its homepage. The implemented version is XRender 0.0.14.


Field Summary
static int ADD
           
static int ATOP
           
static int ATOP_REVERSE
           
static int BAD_GLYPH
           
static int BAD_GLYPH_SET
           
static int BAD_PICTURE
           
static int BAD_PICTURE_FORMAt
           
static int BAD_PICTURE_OPERATIOR
           
static int CLEAR
           
static int CLIENT_MAJOR_VERSION
           
static int CLIENT_MINOR_VERSION
           
static int DST
           
static java.lang.String[] ERROR_STRINGS
           
static int IN
           
static int IN_REVERSE
           
static int MAXIMUM
           
static java.lang.String[] MINOR_OPCODE_STRINGS
           
static int OUT
           
static int OUT_REVERSE
           
static int OVER
           
static int OVER_REVERSE
           
static int SATURATE
           
 int server_major_version
           
 int server_minor_version
           
static int SRC
           
static int XOR
           
 
Fields inherited from class gnu.x11.extension.Extension
display, first_error, first_event, major_opcode, name
 
Constructor Summary
Render(Display display)
           
 
Method Summary
 Error build(Display display, int code, int seq_no, int bad, int minor_opcode, int major_opcode)
           
 void composite_glyphs(int op, Picture src, Picture dst, PictFormat mask_format, GlyphSet glyphset, int src_x, int src_y, int dst_x, int dst_y, Glyph[] glyphs)
           
 void composite(int op, Picture src, Picture mask, Picture dst, int src_x, int src_y, int mask_x, int mask_y, int dst_x, int dst_y, int width, int height)
           
 DrawablePicture create_picture(Drawable drawable, PictFormat format, DrawablePicture.Attributes attr)
           
 Picture create_solid_fill(int red, int green, int blue, int alpha)
          Creates a Picture instance for a solid fill operation with the specified color.
 void dithers(Drawable drawable)
           
 java.lang.String more_string()
          Additional information such as client version and server version to display in toString().
 PictFormat picture_format(PictFormat.Template template, boolean must)
           
 PictFormat[] picture_formats()
           
 void picture_index_values()
           
 
Methods inherited from class gnu.x11.extension.Extension
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MINOR_OPCODE_STRINGS

public static final java.lang.String[] MINOR_OPCODE_STRINGS

CLIENT_MAJOR_VERSION

public static final int CLIENT_MAJOR_VERSION
See Also:
Constant Field Values

CLIENT_MINOR_VERSION

public static final int CLIENT_MINOR_VERSION
See Also:
Constant Field Values

server_major_version

public int server_major_version

server_minor_version

public int server_minor_version

CLEAR

public static final int CLEAR
See Also:
Constant Field Values

SRC

public static final int SRC
See Also:
Constant Field Values

DST

public static final int DST
See Also:
Constant Field Values

OVER

public static final int OVER
See Also:
Constant Field Values

OVER_REVERSE

public static final int OVER_REVERSE
See Also:
Constant Field Values

IN

public static final int IN
See Also:
Constant Field Values

IN_REVERSE

public static final int IN_REVERSE
See Also:
Constant Field Values

OUT

public static final int OUT
See Also:
Constant Field Values

OUT_REVERSE

public static final int OUT_REVERSE
See Also:
Constant Field Values

ATOP

public static final int ATOP
See Also:
Constant Field Values

ATOP_REVERSE

public static final int ATOP_REVERSE
See Also:
Constant Field Values

XOR

public static final int XOR
See Also:
Constant Field Values

ADD

public static final int ADD
See Also:
Constant Field Values

SATURATE

public static final int SATURATE
See Also:
Constant Field Values

MAXIMUM

public static final int MAXIMUM
See Also:
Constant Field Values

BAD_PICTURE_FORMAt

public static final int BAD_PICTURE_FORMAt
See Also:
Constant Field Values

BAD_PICTURE

public static final int BAD_PICTURE
See Also:
Constant Field Values

BAD_PICTURE_OPERATIOR

public static final int BAD_PICTURE_OPERATIOR
See Also:
Constant Field Values

BAD_GLYPH_SET

public static final int BAD_GLYPH_SET
See Also:
Constant Field Values

BAD_GLYPH

public static final int BAD_GLYPH
See Also:
Constant Field Values

ERROR_STRINGS

public static final java.lang.String[] ERROR_STRINGS
Constructor Detail

Render

public Render(Display display)
       throws NotFoundException
Throws:
NotFoundException
Method Detail

picture_formats

public PictFormat[] picture_formats()

picture_index_values

public void picture_index_values()

dithers

public void dithers(Drawable drawable)

composite

public void composite(int op,
                      Picture src,
                      Picture mask,
                      Picture dst,
                      int src_x,
                      int src_y,
                      int mask_x,
                      int mask_y,
                      int dst_x,
                      int dst_y,
                      int width,
                      int height)
Parameters:
operation - CLEAR SRC DST OVER OVER_REVERSE IN IN_REVERSE OUT OUT_REVERSE ATOP ATOP_REVERSE XOR ADD SATURATE MAXIMUM
See Also:
XRenderComposite

composite_glyphs

public void composite_glyphs(int op,
                             Picture src,
                             Picture dst,
                             PictFormat mask_format,
                             GlyphSet glyphset,
                             int src_x,
                             int src_y,
                             int dst_x,
                             int dst_y,
                             Glyph[] glyphs)

build

public Error build(Display display,
                   int code,
                   int seq_no,
                   int bad,
                   int minor_opcode,
                   int major_opcode)
Specified by:
build in interface ErrorFactory

create_picture

public DrawablePicture create_picture(Drawable drawable,
                                      PictFormat format,
                                      DrawablePicture.Attributes attr)
See Also:
DrawablePicture#Picture(Render, Drawable, DrawablePicture.Format, DrawablePicture.Attributes)

create_solid_fill

public Picture create_solid_fill(int red,
                                 int green,
                                 int blue,
                                 int alpha)
Creates a Picture instance for a solid fill operation with the specified color. Only the least significant 16 bit of the values are used.

Parameters:
red - the red component
green - the green component
blue - the blue component
alpha - the alpha component
Returns:
a solid fill

picture_format

public PictFormat picture_format(PictFormat.Template template,
                                 boolean must)
See Also:
XRenderFindFormat

more_string

public java.lang.String more_string()
Description copied from class: Extension
Additional information such as client version and server version to display in toString().

Overrides:
more_string in class Extension