gnu.x11.extension.render
Class PictFormat.Template
java.lang.Object
gnu.x11.extension.render.PictFormat.Template
- Enclosing class:
- PictFormat
public static class PictFormat.Template
- extends java.lang.Object
A template for selecting PictFormat instances in
Render.picture_format(gnu.x11.extension.render.PictFormat.Template, boolean)
.
Constructor Summary |
PictFormat.Template()
Creates a template with no fields set. |
PictFormat.Template(PictFormat.Type type,
int depth,
int red_shift,
int red_mask,
int green_shift,
int green_mask,
int blue_shift,
int blue_mask,
int alpha_shift,
int alpha_mask)
Creates a new template for format selection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PictFormat.Template
public PictFormat.Template()
- Creates a template with no fields set.
PictFormat.Template
public PictFormat.Template(PictFormat.Type type,
int depth,
int red_shift,
int red_mask,
int green_shift,
int green_mask,
int blue_shift,
int blue_mask,
int alpha_shift,
int alpha_mask)
- Creates a new template for format selection. The shift and mask
arguments only need to be specified for direct formats (otherwise,
leave them 0). Of the shifts and masks arguments, only the least 16
significant bits are used.
- Parameters:
type
- the format typedepth
- the depth in bits / pixelred_shift
- the shift for the red componentred_mask
- the mask for the red componentgreen_shift
- the shift for the green componentgreen_mask
- the mask for the green componentblue_shift
- the shift for the blue componentblue_mask
- the mask for the blue componentalpha_shift
- the shift for the alpha componentalpha_mask
- the mask for the alpha component
set_depth
public void set_depth(int depth)
set_type
public void set_type(PictFormat.Type type)
set_direct
public void set_direct(int red_shift,
int red_mask,
int green_shift,
int green_mask,
int blue_shift,
int blue_mask,
int alpha_shift,
int alpha_mask)
clear
public void clear()