GooCanvas.CanvasTextModel¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
How to align the text  | 
||
r/w  | 
How to position the text relative to the given x and y coordinates  | 
||
r/w  | 
The preferred place to ellipsize the string, if the label does not have enough room to display the entire string  | 
||
r/w  | 
The height to use to layout the text, or -1 to let the text use as much vertical space as needed  | 
||
r/w  | 
The text to display  | 
||
r/w  | 
Whether to parse PangoMarkup in the text, to support different styles  | 
||
r/w  | 
The width to use to layout the text, or -1 to let the text use as much horizontal space as needed  | 
||
r/w  | 
The preferred method of wrapping the string if a width has been set  | 
||
r/w  | 
The x coordinate of the text  | 
||
r/w  | 
The y coordinate of the text  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent_object  | 
r  | 
||
text_data  | 
r  | 
Class Details¶
- class GooCanvas.CanvasTextModel(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
GooCanvas.CanvasTextModelrepresents a model for text items.It is a subclass of
GooCanvas.CanvasItemModelSimpleand so inherits all of the style properties such as “fill-color”.It also implements the
GooCanvas.CanvasItemModelinterface, so you can use theGooCanvas.CanvasItemModelfunctions such asGooCanvas.CanvasItemModel.raise_() andGooCanvas.CanvasItemModel.rotate().To create a
GooCanvas.CanvasTextModeluse goo_canvas_text_model_new().To get or set the properties of an existing
GooCanvas.CanvasTextModel, use g_object_get() and g_object_set().To respond to events such as mouse clicks on the text item you must connect to the signal handlers of the corresponding
GooCanvas.CanvasTextobjects. (SeeGooCanvas.Canvas.get_item() andGooCanvas.Canvas::item-created.)
Property Details¶
- GooCanvas.CanvasTextModel.props.alignment¶
 - Name:
 alignment- Type:
 - Default Value:
 - Flags:
 
How to align the text
- GooCanvas.CanvasTextModel.props.anchor¶
 - Name:
 anchor- Type:
 - Default Value:
 - Flags:
 
How to position the text relative to the given x and y coordinates
- GooCanvas.CanvasTextModel.props.ellipsize¶
 - Name:
 ellipsize- Type:
 - Default Value:
 - Flags:
 
The preferred place to ellipsize the string, if the label does not have enough room to display the entire string
- GooCanvas.CanvasTextModel.props.height¶
 - 
The height to use to layout the text, or -1 to let the text use as much vertical space as needed
 
- GooCanvas.CanvasTextModel.props.text¶
 - 
The text to display
 
- GooCanvas.CanvasTextModel.props.use_markup¶
 - 
Whether to parse PangoMarkup in the text, to support different styles
 
- GooCanvas.CanvasTextModel.props.width¶
 - 
The width to use to layout the text, or -1 to let the text use as much horizontal space as needed
 
- GooCanvas.CanvasTextModel.props.wrap¶
 - Name:
 wrap- Type:
 - Default Value:
 - Flags:
 
The preferred method of wrapping the string if a width has been set
- GooCanvas.CanvasTextModel.props.x¶
 - 
The x coordinate of the text