ImGuiTextFilterItem: added MatchIncludesMask support field for e.g. ImGuiTextFilterMultiMatch.
This commit is contained in:
parent
e19fea020f
commit
6cf8332f93
@ -840,10 +840,11 @@ struct ImGuiTextIndex
|
|||||||
// [Internal] Types
|
// [Internal] Types
|
||||||
struct ImGuiTextFilterItem
|
struct ImGuiTextFilterItem
|
||||||
{
|
{
|
||||||
const char* Begin;
|
const char* Begin; // Pointer within parent's buffer
|
||||||
int Len;
|
int Len; // Length of text (non-zero terminated)
|
||||||
int CountInclude; // >0 when beginning of an AND chain.
|
short CountInclude; // Number of consecutive items forming an end chain. >0 when beginning of an AND chain, =0 otherwise.
|
||||||
ImGuiTextFilterItem(const char* b, const char* e) { IM_ASSERT(e > b); Begin = b; Len = (int)(e - b); CountInclude = 0; }
|
unsigned short MatchIncludesMask; // Storage for multi-sources versions of PassFilter(). Unused by core library.
|
||||||
|
ImGuiTextFilterItem(const char* b, const char* e) { IM_ASSERT(e > b); Begin = b; Len = (int)(e - b); CountInclude = 0; MatchIncludesMask = 0; }
|
||||||
};
|
};
|
||||||
|
|
||||||
// Helper: ImGuiPackedDate (sizeof() == 2)
|
// Helper: ImGuiPackedDate (sizeof() == 2)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user