| | 18 | == Member Functions == |
| | 19 | |
| | 20 | === SetX === |
| | 21 | Sets X coordinate |
| | 22 | |
| | 23 | {{{#!c++ |
| | 24 | void SetX(int x); |
| | 25 | }}} |
| | 26 | |
| | 27 | ==== Parameters ==== |
| | 28 | * x - X coordinate |
| | 29 | |
| | 30 | ==== Return Value ==== |
| | 31 | |
| | 32 | Function does not return a value. |
| | 33 | |
| | 34 | === SetY === |
| | 35 | Sets Y coordinate |
| | 36 | |
| | 37 | {{{#!c++ |
| | 38 | void SetY(int y); |
| | 39 | }}} |
| | 40 | |
| | 41 | ==== Parameters ==== |
| | 42 | * y - Y coordinate |
| | 43 | |
| | 44 | ==== Return Value ==== |
| | 45 | |
| | 46 | Function does not return a value. |
| | 47 | |
| | 48 | === SetWidth === |
| | 49 | Sets width of the rectangle |
| | 50 | |
| | 51 | {{{#!c++ |
| | 52 | void SetWidth(int width); |
| | 53 | }}} |
| | 54 | |
| | 55 | ==== Parameters ==== |
| | 56 | * width - width value |
| | 57 | |
| | 58 | ==== Return Value ==== |
| | 59 | |
| | 60 | Function does not return a value. |
| | 61 | |
| | 62 | === SetHeight === |
| | 63 | Sets width of the rectangle |
| | 64 | |
| | 65 | {{{#!c++ |
| | 66 | void SetHeight(int height); |
| | 67 | }}} |
| | 68 | |
| | 69 | ==== Parameters ==== |
| | 70 | * height - height value |
| | 71 | |
| | 72 | ==== Return Value ==== |
| | 73 | |
| | 74 | Function does not return a value. |
| | 75 | |
| | 76 | === AddToWidth === |
| | 77 | Adds specified number of pixels to width of the rectangle |
| | 78 | |
| | 79 | {{{#!c++ |
| | 80 | void AddToWidth(int addToWidth); |
| | 81 | }}} |
| | 82 | |
| | 83 | ==== Parameters ==== |
| | 84 | * addToWidth - number of pixels to add |
| | 85 | |
| | 86 | ==== Return Value ==== |
| | 87 | |
| | 88 | Function does not return a value. |
| | 89 | |
| | 90 | === operator += === |
| | 91 | Updates a rect position based on a CFormAdvanceX or CFormAdvanceY |
| | 92 | |
| | 93 | {{{#!c++ |
| | 94 | CFormRect& opeator+=(const CFormAdvanceY& advY); |
| | 95 | |
| | 96 | CFormRect& opeator+=(const CFormAdvanceX& advX); |
| | 97 | |
| | 98 | CFormRect& opeator+=(const CFormRect& advRect); |
| | 99 | |
| | 100 | }}} |
| | 101 | |
| | 102 | ==== Parameters ==== |
| | 103 | * advY - CFormAdvanceY value |
| | 104 | * advX - CFormAdvanceX value |
| | 105 | * adv - CFormRect |
| | 106 | |
| | 107 | ==== Return Value ==== |
| | 108 | |
| | 109 | Function returns a reference to the CFormRect (this). |
| | 110 | |
| | 111 | |
| | 112 | |
| | 113 | === SetTopBasedOnFont === |
| | 114 | Sets top coordinate of the rectangle based on a font |
| | 115 | |
| | 116 | {{{#!c++ |
| | 117 | void SetTopBasedOnFont(CFont& font, double multiplier, int addPixels = 0) |
| | 118 | }}} |
| | 119 | |
| | 120 | ==== Parameters ==== |
| | 121 | * font - CFont |
| | 122 | * multiplier - Value to multiplier times the height of the specified font to set the rectangle top |
| | 123 | * addPixels - value of additional pixels to add after the multiplication |
| | 124 | |
| | 125 | ==== Return Value ==== |
| | 126 | |
| | 127 | Function does not return a value. |
| | 128 | |
| | 129 | === SetHeightBasedOnFont === |
| | 130 | Sets the height of the rectangle based on a font |
| | 131 | |
| | 132 | {{{#!c++ |
| | 133 | void SetHeightBasedOnFont(CFont& font, double heightMultiplier, int addPixels = 0 |
| | 134 | }}} |
| | 135 | |
| | 136 | ==== Parameters ==== |
| | 137 | * font - CFont |
| | 138 | * heightMultiplier - Value to multiple the specified font height to set the rectangle height |
| | 139 | * addPixels - value of additional pixels to add after multiplication |
| | 140 | |
| | 141 | ==== Return Value ==== |
| | 142 | |
| | 143 | Function does not return a value. |
| | 144 | |
| | 145 | === SetTopAndHeightBasedOnFont === |
| | 146 | Sets top coordinate and height of the rectangle based on a font |
| | 147 | |
| | 148 | {{{#!c++ |
| | 149 | void SetTopAndHeightBasedOnFont(CFont& font, double topMultiplier, double heightMultiplier) |
| | 150 | }}} |
| | 151 | |
| | 152 | ==== Parameters ==== |
| | 153 | * font - CFont |
| | 154 | * topMultiplier - Value to multiplier times the height of the specified font to set the rectangle top |
| | 155 | * heightMultiplier - value of multiplier time the height of the specified font to set the rectangle height |
| | 156 | |
| | 157 | ==== Return Value ==== |
| | 158 | |
| | 159 | Function does not return a value. |