Changes between Initial Version and Version 1 of Ticket #19330, comment 4


Ignore:
Timestamp:
Jan 2, 2025, 12:56:26 PM (5 weeks ago)
Author:
grexe

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19330, comment 4

    initial v1  
    1 maybe it's just my use case but in a TextView, e.g. selections are provided as a BRegion and contain contiguous BRects. If you want to do your own highlighting, you might want to just draw the outline.
     1maybe it's just my use case but e.g. in a `BTextView`, selections are provided as a `BRegion` of contiguous `BRect`s. If you want to do your own highlighting, you might want to just draw the outline.
    22
    3 It would be interesting to see where and how BRegions are used in the API and whether it makes sense to provide the missing function, or if this is really just a special case in my use case.
     3It would be interesting to see where and how `BRegion`s are used in the API and whether it makes sense to provide the missing function, or if this is really just a special case in my use case.
    44
    55Nevertheless it wouldn't hurt to provide this as a convenience, feel free to use the (trivial) sample code above as a basis.