LibreOffice Module starmath (master) 1
Public Member Functions | Private Attributes | List of all members
SmCaretLine Class Reference

A line that represents a caret. More...

#include <caret.hxx>

Public Member Functions

 SmCaretLine (tools::Long left=0, tools::Long top=0, tools::Long height=0)
 
tools::Long GetTop () const
 
tools::Long GetLeft () const
 
tools::Long GetHeight () const
 
tools::Long SquaredDistanceX (const SmCaretLine &line) const
 
tools::Long SquaredDistanceX (const Point &pos) const
 
tools::Long SquaredDistanceY (const SmCaretLine &line) const
 
tools::Long SquaredDistanceY (const Point &pos) const
 

Private Attributes

tools::Long _top
 
tools::Long _left
 
tools::Long _height
 

Detailed Description

A line that represents a caret.

Definition at line 60 of file caret.hxx.

Constructor & Destructor Documentation

◆ SmCaretLine()

SmCaretLine::SmCaretLine ( tools::Long  left = 0,
tools::Long  top = 0,
tools::Long  height = 0 
)
inline

Definition at line 63 of file caret.hxx.

References _height, _left, _top, left, and top.

Member Function Documentation

◆ GetHeight()

tools::Long SmCaretLine::GetHeight ( ) const
inline

Definition at line 71 of file caret.hxx.

References _height.

Referenced by SmCursor::Move(), and SquaredDistanceY().

◆ GetLeft()

tools::Long SmCaretLine::GetLeft ( ) const
inline

Definition at line 70 of file caret.hxx.

References _left.

Referenced by SquaredDistanceX().

◆ GetTop()

tools::Long SmCaretLine::GetTop ( ) const
inline

Definition at line 69 of file caret.hxx.

References _top.

Referenced by SmCursor::Move(), and SquaredDistanceY().

◆ SquaredDistanceX() [1/2]

tools::Long SmCaretLine::SquaredDistanceX ( const Point pos) const
inline

Definition at line 76 of file caret.hxx.

References GetLeft(), and pos.

◆ SquaredDistanceX() [2/2]

tools::Long SmCaretLine::SquaredDistanceX ( const SmCaretLine line) const
inline

Definition at line 72 of file caret.hxx.

References GetLeft(), and line.

Referenced by SmCursor::Move(), and SmCursor::MoveTo().

◆ SquaredDistanceY() [1/2]

tools::Long SmCaretLine::SquaredDistanceY ( const Point pos) const
inline

Definition at line 91 of file caret.hxx.

References d, GetHeight(), GetTop(), and pos.

◆ SquaredDistanceY() [2/2]

tools::Long SmCaretLine::SquaredDistanceY ( const SmCaretLine line) const
inline

Definition at line 80 of file caret.hxx.

References d, GetHeight(), GetTop(), and line.

Referenced by SmCursor::MoveTo().

Member Data Documentation

◆ _height

tools::Long SmCaretLine::_height
private

Definition at line 104 of file caret.hxx.

Referenced by GetHeight(), and SmCaretLine().

◆ _left

tools::Long SmCaretLine::_left
private

Definition at line 103 of file caret.hxx.

Referenced by GetLeft(), and SmCaretLine().

◆ _top

tools::Long SmCaretLine::_top
private

Definition at line 102 of file caret.hxx.

Referenced by GetTop(), and SmCaretLine().


The documentation for this class was generated from the following file: