diff --git a/components/nvidia-widgets/src/nvwidgets/nvWidgets.pas b/components/nvidia-widgets/src/nvwidgets/nvWidgets.pas index debaac608..03bd9cb3c 100644 --- a/components/nvidia-widgets/src/nvwidgets/nvWidgets.pas +++ b/components/nvidia-widgets/src/nvwidgets/nvWidgets.pas @@ -214,18 +214,18 @@ type ////////////////////////////////////////////////////////////////// procedure reshape(w: integer; h: integer); - + // // Check if the UI is currently on Focus ////////////////////////////////////////////////////////////////// function isOnFocus: boolean; - + // // UI method for processing mouse events ////////////////////////////////////////////////////////////////// procedure mouse(button: integer; state: integer; modifier: integer; x: integer; y: integer); procedure mouse(button: integer; state: integer; x: integer; y: integer); - + // // UI method for processing mouse motion events ////////////////////////////////////////////////////////////////// procedure mouseMotion(x: integer; y: integer); @@ -235,7 +235,7 @@ type ////////////////////////////////////////////////////////////////// procedure keyboard(k: byte; x: integer; y: integer); - + // // UI method for entering UI processing mode // // This function must be used to begin the UI processing @@ -256,7 +256,7 @@ type // UI objects. These methods must be called between begin/end. //////////////////////////////////////////////////////////////////////////// - + // // UI method for drawing a static text label // The label display a non interactive text. // The text can have multiple lines @@ -266,7 +266,7 @@ type ////////////////////////////////////////////////////////////////// procedure doLabel(const r: Rect; const Text: string; style: integer = 0); - + // // UI method for rendering and processing a push button // // rect - optionally provides a location and size for the button @@ -295,7 +295,7 @@ type ////////////////////////////////////////////////////////////////// function doCheckButton(const r: Rect; const Text: string; var state: boolean; style: integer = 0): boolean; - + // // 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. @@ -314,7 +314,7 @@ type ////////////////////////////////////////////////////////////////// function doRadioButton(reference: integer; const r: Rect; const Text: string; var Value: integer; style: integer = 0): boolean; - + // // 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]. // @@ -353,7 +353,7 @@ type function getMouseState(button: integer): ButtonState; - + // // UI method for drawing a texture view // Several parameters control the equation used to display the texel // texel = texture2DFetch(...); diff --git a/components/nvidia-widgets/src/nvwidgets/nvglutwidgets.pas b/components/nvidia-widgets/src/nvwidgets/nvglutwidgets.pas index 1081a8d3d..f3c199a7d 100755 --- a/components/nvidia-widgets/src/nvwidgets/nvglutwidgets.pas +++ b/components/nvidia-widgets/src/nvwidgets/nvglutwidgets.pas @@ -28,45 +28,45 @@ type public - + // // Default UI constructor - + // // Creates private OpenGL painter ////////////////////////////////////////////////////////////////// constructor Create; - + // // Alternate UI constructor - + // // Allows for overriding the standard painter ////////////////////////////////////////////////////////////////// constructor Create(painter: UIPainter); - + // // UI destructor - + // // Destroy painter if it is private ////////////////////////////////////////////////////////////////// destructor Destroy; override; - + // // One time initialization - + // ////////////////////////////////////////////////////////////////// function init(w, h: integer): boolean; - + // // UI method for processing GLUT mouse button events - + // // Call this method from the glutMouseFunc callback, the // modifier parameter maps to glutGetModifiers. ////////////////////////////////////////////////////////////////// procedure mouse(button, state, modifier, x, y: integer); procedure mouse(button, state, x, y: integer); - + // // UI method for processing key events - + // // Call this method from the glutReshapeFunc callback ////////////////////////////////////////////////////////////////// procedure specialKeyboard(k, x, y: integer); @@ -74,7 +74,7 @@ type private m_ownPainter: boolean; - + // // Translate non-ascii keys from GLUT to nvWidgets ////////////////////////////////////////////////////////////////// function translateKey(k: integer): byte;