GtkSource.GutterRendererText
Properties
| Name | Type | Flags | Short Description | 
|---|
| markup | str | r/w/c | The markup | 
| text | str | r/w/c | The text | 
 
Class Details
- 
class GtkSource.GutterRendererText(**kwargs)
- 
- 
classmethod new()
- 
Create a new GtkSource.GutterRendererText.
 
 
- 
measure(text)
- 
| Parameters: | text ( str) – the text to measure. | 
|---|
 | Returns: | 
| width: | location to store the width of the text in pixels,
or None. | 
|---|
 | height: | location to store the height of the text in
pixels, or None. | 
|---|
 | 
|---|
 | Return type: | (width: int, height:int) | 
|---|
 
 - Measures the text provided using the pango layout used by the
- GtkSource.GutterRendererText.
 
 
- 
measure_markup(markup)
- 
| Parameters: | markup ( str) – the pango markup to measure. | 
|---|
 | Returns: | 
| width: | location to store the width of the text in pixels,
or None. | 
|---|
 | height: | location to store the height of the text in
pixels, or None. | 
|---|
 | 
|---|
 | Return type: | (width: int, height:int) | 
|---|
 
 - Measures the pango markup provided using the pango layout used by the
- GtkSource.GutterRendererText.
 
 
- 
set_markup(markup, length)
- 
 
- 
set_text(text, length)
- 
 
 
Property Details
- 
GtkSource.GutterRendererText.props.markup
- 
The markup 
- 
GtkSource.GutterRendererText.props.text
- 
The text