Searched refs:GetIndexForPoint (Results 1 – 4 of 4) sorted by relevance
413 TEST_F(CFDE_TextEditEngineTest, GetIndexForPoint) { in TEST_F() argument416 EXPECT_EQ(0U, engine()->GetIndexForPoint({0.0f, 0.0f})); in TEST_F()417 EXPECT_EQ(11U, engine()->GetIndexForPoint({999999.0f, 9999999.0f})); in TEST_F()418 EXPECT_EQ(1U, engine()->GetIndexForPoint({10.0f, 5.0f})); in TEST_F()
159 size_t GetIndexForPoint(const CFX_PointF& point);
874 size_t CFDE_TextEditEngine::GetIndexForPoint(const CFX_PointF& point) { in GetIndexForPoint() function in CFDE_TextEditEngine
1164 m_CursorPosition = m_EdtEngine.GetIndexForPoint(DeviceToEngine(pMsg->m_pos)); in DoRButtonDown()1212 m_EdtEngine.GetIndexForPoint(DeviceToEngine(pMsg->m_pos)); in OnLButtonDown()1235 size_t click_idx = m_EdtEngine.GetIndexForPoint(DeviceToEngine(pMsg->m_pos)); in OnButtonDoubleClick()1251 SetCursorPosition(m_EdtEngine.GetIndexForPoint(DeviceToEngine(pMsg->m_pos))); in OnMouseMove()