NAME
XmuReshapeWidget − change the shape of a widget’s Window.
SYNOPSIS
#include <X11/Xmu/Converters.h>
Boolean XmuReshapeWidget(w, shape_style, corner_width, corner_height)
Widget w;
int shape_style;
int corner_width, corner_height;
Inputs
wSpecifies the widget to reshape.
shape_styleSpecifies the new shape. See Description for allowable values.
corner_widthSpecifies the width of the rounded corner for a shape_style of
XmuShapeRoundedRectangle.
corner_height
Specifies the height of the rounded corner for a shape_style of
XmuShapeRoundedRectangle.
Returns
False if shape_style is invalid; True otherwise.
AVAILABILITY
Release 4 and later. This function will only work on servers that support the Shape extension.
DESCRIPTION
XmuReshapeWidget() uses the Shape extension to the X protocol to change the shape of the specified widget’s window. The shape is specified by the shape_style parameter which can have one of the following arguments: XmuShapeRectangle, XmuShapeOval, XmuShapeEllipse, or XmuShapeRoundedRectangle. If the shape is XmuShapeRoundedRectangle, the corner_width and corner_height parameters specify the bounding box of the rounded part of the corner. These arguments are ignored for any other shape styles. Note that this function does not change the nominal width and height of the widget’s window, nor the widget’s position within its parent.
XmuReshapeWidget() returns False if it is passed an unsupported value as the shape_style argument; otherwise it returns True.