Changes between Version 6 and Version 7 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Form/CFormRect


Ignore:
Timestamp:
03/12/25 14:53:42 (5 weeks ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/Form/CFormRect

    v6 v7  
    1616}}}
    1717
     18== Member Functions ==
     19
     20=== SetX ===
     21Sets X coordinate
     22
     23{{{#!c++
     24void SetX(int x);
     25}}}
     26
     27==== Parameters ====
     28 * x - X coordinate
     29
     30==== Return Value ====
     31
     32Function does not return a value.
     33
     34=== SetY ===
     35Sets Y coordinate
     36
     37{{{#!c++
     38void SetY(int y);
     39}}}
     40
     41==== Parameters ====
     42 * y - Y coordinate
     43
     44==== Return Value ====
     45
     46Function does not return a value.
     47
     48=== SetWidth ===
     49Sets width of the rectangle
     50
     51{{{#!c++
     52void SetWidth(int width);
     53}}}
     54
     55==== Parameters ====
     56 * width - width value
     57
     58==== Return Value ====
     59
     60Function does not return a value.
     61
     62=== SetHeight ===
     63Sets width of the rectangle
     64
     65{{{#!c++
     66void SetHeight(int height);
     67}}}
     68
     69==== Parameters ====
     70 * height - height value
     71
     72==== Return Value ====
     73
     74Function does not return a value.
     75
     76=== AddToWidth ===
     77Adds specified number of pixels to width of the rectangle
     78
     79{{{#!c++
     80void AddToWidth(int addToWidth);
     81}}}
     82
     83==== Parameters ====
     84 * addToWidth - number of pixels to add
     85
     86==== Return Value ====
     87
     88Function does not return a value.
     89
     90=== operator += ===
     91Updates a rect position based on a CFormAdvanceX or CFormAdvanceY
     92
     93{{{#!c++
     94CFormRect& opeator+=(const CFormAdvanceY& advY);
     95
     96CFormRect& opeator+=(const CFormAdvanceX& advX);
     97
     98CFormRect& 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
     109Function returns a reference to the CFormRect (this).
     110
     111
     112
     113=== SetTopBasedOnFont ===
     114Sets top coordinate of the rectangle based on a font
     115
     116{{{#!c++
     117void 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
     127Function does not return a value.
     128
     129=== SetHeightBasedOnFont ===
     130Sets the height of the rectangle based on a font
     131
     132{{{#!c++
     133void 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
     143Function does not return a value.
     144
     145=== SetTopAndHeightBasedOnFont ===
     146Sets top coordinate and height of the rectangle based on a font
     147
     148{{{#!c++
     149void 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
     159Function does not return a value.