Grl.Caps

g GObject.Object GObject.Object Grl.Caps Grl.Caps GObject.Object->Grl.Caps

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_key_filter ()

get_key_range_filter ()

get_type_filter ()

is_key_filter (key)

is_key_range_filter (key)

set_key_filter (keys)

set_key_range_filter (keys)

set_type_filter (filter)

test_option (key, value)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class Grl.Caps(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Grl.CapsClass

classmethod new()
Returns:

a new caps object.

Return type:

Grl.Caps

Creates a new caps object.

New in version 0.2.0.

get_key_filter()
Return type:

[int]

New in version 0.2.0.

get_key_range_filter()
Return type:

[int]

New in version 0.2.0.

get_type_filter()
Returns:

the supported Grl.TypeFilter

Return type:

Grl.TypeFilter

New in version 0.2.0.

is_key_filter(key)
Parameters:

key (int) – a #GrlKeyID

Returns:

True if key can be used for filtering

Return type:

bool

Checks if key is supported for filtering in self.

New in version 0.2.0.

is_key_range_filter(key)
Parameters:

key (int) – a #GrlKeyID

Returns:

True if key can be used for filtering

Return type:

bool

Checks if key is supported for filtering by range in self.

New in version 0.2.0.

set_key_filter(keys)
Parameters:

keys ([int]) –

New in version 0.2.0.

set_key_range_filter(keys)
Parameters:

keys ([int]) –

New in version 0.2.0.

set_type_filter(filter)
Parameters:

filter (Grl.TypeFilter) – a Grl.TypeFilter

Sets the supported filter capability.

New in version 0.2.0.

test_option(key, value)
Parameters:
  • key (str) – a key to test

  • value (GObject.Value) – the value corresponding to key to test against self

Returns:

True if (key, value) obey to self, False otherwise.

Return type:

bool

Checks whether (key, value) are authorized by self.

New in version 0.2.0.