GooCanvas.CanvasRectModel¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
The height of the rectangle  | 
||
r/w  | 
The horizontal radius to use for rounded corners  | 
||
r/w  | 
The vertical radius to use for rounded corners  | 
||
r/w  | 
The width of the rectangle  | 
||
r/w  | 
The x coordinate of the rectangle  | 
||
r/w  | 
The y coordinate of the rectangle  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent_object  | 
r  | 
||
rect_data  | 
r  | 
Class Details¶
- class GooCanvas.CanvasRectModel(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
GooCanvas.CanvasRectModelrepresents a model for rectangle items.It is a subclass of
GooCanvas.CanvasItemModelSimpleand so inherits all of the style properties such as “stroke-color”, “fill-color” and “line-width”.It also implements the
GooCanvas.CanvasItemModelinterface, so you can use theGooCanvas.CanvasItemModelfunctions such asGooCanvas.CanvasItemModel.raise_() andGooCanvas.CanvasItemModel.rotate().To create a
GooCanvas.CanvasRectModeluse goo_canvas_rect_model_new().To get or set the properties of an existing
GooCanvas.CanvasRectModel, use g_object_get() and g_object_set().To respond to events such as mouse clicks on the rectangle you must connect to the signal handlers of the corresponding
GooCanvas.CanvasRectobjects. (SeeGooCanvas.Canvas.get_item() andGooCanvas.Canvas::item-created.)
Property Details¶
- GooCanvas.CanvasRectModel.props.height¶
 - 
The height of the rectangle
 
- GooCanvas.CanvasRectModel.props.radius_x¶
 - 
The horizontal radius to use for rounded corners
 
- GooCanvas.CanvasRectModel.props.radius_y¶
 - 
The vertical radius to use for rounded corners
 
- GooCanvas.CanvasRectModel.props.width¶
 - 
The width of the rectangle
 
- GooCanvas.CanvasRectModel.props.x¶
 - 
The x coordinate of the rectangle