NativeDialog
Object Hierarchy:
Gtk.NativeDialog
Gtk.NativeDialog
Gtk.NativeDialog
GLib.Object
GLib.Object
GLib.Object->Gtk.NativeDialog
Description:
[ CCode ( type_id = "gtk_native_dialog_get_type ()" ) ]public abstract class NativeDialog : Object
Native dialogs are platform dialogs that don't use Dialog or
Window .
They are used in order to integrate better with a platform, by looking the same as other native applications and supporting platform
specific features.
The Dialog functions cannot be used on such objects, but we need a similar API in order to
drive them. The NativeDialog object is an API that allows you to do this. It allows you to set various
common properties on the dialog, as well as show and hide it and get a response
signal when the user finished with the dialog.
There is also a run helper that makes it easy to run any native dialog in a modal
way with a recursive mainloop, similar to run .
Content:
Properties:
public bool modal { get ; set ; }
Whether the window should be modal with respect to its transient
parent.
public string ? title { get ; set ; }
The title of the dialog window
public Window ? transient_for { get ; set construct ; }
The transient parent of the dialog, or null
for none.
public bool visible { get ; set ; }
Whether the window is currenlty visible.
Creation methods:
Methods:
public void destroy ()
Destroys a dialog.
public bool get_modal ()
Returns whether the dialog is modal.
public unowned string ? get_title ()
Gets the title of the NativeDialog
.
public unowned Window ? get_transient_for ()
Fetches the transient parent for this window.
public bool get_visible ()
Determines whether the dialog is visible.
public virtual void hide ()
Hides the dialog if it is visilbe, aborting any interaction.
public int run ()
Blocks in a recursive main loop until this
emits the response signal.
public void set_modal (bool modal)
Sets a dialog modal or non-modal.
public void set_title (string ? title)
Sets the title of the NativeDialog
.
public void set_transient_for (Window ? parent)
Dialog windows should be set transient for the main application window
they were spawned from.
public virtual void show ()
Shows the dialog on the display, allowing the user to interact with
it.
Signals:
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref