Changeset 56219

Show
Ignore:
Timestamp:
10/10/08 12:13:50 (6 weeks ago)
Author:
FM
Message:

group hit-test flags into an enum (like I did in docs); this makes easier to document them, but is also logically the best thing since wxRichTextBuffer::HitTest is documented to return only _one_ of those flags.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • wxWidgets/trunk/include/wx/richtext/richtextbuffer.h

    r55653 r56219  
    9292 
    9393/*! 
    94  * File types 
     94 * File types in wxRichText context. 
    9595 */ 
    9696enum wxRichTextFileType 
     
    146146 * Flags returned from hit-testing 
    147147 */ 
    148  
    149 // The point was not on this object 
    150 #define wxRICHTEXT_HITTEST_NONE     0x01 
    151 // The point was before the position returned from HitTest 
    152 #define wxRICHTEXT_HITTEST_BEFORE   0x02 
    153 // The point was after the position returned from HitTest 
    154 #define wxRICHTEXT_HITTEST_AFTER    0x04 
    155 // The point was on the position returned from HitTest 
    156 #define wxRICHTEXT_HITTEST_ON       0x08 
    157 // The point was on space outside content 
    158 #define wxRICHTEXT_HITTEST_OUTSIDE  0x10 
     148enum wxRichTextHitTestFlags 
     149{ 
     150    // The point was not on this object 
     151    wxRICHTEXT_HITTEST_NONE =    0x01, 
     152 
     153    // The point was before the position returned from HitTest 
     154    wxRICHTEXT_HITTEST_BEFORE =  0x02, 
     155 
     156    // The point was after the position returned from HitTest 
     157    wxRICHTEXT_HITTEST_AFTER =   0x04, 
     158 
     159    // The point was on the position returned from HitTest 
     160    wxRICHTEXT_HITTEST_ON =      0x08, 
     161 
     162    // The point was on space outside content 
     163    wxRICHTEXT_HITTEST_OUTSIDE = 0x10 
     164}; 
    159165 
    160166/*!