W Wrapl, The Programming Language

Libraries:Gtk:Gio:GFileMonitor

Types

T

Inherits from:

Monitors a file or directory for changes.

To obtain a T for a file or directory, use Gtk.Gio.GFile.Monitor, File, or Directory.

To get informed about changes to the file or directory you are monitoring, connect to the "changed" signal. The signal will be emitted in the thread-default main context of the thread that the monitor was created in (though if the global default main context is blocked, this may cause notifications to be blocked even if the thread-default context is still running).



Constants

Nil : T

Functions

Directory(file @ Gtk.Gio.GFile.T, flags @ Std.Integer.SmallT, cancellable @ Gtk.Gio.GCancellable.T, error @ Std.Object.T) : Gtk.Gio.GFileMonitor.T



File(file @ Gtk.Gio.GFile.T, flags @ Std.Integer.SmallT, cancellable @ Gtk.Gio.GCancellable.T, error @ Std.Object.T) : Gtk.Gio.GFileMonitor.T



GetType() : Gtk.GObject.Type.T



Methods

:Cancel(self @ T) : Std.Symbol.T

Cancels a file monitor.

monitor a T.
Returns TRUE if monitor was cancelled.


:EmitEvent(self @ T, child @ Gtk.Gio.GFile.T, other_file @ Gtk.Gio.GFile.T, event_type @ Gtk.Gio.GFileMonitorEvent.T) : Std.Object.T

Emits the "changed" signal if a change has taken place. Should be called from file monitor implementations only.

The signal will be emitted from an idle handler (in the thread-default main context).

monitor a T.
child a Gtk.Gio.GFile.T.
other_file a Gtk.Gio.GFile.T.
event_type a set of Gtk.Gio.GFileMonitorEvent.T flags.


:IsCancelled(self @ T) : Std.Symbol.T

Returns whether the monitor is canceled.

monitor a T
Returns TRUE if monitor is canceled. FALSE otherwise.


:Priv(self @ T) : Std.Object.T

:SetRateLimit(self @ T, limit_msecs @ Std.Integer.SmallT) : Std.Object.T

Sets the rate limit to which the monitor will report consecutive change events to the same file.

monitor a T.
limit_msecs a non-negative integer with the limit in milliseconds to poll for changes


:setPriv(self @ T, value @ Std.Object.T) : Std.Object.T