| 160 | |
| 161 | === SetTopAndHeightSameAsOtherRect === |
| 162 | Sets top coordinate and height of the rectangle based on a another rectangle |
| 163 | |
| 164 | {{{#!c++ |
| 165 | void SetTopAndHeightSameAsOtherRect(CFormRect& r) |
| 166 | }}} |
| 167 | |
| 168 | ==== Parameters ==== |
| 169 | * r = CFormRectangle |
| 170 | |
| 171 | ==== Return Value ==== |
| 172 | |
| 173 | Function does not return a value. |
| 174 | |
| 175 | === SetAsRegionOfRect === |
| 176 | Sets coordinates of rectangle as a region of another rectangle |
| 177 | |
| 178 | {{{#!c++ |
| 179 | void SetAsRegionOfRect(CFormRect& r, double left, double top, double width, double height) |
| 180 | }}} |
| 181 | |
| 182 | ==== Parameters ==== |
| 183 | * r - CFormRect |
| 184 | * left - Value for left multiplication factor |
| 185 | * top - Value for top multiplication factor |
| 186 | * width - Value for width multiplication factor |
| 187 | * height - Value for height multiplication factor |
| 188 | |
| 189 | |
| 190 | ==== Return Value ==== |
| 191 | |
| 192 | Function does not return a value. |
| 193 | |
| 194 | === SetWidthBasedOnFontStrWidth === |
| 195 | Sets width of rectangle based on a font string |
| 196 | |
| 197 | {{{#!c++ |
| 198 | void SetWidthBasedOnFontStrWidth(CFont& font, const char* str, double widthMultiplier = 1.0) |
| 199 | |
| 200 | void SetWidthBasedOnFontStrWidth(CFont& font, std::string& str, double widthMultiplier = 1.0) |
| 201 | }}} |
| 202 | |
| 203 | ==== Parameters ==== |
| 204 | * font - CFont |
| 205 | * str - character array string |
| 206 | * str - std::string reference |
| 207 | * widthMultiplier - optional value |
| 208 | |
| 209 | |
| 210 | ==== Return Value ==== |
| 211 | |
| 212 | Function does not return a value. |