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 their DBus names ( org.a11y.Atspi.Accessible, org.a11y.Atspi.Component, etc).

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.