Skip to content

Commit

Permalink
[skip-ci] fix typo: DistanceToPrimitive (root-project#16088)
Browse files Browse the repository at this point in the history
  • Loading branch information
couet authored Jul 23, 2024
1 parent a6234c8 commit 0acbf8d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions documentation/users-guide/Graphics.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ of the class. When the mouse is moved or a button pressed/released, the
in all it's pads and for each object calls some standard methods to make
the object react to the event (mouse movement, click or whatever).

The second one is `DistanceToPrimitive(px,py)`. This function computes a
The second one is `DistancetoPrimitive(px,py)`. This function computes a
"distance" to an object from the mouse position at the pixel position
(`px`, `py`, see definition at the end of this paragraph) and returns
this distance in pixel units. The selected object will be the one with
Expand Down Expand Up @@ -524,7 +524,7 @@ known ahead of time.
#### The Pixel Coordinate System

The least common is the pixel coordinate system, used by functions such
as `DistanceToPrimitive()` and `ExecuteEvent()`. Its primary use is for
as `DistancetoPrimitive()` and `ExecuteEvent()`. Its primary use is for
cursor position, which is always given in pixel coordinates. If
(`px,py`) is the cursor position, `px=0` and `py=0` corresponds to the
top-left corner of the pad, which is the standard convention in
Expand Down
2 changes: 1 addition & 1 deletion documentation/users-guide/WritingGUI.md
Original file line number Diff line number Diff line change
Expand Up @@ -2600,7 +2600,7 @@ Every object editor follows a simple naming convention: to have as a
name the object class name concatenated with ‘*`Editor`*' (e.g. for
**`TGraph`** objects the object editor is **`TGraphEditor`**). Thanks to
the signals/slots communication mechanism and to the method
`DistanceToPrimitive()` that computes a ‘‘distance'' to an object from
`DistancetoPrimitive()` that computes a ‘‘distance'' to an object from
the mouse position, it was possible to implement a signal method of the
canvas that says which is the selected object and to which pad it
belongs. Having this information the graphics editor loads the
Expand Down
2 changes: 1 addition & 1 deletion gui/ged/doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Every object editor follows a simple naming convention: to have as a
name the object class name concatenated with ‘*`Editor`*' (e.g. for
**`TGraph`** objects the object editor is **`TGraphEditor`**). Thanks to
the signals/slots communication mechanism and to the method
`DistanceToPrimitive()` that computes a ‘‘distance'' to an object from
`DistancetoPrimitive()` that computes a ‘‘distance'' to an object from
the mouse position, it was possible to implement a signal method of the
canvas that says which is the selected object and to which pad it
belongs. Having this information the graphics editor loads the
Expand Down
2 changes: 1 addition & 1 deletion hist/doc/v530/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ <h4>TGraphAsymErrors</h4>
<h4>TEfficiency</h4>

<ul>
<li>Update in the class by implementing <tt>DistanceToPrimitive</tt> and <tt>ExecuteEvent</tt>. This allows the
<li>Update in the class by implementing <tt>DistancetoPrimitive</tt> and <tt>ExecuteEvent</tt>. This allows the
possibility to click on the object</li>
<li>Add methods to returned the drawn graph (1D) or the histogram (2D).</li>
<li>Apply some fixes in the <tt>TEfficiency::Draw</tt> and <tt>Paint</tt> methods. </li>
Expand Down

0 comments on commit 0acbf8d

Please sign in to comment.