| | 1 | = CFormAdvanceX **825gen2** = |
| | 2 | |
| | 3 | Class for specifying a X coordinate advance value for CFormRect |
| | 4 | |
| | 5 | == Constructors == |
| | 6 | |
| | 7 | {{{#!c++ |
| | 8 | CFormAdvanceX(void); |
| | 9 | }}} |
| | 10 | |
| | 11 | |
| | 12 | ==== Example ==== |
| | 13 | |
| | 14 | {{{#!c++ |
| | 15 | CFormAdvanceX advX; |
| | 16 | }}} |
| | 17 | |
| | 18 | == Member Functions == |
| | 19 | |
| | 20 | === !SetBasedOnFont === |
| | 21 | Sets advance amount based on a font height |
| | 22 | |
| | 23 | {{{#!c++ |
| | 24 | void SetBasedOnFontStrWidth(CFont& font, const char* str, double multiplier, int addPixels = 0); |
| | 25 | }}} |
| | 26 | |
| | 27 | ==== Parameters ==== |
| | 28 | * font - CFont reference |
| | 29 | * str - character array string |
| | 30 | * multiplier - multiplier value for height to set the advance amount |
| | 31 | |
| | 32 | ==== Return Value ==== |
| | 33 | |
| | 34 | Function does not return a value. |
| | 35 | |