Creates a new text item.
Here's an example showing how to create a text item with the bottom right of the text box placed at (500,500):
<informalexample><programlisting> GooCanvasItem *text = goo_canvas_text_new (mygroup, "Hello World", 500.0, 500.0, 200.0, GOO_CANVAS_ANCHOR_SE, "fill-color", "blue", NULL); </programlisting></informalexample>
parent |
the parent item, or null. If a parent is specified, it will assume ownership of the item, and the item will automatically be freed when it is removed from the parent. Otherwise call unref to free it. |
string |
the text to display. |
x |
the x coordinate of the text. |
y |
the y coordinate of the text. |
width |
the width of the text item, or -1 for unlimited width. |
anchor |
the position of the text relative to the given |
... |
optional pairs of property names and values, and a terminating null. |
a new text item. |