gnu.x11.extension
Class Shape
java.lang.Object
gnu.x11.extension.Extension
gnu.x11.extension.Shape
- All Implemented Interfaces:
- EventFactory
public class Shape
- extends Extension
- implements EventFactory
Nonrectangular Window Extension. The specification can be found here (protocol).
Method Summary |
Event |
build(Display display,
ResponseInputStream i,
int code)
|
void |
combine_mask(Window dest,
int dest_kind,
int x_offset,
int y_offset,
Pixmap src,
int operation)
|
void |
combine_rectangles(Window dest,
int dest_kind,
int x_offset,
int y_offset,
Rectangle[] rectangles,
int operation,
int ordering)
|
void |
combine_shape(Window dest,
int dest_kind,
int x_offset,
int y_offset,
Window src,
int src_kind,
int operation)
|
Shape.ExtentsInfo |
extents(Window dest)
|
boolean |
input_selected(Window dest)
|
java.lang.String |
more_string()
Additional information such as client version and server version to
display in toString() . |
void |
offset_shape(Window dest,
int dest_kind,
int x_offset,
int y_offset)
|
Shape.RectanglesInfo |
rectangles(Window window,
int kind)
|
void |
select_input(Window dest,
boolean enable)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
BOUNDING
public static final int BOUNDING
- See Also:
- Constant Field Values
CLIP
public static final int CLIP
- See Also:
- Constant Field Values
SET
public static final int SET
- See Also:
- Constant Field Values
UNION
public static final int UNION
- See Also:
- Constant Field Values
INTERSECT
public static final int INTERSECT
- See Also:
- Constant Field Values
SUBTRACT
public static final int SUBTRACT
- See Also:
- Constant Field Values
INVERT
public static final int INVERT
- See Also:
- Constant Field Values
UN_SORTED
public static final int UN_SORTED
- See Also:
- Constant Field Values
Y_SORTED
public static final int Y_SORTED
- See Also:
- Constant Field Values
YX_SORTED
public static final int YX_SORTED
- See Also:
- Constant Field Values
YX_BANDED
public static final int YX_BANDED
- See Also:
- Constant Field Values
Shape
public Shape(Display display)
throws NotFoundException
- Throws:
NotFoundException
- See Also:
- XShapeQueryExtension
combine_rectangles
public void combine_rectangles(Window dest,
int dest_kind,
int x_offset,
int y_offset,
Rectangle[] rectangles,
int operation,
int ordering)
- Parameters:
dest_kind
- valid:
BOUNDING
,
CLIP
operation
- valid:
SET
,
UNION
,
INTERSECT
,
SUBTRACT
,
INVERT
ordering
- valid:
UN_SORTED
,
Y_SORTED
,
YX_SORTED
,
YX_BANDED
- See Also:
- XShapeCombineRectangles
combine_mask
public void combine_mask(Window dest,
int dest_kind,
int x_offset,
int y_offset,
Pixmap src,
int operation)
- Parameters:
dest_kind
- valid:
BOUNDING
,
CLIP
operation
- valid:
SET
,
UNION
,
INTERSECT
,
SUBTRACT
,
INVERT
src
- possible: Pixmap.NONE
- See Also:
- XShapeCombineMask
combine_shape
public void combine_shape(Window dest,
int dest_kind,
int x_offset,
int y_offset,
Window src,
int src_kind,
int operation)
- Parameters:
dest_kind
- valid:
BOUNDING
,
CLIP
src_kind
- valid:
BOUNDING
,
CLIP
operation
- valid:
SET
,
UNION
,
INTERSECT
,
SUBTRACT
,
INVERT
- See Also:
- XShapeCombineShape
offset_shape
public void offset_shape(Window dest,
int dest_kind,
int x_offset,
int y_offset)
- See Also:
- XShapeOffsetShape
extents
public Shape.ExtentsInfo extents(Window dest)
- See Also:
- XShapeQueryExtents
select_input
public void select_input(Window dest,
boolean enable)
- See Also:
- XShapeSelectInput
input_selected
public boolean input_selected(Window dest)
- See Also:
- XShapeInputSelected
rectangles
public Shape.RectanglesInfo rectangles(Window window,
int kind)
- See Also:
- XShapeGetRectangles
build
public Event build(Display display,
ResponseInputStream i,
int code)
- Specified by:
build
in interface EventFactory
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