previous up next     contents index
Next: wxMediaEdit::FindString Up: wxMediaEdit: wxMediaBuffer Previous: wxMediaEdit::FindPosition

wxMediaEdit::FindPositionInLine

long FindPositionInLine (long i, float x, Bool *ateol = NULL, Bool *onit = NULL, float *edgeclose = NULL)

Given a graphical location within a line of the buffer, returns the item buffer position at that location. See End of Line Ambiguity (section gif) for a discussion of the ateol parameter. If onit is non-NULL, it will be set to TRUE if the line actually touches this position, or FALSE otherwise.

See wxMediaEdit::FindPosition (section gif) for a discussion of edgeclose.

Only valid when the buffer is viewed.



PLT