Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | GtkSelectionData |
Struct : | SelectionData |
None |
Method / Constructor | Defined By | |
---|---|---|
copy
()
:
Gtk.SelectionData
Makes a copy of a GtkSelectionData structure and its data.
Makes a copy of a GtkSelectionData structure and its data.
|
Gtk.SelectionData | |
free
()
:
none
Frees a GtkSelectionData structure returned from
gtk_selection_data_copy().
Frees a GtkSelectionData structure returned from
gtk_selection_data_copy().
|
Gtk.SelectionData | |
Gtk.SelectionData | ||
get_data_type
()
:
Gdk.Atom
Retrieves the data type of the selection.
Retrieves the data type of the selection.
|
Gtk.SelectionData | |
get_display
()
:
Gdk.Display
Retrieves the display of the selection.
Retrieves the display of the selection.
|
Gtk.SelectionData | |
get_format
()
:
gint32
Retrieves the format of the selection.
Retrieves the format of the selection.
|
Gtk.SelectionData | |
get_length
()
:
gint32
Retrieves the length of the raw data of the selection.
Retrieves the length of the raw data of the selection.
|
Gtk.SelectionData | |
get_pixbuf
()
:
GdkPixbuf.Pixbuf
Gets the contents of the selection data as a GdkPixbuf.
Gets the contents of the selection data as a GdkPixbuf.
image type and it could be converted to a GdkPixbuf, a newly allocated pixbuf is returned, otherwise NULL. If the result is non-NULL it must be freed with g_object_unref().
|
Gtk.SelectionData | |
get_selection
()
:
Gdk.Atom
Retrieves the selection GdkAtom of the selection data.
Retrieves the selection GdkAtom of the selection data.
|
Gtk.SelectionData | |
get_target
()
:
Gdk.Atom
Retrieves the target of the selection.
Retrieves the target of the selection.
|
Gtk.SelectionData | |
Gets the contents of selection_data as an array of targets.
Gets the contents of selection_data as an array of targets.
This can be used to interpret the results of getting the standard TARGETS target that is always supplied for any selection. array of targets, otherwise FALSE.
|
Gtk.SelectionData | |
get_text
()
:
String
Gets the contents of the selection data as a UTF-8 string.
Gets the contents of the selection data as a UTF-8 string.
recognized text type and it could be converted to UTF-8, a newly allocated string containing the converted text, otherwise NULL. If the result is non-NULL it must be freed with g_free().
|
Gtk.SelectionData | |
get_uris
()
:
Array
Gets the contents of the selection data as array of URIs.
Gets the contents of the selection data as array of URIs.
the selection data contains a list of URIs, a newly allocated NULL-terminated string array containing the URIs, otherwise NULL. If the result is non-NULL it must be freed with g_strfreev().
|
Gtk.SelectionData | |
Stores new data into a GtkSelectionData object.
Stores new data into a GtkSelectionData object. Should
Zero-terminates the stored data.
|
Gtk.SelectionData | |
Sets the contents of the selection from a GdkPixbuf
The pixbuf is converted to the form determined by otherwise FALSE.
Sets the contents of the selection from a GdkPixbuf
The pixbuf is converted to the form determined by otherwise FALSE.
|
Gtk.SelectionData | |
Sets the contents of the selection from a UTF-8 encoded string.
Sets the contents of the selection from a UTF-8 encoded string.
The string is converted to the form determined by otherwise FALSE.
|
Gtk.SelectionData | |
Sets the contents of the selection from a list of URIs.
|
Gtk.SelectionData | |
Given a GtkSelectionData object holding a list of targets,
determines if any of the targets in targets can be used to provide a GdkPixbuf.
Given a GtkSelectionData object holding a list of targets,
determines if any of the targets in targets can be used to provide a GdkPixbuf. and a suitable target for images is included, otherwise FALSE.
|
Gtk.SelectionData | |
targets_include_rich_text
(TextBuffer buffer)
:
gboolean
Given a GtkSelectionData object holding a list of targets,
determines if any of the targets in targets can be used to provide rich text.
Given a GtkSelectionData object holding a list of targets,
determines if any of the targets in targets can be used to provide rich text. and a suitable target for rich text is included, otherwise FALSE.
|
Gtk.SelectionData | |
targets_include_text
()
:
gboolean
Given a GtkSelectionData object holding a list of targets,
determines if any of the targets in targets can be used to provide text.
Given a GtkSelectionData object holding a list of targets,
determines if any of the targets in targets can be used to provide text. and a suitable target for text is included, otherwise FALSE.
|
Gtk.SelectionData | |
targets_include_uri
()
:
gboolean
Given a GtkSelectionData object holding a list of targets,
determines if any of the targets in targets can be used to provide a list or URIs.
Given a GtkSelectionData object holding a list of targets,
determines if any of the targets in targets can be used to provide a list or URIs. and a suitable target for URI lists is included, otherwise FALSE.
|
Gtk.SelectionData |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk
Method |
Obtains a tree_model and path from selection data of target type
GTK_TREE_MODEL_ROW. |
Gtk
Method |
Gtk.tree_set_row_drag_data
(SelectionData selection_data, TreeModel tree_model, TreePath path)
:
gboolean
Sets selection data of target type GTK_TREE_MODEL_ROW.
|
Gtk.Clipboard
Method |
wait_for_contents
(Atom target)
:
Gtk.SelectionData
Requests the contents of the clipboard using the given target.
|
Gtk.ToolPalette
Method |
get_drag_item
(SelectionData selection)
:
Gtk.Widget
Get the dragged item from the selection.
|
Gtk.TreeDragDest
Method |
Asks the GtkTreeDragDest to insert a row before the path dest,
deriving the contents of the row from selection_data. |
Gtk.TreeDragDest
Method |
Determines whether a drop is possible before the given dest_path,
at the same depth as dest_path. |
Gtk.Widget
Signal |
drag_data_get
(Widget self, DragContext drag_context, SelectionData data, guint32 info, guint32 time)
:
none
The ::drag-data-get signal is emitted on the drag source when the drop
site requests the data which is dragged. |
Gtk.Widget
Signal |
drag_data_received
(Widget self, DragContext drag_context, gint32 x, gint32 y, SelectionData data, guint32 info, guint32 time)
:
none
The ::drag-data-received signal is emitted on the drop site when the
dragged data has been received. |
Gtk.Widget
Signal |
|
Gtk.Widget
Signal |
|