some comments fixes

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2207 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
blaszijk
2012-01-01 21:30:27 +00:00
parent 554913ea25
commit 4f0e632b73
2 changed files with 22 additions and 22 deletions

View File

@ -214,18 +214,18 @@ type
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
procedure reshape(w: integer; h: integer); procedure reshape(w: integer; h: integer);
//
// Check if the UI is currently on Focus // Check if the UI is currently on Focus
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
function isOnFocus: boolean; function isOnFocus: boolean;
//
// UI method for processing mouse events // UI method for processing mouse events
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
procedure mouse(button: integer; state: integer; modifier: integer; x: integer; y: integer); procedure mouse(button: integer; state: integer; modifier: integer; x: integer; y: integer);
procedure mouse(button: integer; state: integer; x: integer; y: integer); procedure mouse(button: integer; state: integer; x: integer; y: integer);
//
// UI method for processing mouse motion events // UI method for processing mouse motion events
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
procedure mouseMotion(x: integer; y: integer); procedure mouseMotion(x: integer; y: integer);
@ -235,7 +235,7 @@ type
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
procedure keyboard(k: byte; x: integer; y: integer); procedure keyboard(k: byte; x: integer; y: integer);
//
// UI method for entering UI processing mode // UI method for entering UI processing mode
// //
// This function must be used to begin the UI processing // 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 objects. These methods must be called between begin/end.
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////
//
// UI method for drawing a static text label // UI method for drawing a static text label
// The label display a non interactive text. // The label display a non interactive text.
// The text can have multiple lines // The text can have multiple lines
@ -266,7 +266,7 @@ type
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
procedure doLabel(const r: Rect; const Text: string; style: integer = 0); procedure doLabel(const r: Rect; const Text: string; style: integer = 0);
//
// UI method for rendering and processing a push button // UI method for rendering and processing a push button
// //
// rect - optionally provides a location and size for the 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; function doCheckButton(const r: Rect; const Text: string; var state: boolean; style: integer = 0): boolean;
//
// UI method for rendering and processing a radio button // UI method for rendering and processing a radio button
// Radio buttons are typically used in groups to diplay and edit // Radio buttons are typically used in groups to diplay and edit
// the possible reference values taken by an int value. // 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; 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 // 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]. // 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; function getMouseState(button: integer): ButtonState;
//
// UI method for drawing a texture view // UI method for drawing a texture view
// Several parameters control the equation used to display the texel // Several parameters control the equation used to display the texel
// texel = texture2DFetch(...); // texel = texture2DFetch(...);

View File

@ -28,45 +28,45 @@ type
public public
//
// Default UI constructor // Default UI constructor
//
// Creates private OpenGL painter // Creates private OpenGL painter
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
constructor Create; constructor Create;
//
// Alternate UI constructor // Alternate UI constructor
//
// Allows for overriding the standard painter // Allows for overriding the standard painter
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
constructor Create(painter: UIPainter); constructor Create(painter: UIPainter);
//
// UI destructor // UI destructor
//
// Destroy painter if it is private // Destroy painter if it is private
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
destructor Destroy; override; destructor Destroy; override;
//
// One time initialization // One time initialization
//
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
function init(w, h: integer): boolean; function init(w, h: integer): boolean;
//
// UI method for processing GLUT mouse button events // UI method for processing GLUT mouse button events
//
// Call this method from the glutMouseFunc callback, the // Call this method from the glutMouseFunc callback, the
// modifier parameter maps to glutGetModifiers. // modifier parameter maps to glutGetModifiers.
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
procedure mouse(button, state, modifier, x, y: integer); procedure mouse(button, state, modifier, x, y: integer);
procedure mouse(button, state, x, y: integer); procedure mouse(button, state, x, y: integer);
//
// UI method for processing key events // UI method for processing key events
//
// Call this method from the glutReshapeFunc callback // Call this method from the glutReshapeFunc callback
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
procedure specialKeyboard(k, x, y: integer); procedure specialKeyboard(k, x, y: integer);
@ -74,7 +74,7 @@ type
private private
m_ownPainter: boolean; m_ownPainter: boolean;
//
// Translate non-ascii keys from GLUT to nvWidgets // Translate non-ascii keys from GLUT to nvWidgets
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
function translateKey(k: integer): byte; function translateKey(k: integer): byte;