Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. <function name="new"
  2. c:identifier="goo_canvas_rect_new"
  3. introspectable="0">
  4. <doc xml:space="preserve">Creates a new rectangle item.
  5.  
  6. <!--PARAMETERS-->
  7.  
  8. Here's an example showing how to create a rectangle at (100,100) with a
  9. width of 200 and a height of 100.
  10.  
  11. <informalexample><programlisting>
  12. GooCanvasItem *rect = goo_canvas_rect_new (mygroup, 100.0, 100.0, 200.0, 100.0,
  13. "stroke-color", "red",
  14. "line-width", 5.0,
  15. "fill-color", "blue",
  16. NULL);
  17. </programlisting></informalexample></doc>
  18. <return-value transfer-ownership="full">
  19. <doc xml:space="preserve">a new rectangle item.</doc>
  20. <type name="CanvasItem" c:type="GooCanvasItem*"/>
  21. </return-value>
  22. <parameters>
  23. <parameter name="parent" transfer-ownership="none" skip="1">
  24. <doc xml:space="preserve">the parent item, or %NULL. If a parent is specified, it will assume
  25. ownership of the item, and the item will automatically be freed when it is
  26. removed from the parent. Otherwise call g_object_unref() to free it.</doc>
  27. <type name="CanvasItem" c:type="GooCanvasItem*"/>
  28. </parameter>
  29. <parameter name="x" transfer-ownership="none">
  30. <doc xml:space="preserve">the x coordinate of the left of the rectangle.</doc>
  31. <type name="gdouble" c:type="gdouble"/>
  32. </parameter>
  33. <parameter name="y" transfer-ownership="none">
  34. <doc xml:space="preserve">the y coordinate of the top of the rectangle.</doc>
  35. <type name="gdouble" c:type="gdouble"/>
  36. </parameter>
  37. <parameter name="width" transfer-ownership="none">
  38. <doc xml:space="preserve">the width of the rectangle.</doc>
  39. <type name="gdouble" c:type="gdouble"/>
  40. </parameter>
  41. <parameter name="height" transfer-ownership="none">
  42. <doc xml:space="preserve">the height of the rectangle.</doc>
  43. <type name="gdouble" c:type="gdouble"/>
  44. </parameter>
  45. <parameter name="..." transfer-ownership="none">
  46. <doc xml:space="preserve">optional pairs of property names and values, and a terminating %NULL.</doc>
  47. <varargs/>
  48. </parameter>
  49. </parameters>
  50. </function>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement