Skip to content

Commit

Permalink
cleanup doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sagi-z committed Jul 6, 2017
1 parent e281ab1 commit 14173ac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
19 changes: 14 additions & 5 deletions src/canvascv/canvas.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Canvas : public LayoutBase
* @brief redrawOn
*
* A utility method that uses latest Mat used as 'src' in the redrawOn above.
* This methos is also used internally on waitKeyEx(0)
* This methos is also used internally in waitKeyEx(0)
* @param dst will be used as output.
* @sa waitKeyEx
*/
Expand Down Expand Up @@ -150,21 +150,24 @@ class Canvas : public LayoutBase

/**
* @brief used to register for notifications on shape creation
*
*
* Multiple registrations are allowed.
* @param cb to invoke on shape creation
*/
void notifyOnShapeCreate(CBCanvasShape cb);

/**
* @brief used to register for notifications on shape modification (actually when it is deselected)
*
* Multiple registrations are allowed.
* @param cb to invoke on shape modification
*/
void notifyOnShapeModify(CBCanvasShape cb);

/**
* @brief used to register for notifications on shape deletion
*
* Multiple registrations are allowed.
* @param cb to invoke on shape deletion
*/
void notifyOnShapeDelete(CBCanvasShape cb);
Expand Down Expand Up @@ -222,7 +225,8 @@ class Canvas : public LayoutBase
/**
* @brief enableScreenText enables the top left text area for manual user messages
*
* During enable of this feature you can overide some default values
* During enable of this feature you can overide some default values. It is safe to
* call this method again just to change display settings.
* @param color is font color
* @param bgColor is rect bg color
* @param scale is font scale
Expand All @@ -240,7 +244,8 @@ class Canvas : public LayoutBase
/**
* @brief enableStatusMsg enables the bottom left text area for auto status messages
*
* During enable of this feature you can overide some default values
* During enable of this feature you can overide some default values. It is safe to
* call this method again just to change display settings.
* @param color is font color
* @param bgColor is rect bg color
* @param scale is font scale
Expand Down Expand Up @@ -296,9 +301,13 @@ class Canvas : public LayoutBase
*
* utility method to handle key strokes - you get the keystroke if a widget/shape didn't consume it.
* @param delay in milliseconds. If delay is 0, then the latest image used as input will be the
* background for internal updates. If you want to change it from a callback, then use setImage
* background for internal updates. If you want to change it from a callback, then use setImage.
* @return the key press or -1 if the timeout reached
* @sa setImage
* @note
* When using widgets with callback on the same image, the delay should be 0.
* If you're changing frames or using only the polling API of the widgets, then
* specify a delay of your choice.
*/
int waitKeyEx(int delay = 0);

Expand Down
4 changes: 2 additions & 2 deletions src/canvascv/widgets/widget.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class Widget
void setLayoutAnchor(const Anchor &value);

/**
* @brief getFlowAnchor affects internal widget alignment and direction of growth
* @brief getFlowAnchor get internal widget alignment and direction of growth
*
* @return the Anchor of our own flow
* @see VerticalLayout, HorizontalLayout, Text
Expand All @@ -160,7 +160,7 @@ class Widget
}

/**
* @brief setFlowAnchor affects internal widget alignment and direction of growth
* @brief setFlowAnchor set internal widget alignment and direction of growth
*
* @param value is used to set the flowAnchor
* @see VerticalLayout, HorizontalLayout, Text
Expand Down

0 comments on commit 14173ac

Please sign in to comment.