eric6/Documentation/Source/eric6.Graphics.ClassItem.html

changeset 7530
9f4fac61e7c7
parent 7273
391d6b7b1eff
child 7989
a21d673a8f99
equal deleted inserted replaced
7529:2b8a0d8ba12a 7530:9f4fac61e7c7
111 <tr><td>None</td></tr> 111 <tr><td>None</td></tr>
112 </table> 112 </table>
113 113
114 <a NAME="ClassItem.__init__" ID="ClassItem.__init__"></a> 114 <a NAME="ClassItem.__init__" ID="ClassItem.__init__"></a>
115 <h4>ClassItem (Constructor)</h4> 115 <h4>ClassItem (Constructor)</h4>
116 <b>ClassItem</b>(<i>model=None, external=False, x=0, y=0, rounded=False, noAttrs=False, parent=None, scene=None</i>) 116 <b>ClassItem</b>(<i>model=None, external=False, x=0, y=0, rounded=False, noAttrs=False, colors=None, parent=None, scene=None</i>)
117 117
118 <p> 118 <p>
119 Constructor 119 Constructor
120 </p> 120 </p>
121 <dl> 121 <dl>
122 122
123 <dt><i>model</i></dt> 123 <dt><i>model</i> (ClassModel)</dt>
124 <dd> 124 <dd>
125 class model containing the class data (ClassModel) 125 class model containing the class data
126 </dd> 126 </dd>
127 <dt><i>external</i></dt> 127 <dt><i>external</i> (boolean)</dt>
128 <dd> 128 <dd>
129 flag indicating a class defined outside our scope 129 flag indicating a class defined outside our scope
130 (boolean) 130 </dd>
131 </dd> 131 <dt><i>x</i> (int)</dt>
132 <dt><i>x</i></dt> 132 <dd>
133 <dd> 133 x-coordinate
134 x-coordinate (integer) 134 </dd>
135 </dd> 135 <dt><i>y</i> (int)</dt>
136 <dt><i>y</i></dt> 136 <dd>
137 <dd> 137 y-coordinate
138 y-coordinate (integer) 138 </dd>
139 </dd> 139 <dt><i>rounded</i> (bool)</dt>
140 <dt><i>rounded=</i></dt> 140 <dd>
141 <dd> 141 flag indicating a rounded corner
142 flag indicating a rounded corner (boolean) 142 </dd>
143 </dd> 143 <dt><i>noAttrs</i> (bool)</dt>
144 <dt><i>noAttrs=</i></dt>
145 <dd> 144 <dd>
146 flag indicating, that no attributes should be shown 145 flag indicating, that no attributes should be shown
147 (boolean) 146 </dd>
148 </dd> 147 <dt><i>colors</i> (tuple of (QColor, QColor))</dt>
149 <dt><i>parent=</i></dt> 148 <dd>
150 <dd> 149 tuple containing the foreground and background colors
151 reference to the parent object (QGraphicsItem) 150 </dd>
152 </dd> 151 <dt><i>parent</i> (QGraphicsItem)</dt>
153 <dt><i>scene=</i></dt> 152 <dd>
154 <dd> 153 reference to the parent object
155 reference to the scene object (QGraphicsScene) 154 </dd>
155 <dt><i>scene</i> (QGraphicsScene)</dt>
156 <dd>
157 reference to the scene object
156 </dd> 158 </dd>
157 </dl> 159 </dl>
158 <a NAME="ClassItem.__calculateSize" ID="ClassItem.__calculateSize"></a> 160 <a NAME="ClassItem.__calculateSize" ID="ClassItem.__calculateSize"></a>
159 <h4>ClassItem.__calculateSize</h4> 161 <h4>ClassItem.__calculateSize</h4>
160 <b>__calculateSize</b>(<i></i>) 162 <b>__calculateSize</b>(<i></i>)

eric ide

mercurial