MatchRule


Description:

[ CCode ( has_construct_function = false ) ]
public MatchRule (StateSet states, CollectionMatchType statematchtype, HashTable<string,string> attributes, CollectionMatchType attributematchtype, Array<Role> roles, CollectionMatchType rolematchtype, Array<string> interfaces, CollectionMatchType interfacematchtype, bool invert)

Creates a new MatchRule with specified states, attributes, interfaces, and roles.

Parameters:

states

An StateSet specifying the states to match or NULL if none.

statematchtype

An CollectionMatchType specifying how to interpret states.

attributes

A GenericSet specifying attributes to match. To specify multiple attribute values, separate each value with a :: If an attribute value contains a :, then it can be escaped by preceding it with a \. A backslash can likewise be escaped by inserting a double backslash.

attributematchtype

An CollectionMatchType specifying how to interpret attributes .

roles

A Array of roles to match, or NULL if not applicable.

rolematchtype

An CollectionMatchType specifying how to interpret roles.

interfaces

An array of interfaces to match, or NULL if not applicable. Interface names should be specified by the final component of their DBus names (Accessible, Component, etc). For Action, it is possible to specify an action name by enclosing it in parenthesis after the interface name, in which case only accessibles that implement that particular action will be returned. For instance, Action( click) will return accessibles that provide an action called "click".

interfacematchtype

An CollectionMatchType specifying how to interpret interfaces .

invert

if TRUE, the match rule should be denied (inverted); if FALSE, it should not. For example, if the match rule defines that a match is an object of ROLE_HEADING which has STATE_FOCUSABLE and a click action, inverting it would match all objects that are not of ROLE_HEADING, focusable and clickable at the same time.

Returns:

A new MatchRule.