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
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
: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
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.
: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 |