mirror of
https://github.com/ocornut/imgui.git
synced 2026-09-26 16:05:45 +03:00
ImGuiTextFilterItem: added MatchIncludesMask support field for e.g. ImGuiTextFilterMultiMatch.
This commit is contained in:
parent
e19fea020f
commit
6cf8332f93
1 changed files with 5 additions and 4 deletions
|
|
@ -840,10 +840,11 @@ struct ImGuiTextIndex
|
|||
// [Internal] Types
|
||||
struct ImGuiTextFilterItem
|
||||
{
|
||||
const char* Begin;
|
||||
int Len;
|
||||
int CountInclude; // >0 when beginning of an AND chain.
|
||||
ImGuiTextFilterItem(const char* b, const char* e) { IM_ASSERT(e > b); Begin = b; Len = (int)(e - b); CountInclude = 0; }
|
||||
const char* Begin; // Pointer within parent's buffer
|
||||
int Len; // Length of text (non-zero terminated)
|
||||
short CountInclude; // Number of consecutive items forming an end chain. >0 when beginning of an AND chain, =0 otherwise.
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue