Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | GtkSelectionData |
Struct : | SelectionData |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
data : void*
|
Gtk.SelectionData | |
display : Gdk.Display
|
Gtk.SelectionData | |
format : Number
|
Gtk.SelectionData | |
length : Number
|
Gtk.SelectionData | |
selection : Gdk.Atom
|
Gtk.SelectionData | |
target : Gdk.Atom
|
Gtk.SelectionData | |
type : Gdk.Atom
|
Gtk.SelectionData |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.SelectionData
()
Create a new Gtk.SelectionData
Create a new Gtk.SelectionData
|
||
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 | |
get_data
()
:
String
Retrieves the raw data of the selection.
Retrieves the raw data of the selection.
|
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
()
:
Number
Retrieves the format of the selection.
Retrieves the format of the selection.
|
Gtk.SelectionData | |
get_length
()
:
Number
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. 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.
|
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 | |
Gtk.SelectionData | ||
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)
:
Boolean
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
()
:
Boolean
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
()
:
Boolean
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 |
Gtk.tree_get_row_drag_data
(SelectionData selection_data, TreeModel tree_model, TreePath path)
:
Boolean
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)
:
Boolean
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.TreeDragSource
Method |
Asks the GtkTreeDragSource to fill in selection_data with a representation of the row at path.
|
Gtk.Widget
Signal |
drag_data_get
(Widget self, DragContext drag_context, SelectionData data, Number info, Number 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, Number x, Number y, SelectionData data, Number info, Number 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 |
|