added more documentation

fixed some spell errors in comments

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2209 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
blaszijk
2012-01-01 23:10:14 +00:00
parent 07805fc51a
commit 64b7d36c89
2 changed files with 92 additions and 7 deletions

View File

@ -114,11 +114,96 @@ The text can have multiple lines</descr>
</element>
<element name="UIContext.doCheckButton.state">
<short>whether the check button is checked or not</short>
<descr>if state is NULL; the buttoin behave like if a touch button unchecked</descr>
<descr>if state is NULL; the button behave like if a touch button unchecked</descr>
</element>
<element name="UIContext.doCheckButton.style">
<short>optional style flag to modify the look</short>
</element>
<element name="UIContext.doRadioButton">
<short>UI method for rendering and processing a radio button</short>
<descr>Radio buttons are typically used in groups to diplay and edit the possible reference values taken by an int value.
One radio button is representing a possible reference value taken by the current value.
It is displaying a boolean state true if the current value is equal to the reference value.
</descr>
</element>
<element name="UIContext.doRadioButton.reference">
<short>The reference int value represented by this radio button.</short>
</element>
<element name="UIContext.doRadioButton.r">
<short>optionally provides a location and size for the button</short>
</element>
<element name="UIContext.doRadioButton.Text">
<short>text to display on the button</short>
</element>
<element name="UIContext.doRadioButton.Value">
<short>The value parameter compared to the reference value parameter.</short>
<descr>if value is NULL; the radio button is off</descr>
</element>
<element name="UIContext.doRadioButton.style">
<short>optional style flag to modify the look </short>
</element>
<element name="UIContext.doRadioButton.Result">
<short>True if the radio button value changed</short>
</element>
<element name="UIContext.doCheckButton.Result">
<short>True if the check button state changed</short>
</element>
<element name="UIContext.doHorizontalSlider">
<short>UI method for rendering and processing a horizontal slider</short>
<descr>Horizontal slider is used to edit and display a scalar value in the specified range [min; max].</descr>
</element>
<element name="UIContext.doHorizontalSlider.aRect">
<short>optionally provides a location and size for the widget</short>
</element>
<element name="UIContext.doHorizontalSlider.min">
<short>min bound of the varying range of the value</short>
</element>
<element name="UIContext.doHorizontalSlider.max">
<short>max bound of the varying range of the value</short>
</element>
<element name="UIContext.doHorizontalSlider.Value">
<short>the value edited by the widget</short>
<descr>if value is NULL; the value is set to min</descr>
</element>
<element name="UIContext.doHorizontalSlider.style">
<short>optional style flag to modify the look</short>
</element>
<element name="UIContext.doHorizontalSlider.Result">
<short>True if the slider value changed</short>
</element>
<element name="UIContext.doTextureView">
<short>UI method for drawing a texture view</short>
<descr>Several parameters control the equation used to display the texel
<p>
<code>texel = texture2DFetch(...);
pixel = texelSwizzling( texel * texelScale + texelOffset );
</code>
</p>
</descr>
</element>
<element name="UIContext.doTextureView.aRect">
<short>provides a location and size for the texture view</short>
</element>
<element name="UIContext.doTextureView.texID">
<short>texture identifier (Graphics API specific)</short>
</element>
<element name="UIContext.doTextureView.zoomRect">
<short>rectangle area of the texture displayed</short>
</element>
<element name="UIContext.doTextureView.mipLevel">
<short>mip Level of the texture displayed</short>
</element>
<element name="UIContext.doTextureView.texelScale">
<short>scale applyed to the texel fetch</short>
</element>
<element name="UIContext.doTextureView.texelOffset">
<short>offset applyed to the texel after scale</short>
</element>
<element name="UIContext.doTextureView.style">
<short>optional style flag to modify the look</short>
</element>
</module>
</package>
</fpdoc-descriptions>

View File

@ -288,10 +288,10 @@ type
// rect - optionally provides a location and size for the button
// text - text to display on the button
// state - whether the check button is checked or not
// if state is NULL; the buttoin behave like if a touch button unchecked
// if state is NULL; the button behave like if a touch button unchecked
// style - optional style flag to modify the look
//
// @return True if the check button'state changed
// @return True if the check button state changed
//////////////////////////////////////////////////////////////////
function doCheckButton(const r: Rect; const Text: string; var state: boolean; style: integer = 0): boolean;
@ -310,7 +310,7 @@ type
// if value is NULL; the radio button is off
// style - optional style flag to modify the look
//
// @return True if the radio button's value changed
// @return True if the radio button value changed
//////////////////////////////////////////////////////////////////
function doRadioButton(reference: integer; const r: Rect; const Text: string; var Value: integer; style: integer = 0): boolean;
@ -321,11 +321,11 @@ type
// rect - optionally provides a location and size for the widget
// min - min bound of the varying range of the value
// max - max bound of the varying range of the value
// value - the value edited byt the widget
// value - the value edited by the widget
// if value is NULL; the value is set to min
// style - optional style flag to modify the look
//
// @return True if the slider's value changed
// @return True if the slider value changed
//////////////////////////////////////////////////////////////////
function doHorizontalSlider(const aRect: Rect; min: double; max: double; var Value: double; style: integer = 0): boolean;