diff --git a/components/nvidia-widgets/doc/nvwidgets.xml b/components/nvidia-widgets/doc/nvwidgets.xml index 04c3c14d5..8d56a0965 100644 --- a/components/nvidia-widgets/doc/nvwidgets.xml +++ b/components/nvidia-widgets/doc/nvwidgets.xml @@ -104,7 +104,7 @@ The text can have multiple lines UI method for rendering and processing a check button - Check button behaves similarly as a toggle button used to display and edit a bool property. + Check button behaves similarly as a toggle button used to display and edit a bool property. optionally provides a location and size for the button @@ -114,11 +114,96 @@ The text can have multiple lines 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 optional style flag to modify the look + + UI method for rendering and processing a radio button + 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. + + + + The reference int value represented by this radio button. + + + optionally provides a location and size for the button + + + text to display on the button + + + The value parameter compared to the reference value parameter. + if value is NULL; the radio button is off + + + optional style flag to modify the look + + + True if the radio button value changed + + + True if the check button state changed + + + UI method for rendering and processing a horizontal slider + Horizontal slider is used to edit and display a scalar value in the specified range [min; max]. + + + optionally provides a location and size for the widget + + + min bound of the varying range of the value + + + max bound of the varying range of the value + + + the value edited by the widget + if value is NULL; the value is set to min + + + optional style flag to modify the look + + + True if the slider value changed + + + UI method for drawing a texture view + Several parameters control the equation used to display the texel + +

+ texel = texture2DFetch(...); +pixel = texelSwizzling( texel * texelScale + texelOffset ); + +

+
+
+ + provides a location and size for the texture view + + + texture identifier (Graphics API specific) + + + rectangle area of the texture displayed + + + mip Level of the texture displayed + + + scale applyed to the texel fetch + + + offset applyed to the texel after scale + + + optional style flag to modify the look + diff --git a/components/nvidia-widgets/src/nvwidgets/nvWidgets.pas b/components/nvidia-widgets/src/nvwidgets/nvWidgets.pas index 03bd9cb3c..3cc063678 100644 --- a/components/nvidia-widgets/src/nvwidgets/nvWidgets.pas +++ b/components/nvidia-widgets/src/nvwidgets/nvWidgets.pas @@ -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;