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);
//
// 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(...);

View File

@ -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;