Haiku API Bindings
RefFilter
Not logged in

Documentation | StorageKit | RefFilter

NAME

RefFilter

VERSION

0.01

SYNOPSIS

Perl

use HaikuR1::RefFilter;

# define MyFilter subclass here

my $filter = MyFilter->new();
$panel->SetRefFilter($filter);

Python

from HaikuR1.StorageKit import RefFilter

# define MyFilter subclass here

filter = MyFitler()
panel.SetRefFilter(filter)

DESCRIPTION

Exposes the BRefFilter object.

For more information on RefFilter, see the Be Book class description, the Be Book overview, and the Haiku Book class description.

METHODS

Constructor

Creates a RefFilter.

Perl

HaikuR1::RefFilter->new();

Python

RefFilter()

EVENTS

Filter

When a directory is opened in a FilePanel, or when FilePanel.Refresh is called, this method is called once for each entry in the directory. Return true to include the entry, false to skip it.

Perl

$filter->Filter($ref, $node, $stat, $type);

Python

filter.Filter(ref, node, stat, type)