#define ELM_GEN_ITEM_CLASS_VERSION 2
#define ELM_GEN_ITEM_CLASS_HEADER ELM_GEN_ITEM_CLASS_VERSION, 0, 0
-
-typedef enum
-{
- ELM_GLOB_MATCH_NO_ESCAPE = (1 << 0), /**< Treat backslash as an ordinary character instead of escape */
- ELM_GLOB_MATCH_PATH = (1 << 1), /**< Match a slash in string only with a slash in pattern and not by an asterisk (*) or a question mark (?) metacharacter, nor by a bracket expression ([]) containing a slash. */
- ELM_GLOB_MATCH_PERIOD = (1 << 2), /**< Leading period in string has to be matched exactly by a period in pattern. A period is considered to be leading if it is the first character in string, or if both ELM_GLOB_MATCH_PATH is set and the period immediately follows a slash. */
- ELM_GLOB_MATCH_NOCASE = (1 << 3) /**< The pattern is matched case-insensitively. */
-} Elm_Glob_Match_Flags; /**< Glob matching bitfiled flags. @since 1.11 */
type Elm.Genlist.Item.Class: Elm.Gen.Item.Class; [[ See @Elm.Gen.Item.Class. ]]
+enum Elm.Glob.Match_Flags
+{
+ [[Glob matching bitfiled flags. @since 1.11]]
+ legacy: elm_glob_match;
+ no_escape = (1 << 0), [[Treat backslash as an ordinary character instead of escape]]
+ path = (1 << 1), [[Match a slash in string only with a slash in pattern and not by
+ an asterisk (*) or a question mark (?) metacharacter, nor by a
+ bracket expression ([]) containing a slash.]]
+ period = (1 << 2), [[Leading period in string has to be matched exactly by a period
+ in pattern. A period is considered to be leading if it is the
+ first character in string, or if both ELM_GLOB_MATCH_PATH is
+ set and the period immediately follows a slash.]]
+ nocase = (1 << 3), [[The pattern is matched case-insensitively.]]
+}
+
enum Elm.Policy
{
[[Policy identifiers.]]
]]
@in part_name: const(char) *; [[Name of the TEXT part of gengrid item to search string in.]]
@in pattern: const(char) *; [[The search pattern.]]
- @in flags: Elm_Glob_Match_Flags; [[Search flags.]]
+ @in flags: Elm.Glob.Match_Flags; [[Search flags.]]
}
}
reorder_mode_start {
]]
@in part_name: const(char)*; [[Name of the TEXT part of genlist item to search string in.]]
@in pattern: const(char)*; [[The search pattern.]]
- @in flags: Elm_Glob_Match_Flags; [[Search flags.]]
+ @in flags: Elm.Glob.Match_Flags; [[Search flags.]]
}
}
}