New upstream version 3.22.29
This commit is contained in:
@ -65,7 +65,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">GdkAtom</span>
|
||||
<a href="../html/gdk3-Properties-and-Atoms.html#GdkAtom"><span class="returnvalue">GdkAtom</span></a>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="gtk3-Drag-and-Drop.html#gtk-drag-dest-find-target" title="gtk_drag_dest_find_target ()">gtk_drag_dest_find_target</a> <span class="c_punctuation">()</span>
|
||||
@ -169,7 +169,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">GdkDragContext</span> *
|
||||
<a href="../html/gdk3-Drag-and-Drop.html#GdkDragContext-struct"><span class="returnvalue">GdkDragContext</span></a> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="gtk3-Drag-and-Drop.html#gtk-drag-begin" title="gtk_drag_begin ()">gtk_drag_begin</a> <span class="c_punctuation">()</span>
|
||||
@ -177,7 +177,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">GdkDragContext</span> *
|
||||
<a href="../html/gdk3-Drag-and-Drop.html#GdkDragContext-struct"><span class="returnvalue">GdkDragContext</span></a> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="gtk3-Drag-and-Drop.html#gtk-drag-begin-with-coordinates" title="gtk_drag_begin_with_coordinates ()">gtk_drag_begin_with_coordinates</a> <span class="c_punctuation">()</span>
|
||||
@ -391,7 +391,7 @@ gtk_drag_dest_set (<em class="parameter"><code><a class="link" href="GtkWidget.h
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Drag-and-Drop.html#GtkDestDefaults" title="enum GtkDestDefaults"><span class="type">GtkDestDefaults</span></a> flags</code></em>,
|
||||
<em class="parameter"><code>const <a class="link" href="gtk3-Selections.html#GtkTargetEntry" title="struct GtkTargetEntry"><span class="type">GtkTargetEntry</span></a> *targets</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> n_targets</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkDragAction</span> actions</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="../html/gdk3-Drag-and-Drop.html#GdkDragAction"><span class="type">GdkDragAction</span></a> actions</code></em>);</pre>
|
||||
<p>Sets a widget as a potential drop destination, and adds default behaviors.</p>
|
||||
<p>The default behaviors listed in <em class="parameter"><code>flags</code></em>
|
||||
have an effect similar
|
||||
@ -405,7 +405,7 @@ as described in the documentation for <a class="link" href="GtkWidget.html#GtkWi
|
||||
behaviors described by <em class="parameter"><code>flags</code></em>
|
||||
make some assumptions, that can conflict
|
||||
with your own signal handlers. For instance <a class="link" href="gtk3-Drag-and-Drop.html#GTK-DEST-DEFAULT-DROP:CAPS"><span class="type">GTK_DEST_DEFAULT_DROP</span></a> causes
|
||||
invokations of <code class="function">gdk_drag_status()</code> in the context of <a class="link" href="GtkWidget.html#GtkWidget-drag-motion" title="The “drag-motion” signal"><span class="type">“drag-motion”</span></a>,
|
||||
invokations of <a href="../html/gdk3-Drag-and-Drop.html#gdk-drag-status"><code class="function">gdk_drag_status()</code></a> in the context of <a class="link" href="GtkWidget.html#GtkWidget-drag-motion" title="The “drag-motion” signal"><span class="type">“drag-motion”</span></a>,
|
||||
and invokations of <a class="link" href="gtk3-Drag-and-Drop.html#gtk-drag-finish" title="gtk_drag_finish ()"><code class="function">gtk_drag_finish()</code></a> in <a class="link" href="GtkWidget.html#GtkWidget-drag-data-received" title="The “drag-data-received” signal"><span class="type">“drag-data-received”</span></a>.
|
||||
Especially the later is dramatic, when your own <a class="link" href="GtkWidget.html#GtkWidget-drag-motion" title="The “drag-motion” signal"><span class="type">“drag-motion”</span></a>
|
||||
handler calls <a class="link" href="gtk3-Drag-and-Drop.html#gtk-drag-get-data" title="gtk_drag_get_data ()"><code class="function">gtk_drag_get_data()</code></a> to inspect the dragged data.</p>
|
||||
@ -441,12 +441,12 @@ the action to use depending on whether the control key is pressed or not:</p>
|
||||
<span class="cbracket">{</span>
|
||||
<span class="normal"> </span><span class="usertype">GdkModifierType</span><span class="normal"> mask</span><span class="symbol">;</span>
|
||||
|
||||
<span class="normal"> </span><span class="function">gdk_window_get_pointer</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="GtkWidget.html#gtk-widget-get-window">gtk_widget_get_window</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">),</span>
|
||||
<span class="normal"> </span><span class="function"><a href="../html/gdk3-Windows.html#gdk-window-get-pointer">gdk_window_get_pointer</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="GtkWidget.html#gtk-widget-get-window">gtk_widget_get_window</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">),</span>
|
||||
<span class="normal"> NULL</span><span class="symbol">,</span><span class="normal"> NULL</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">mask</span><span class="symbol">);</span>
|
||||
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">mask </span><span class="symbol">&</span><span class="normal"> GDK_CONTROL_MASK</span><span class="symbol">)</span>
|
||||
<span class="normal"> </span><span class="function">gdk_drag_status</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span><span class="normal"> GDK_ACTION_COPY</span><span class="symbol">,</span><span class="normal"> time</span><span class="symbol">);</span>
|
||||
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">mask </span><span class="symbol">&</span><span class="normal"> <a href="../html/gdk3-Windows.html#GDK-CONTROL-MASK:CAPS">GDK_CONTROL_MASK</a></span><span class="symbol">)</span>
|
||||
<span class="normal"> </span><span class="function"><a href="../html/gdk3-Drag-and-Drop.html#gdk-drag-status">gdk_drag_status</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span><span class="normal"> <a href="../html/gdk3-Drag-and-Drop.html#GDK-ACTION-COPY:CAPS">GDK_ACTION_COPY</a></span><span class="symbol">,</span><span class="normal"> time</span><span class="symbol">);</span>
|
||||
<span class="normal"> </span><span class="keyword">else</span>
|
||||
<span class="normal"> </span><span class="function">gdk_drag_status</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span><span class="normal"> GDK_ACTION_MOVE</span><span class="symbol">,</span><span class="normal"> time</span><span class="symbol">);</span>
|
||||
<span class="normal"> </span><span class="function"><a href="../html/gdk3-Drag-and-Drop.html#gdk-drag-status">gdk_drag_status</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span><span class="normal"> <a href="../html/gdk3-Drag-and-Drop.html#GDK-ACTION-MOVE:CAPS">GDK_ACTION_MOVE</a></span><span class="symbol">,</span><span class="normal"> time</span><span class="symbol">);</span>
|
||||
<span class="cbracket">}</span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -504,8 +504,8 @@ accept, or <code class="literal">NULL</code>. Later you can access the list with
|
||||
<a name="gtk-drag-dest-set-proxy"></a><h3>gtk_drag_dest_set_proxy ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_drag_dest_set_proxy (<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *widget</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkWindow</span> *proxy_window</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkDragProtocol</span> protocol</code></em>,
|
||||
<em class="parameter"><code><a href="../html/gdk3-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a> *proxy_window</code></em>,
|
||||
<em class="parameter"><code><a href="../html/gdk3-Drag-and-Drop.html#GdkDragProtocol"><span class="type">GdkDragProtocol</span></a> protocol</code></em>,
|
||||
<em class="parameter"><code><span class="type">gboolean</span> use_coordinates</code></em>);</pre>
|
||||
<div class="warning"><p><code class="literal">gtk_drag_dest_set_proxy</code> has been deprecated since version 3.22 and should not be used in newly-written code.</p></div>
|
||||
<p>Sets this widget as a proxy for drops to another window.</p>
|
||||
@ -575,15 +575,15 @@ notification of drags.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-drag-dest-find-target"></a><h3>gtk_drag_dest_find_target ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">GdkAtom</span>
|
||||
<pre class="programlisting"><a href="../html/gdk3-Properties-and-Atoms.html#GdkAtom"><span class="returnvalue">GdkAtom</span></a>
|
||||
gtk_drag_dest_find_target (<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *widget</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkDragContext</span> *context</code></em>,
|
||||
<em class="parameter"><code><a href="../html/gdk3-Drag-and-Drop.html#GdkDragContext-struct"><span class="type">GdkDragContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Selections.html#GtkTargetList"><span class="type">GtkTargetList</span></a> *target_list</code></em>);</pre>
|
||||
<p>Looks for a match between the supported targets of <em class="parameter"><code>context</code></em>
|
||||
and the
|
||||
<em class="parameter"><code>dest_target_list</code></em>
|
||||
, returning the first matching target, otherwise
|
||||
returning <code class="literal">GDK_NONE</code>. <em class="parameter"><code>dest_target_list</code></em>
|
||||
returning <a href="../html/gdk3-Properties-and-Atoms.html#GDK-NONE:CAPS"><code class="literal">GDK_NONE</code></a>. <em class="parameter"><code>dest_target_list</code></em>
|
||||
should usually be the return
|
||||
value from <a class="link" href="gtk3-Drag-and-Drop.html#gtk-drag-dest-get-target-list" title="gtk_drag_dest_get_target_list ()"><code class="function">gtk_drag_dest_get_target_list()</code></a>, but some widgets may
|
||||
have different valid targets for different parts of the widget; in
|
||||
@ -622,7 +622,7 @@ gtk_drag_dest_get_target_list (<em class="parameter"><code>widget</code></em>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-drag-dest-find-target.returns"></a><h4>Returns</h4>
|
||||
<p>first target that the source offers
|
||||
and the dest can accept, or <code class="literal">GDK_NONE</code>. </p>
|
||||
and the dest can accept, or <a href="../html/gdk3-Properties-and-Atoms.html#GDK-NONE:CAPS"><code class="literal">GDK_NONE</code></a>. </p>
|
||||
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
||||
</div>
|
||||
</div>
|
||||
@ -845,7 +845,7 @@ emit <a class="link" href="GtkWidget.html#GtkWidget-drag-motion" title="The “d
|
||||
<div class="refsect2">
|
||||
<a name="gtk-drag-finish"></a><h3>gtk_drag_finish ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_drag_finish (<em class="parameter"><code><span class="type">GdkDragContext</span> *context</code></em>,
|
||||
gtk_drag_finish (<em class="parameter"><code><a href="../html/gdk3-Drag-and-Drop.html#GdkDragContext-struct"><span class="type">GdkDragContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><span class="type">gboolean</span> success</code></em>,
|
||||
<em class="parameter"><code><span class="type">gboolean</span> del</code></em>,
|
||||
<em class="parameter"><code><span class="type">guint32</span> time_</code></em>);</pre>
|
||||
@ -891,8 +891,8 @@ original data. (This should be <code class="literal">TRUE</code> for a move)</p>
|
||||
<a name="gtk-drag-get-data"></a><h3>gtk_drag_get_data ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_drag_get_data (<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *widget</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkDragContext</span> *context</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkAtom</span> target</code></em>,
|
||||
<em class="parameter"><code><a href="../html/gdk3-Drag-and-Drop.html#GdkDragContext-struct"><span class="type">GdkDragContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><a href="../html/gdk3-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> target</code></em>,
|
||||
<em class="parameter"><code><span class="type">guint32</span> time_</code></em>);</pre>
|
||||
<p>Gets the data associated with a drag. When the data
|
||||
is received or the retrieval fails, GTK+ will emit a
|
||||
@ -944,7 +944,7 @@ or <a class="link" href="GtkWidget.html#GtkWidget-drag-drop" title="The “drag-
|
||||
<div class="refsect2">
|
||||
<a name="gtk-drag-get-source-widget"></a><h3>gtk_drag_get_source_widget ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *
|
||||
gtk_drag_get_source_widget (<em class="parameter"><code><span class="type">GdkDragContext</span> *context</code></em>);</pre>
|
||||
gtk_drag_get_source_widget (<em class="parameter"><code><a href="../html/gdk3-Drag-and-Drop.html#GdkDragContext-struct"><span class="type">GdkDragContext</span></a> *context</code></em>);</pre>
|
||||
<p>Determines the source widget for a drag.</p>
|
||||
<p><span class="annotation">[<acronym title="This is a method"><span class="acronym">method</span></acronym>]</span></p>
|
||||
<div class="refsect3">
|
||||
@ -1022,12 +1022,12 @@ a widget.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-drag-begin"></a><h3>gtk_drag_begin ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">GdkDragContext</span> *
|
||||
<pre class="programlisting"><a href="../html/gdk3-Drag-and-Drop.html#GdkDragContext-struct"><span class="returnvalue">GdkDragContext</span></a> *
|
||||
gtk_drag_begin (<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *widget</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Selections.html#GtkTargetList"><span class="type">GtkTargetList</span></a> *targets</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkDragAction</span> actions</code></em>,
|
||||
<em class="parameter"><code><a href="../html/gdk3-Drag-and-Drop.html#GdkDragAction"><span class="type">GdkDragAction</span></a> actions</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> button</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkEvent</span> *event</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="../html/gdk3-Event-Structures.html#GdkEvent"><span class="type">GdkEvent</span></a> *event</code></em>);</pre>
|
||||
<div class="warning">
|
||||
<p><code class="literal">gtk_drag_begin</code> has been deprecated since version 3.10 and should not be used in newly-written code.</p>
|
||||
<p>Use <a class="link" href="gtk3-Drag-and-Drop.html#gtk-drag-begin-with-coordinates" title="gtk_drag_begin_with_coordinates ()"><code class="function">gtk_drag_begin_with_coordinates()</code></a> instead</p>
|
||||
@ -1083,12 +1083,12 @@ or <code class="literal">NULL</code> if none can be obtained. </p></td>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-drag-begin-with-coordinates"></a><h3>gtk_drag_begin_with_coordinates ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">GdkDragContext</span> *
|
||||
<pre class="programlisting"><a href="../html/gdk3-Drag-and-Drop.html#GdkDragContext-struct"><span class="returnvalue">GdkDragContext</span></a> *
|
||||
gtk_drag_begin_with_coordinates (<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *widget</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Selections.html#GtkTargetList"><span class="type">GtkTargetList</span></a> *targets</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkDragAction</span> actions</code></em>,
|
||||
<em class="parameter"><code><a href="../html/gdk3-Drag-and-Drop.html#GdkDragAction"><span class="type">GdkDragAction</span></a> actions</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> button</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkEvent</span> *event</code></em>,
|
||||
<em class="parameter"><code><a href="../html/gdk3-Event-Structures.html#GdkEvent"><span class="type">GdkEvent</span></a> *event</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> x</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> y</code></em>);</pre>
|
||||
<p>Initiates a drag on the source side. The function only needs to be used
|
||||
@ -1097,7 +1097,7 @@ when the application is starting drags itself, and is not needed when
|
||||
<p>The <em class="parameter"><code>event</code></em>
|
||||
is used to retrieve the timestamp that will be used internally to
|
||||
grab the pointer. If <em class="parameter"><code>event</code></em>
|
||||
is <code class="literal">NULL</code>, then <code class="literal">GDK_CURRENT_TIME</code> will be used.
|
||||
is <code class="literal">NULL</code>, then <a href="../html/gdk3-Events.html#GDK-CURRENT-TIME:CAPS"><code class="literal">GDK_CURRENT_TIME</code></a> will be used.
|
||||
However, you should try to pass a real event in all cases, since that can be
|
||||
used to get information about the drag.</p>
|
||||
<p>Generally there are three cases when you want to start a drag by hand by
|
||||
@ -1113,8 +1113,8 @@ Pass the <em class="parameter"><code>event</code></em>
|
||||
that you have in your <a class="link" href="GtkWidget.html#GtkWidget-motion-notify-event" title="The “motion-notify-event” signal"><span class="type">“motion-notify-event”</span></a> handler.</p></li>
|
||||
<li class="listitem"><p>During a timeout handler, if you want to start a drag after the mouse
|
||||
button is held down for some time. Try to save the last event that you got
|
||||
from the mouse, using <code class="function">gdk_event_copy()</code>, and pass it to this function
|
||||
(remember to free the event with <code class="function">gdk_event_free()</code> when you are done).
|
||||
from the mouse, using <a href="../html/gdk3-Events.html#gdk-event-copy"><code class="function">gdk_event_copy()</code></a>, and pass it to this function
|
||||
(remember to free the event with <a href="../html/gdk3-Events.html#gdk-event-free"><code class="function">gdk_event_free()</code></a> when you are done).
|
||||
If you really cannot pass a real event, pass <code class="literal">NULL</code> instead.</p></li>
|
||||
</ol></div>
|
||||
<p><span class="annotation">[<acronym title="This is a method"><span class="acronym">method</span></acronym>]</span></p>
|
||||
@ -1186,7 +1186,7 @@ the current pointer position</p></td>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-drag-cancel"></a><h3>gtk_drag_cancel ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_drag_cancel (<em class="parameter"><code><span class="type">GdkDragContext</span> *context</code></em>);</pre>
|
||||
gtk_drag_cancel (<em class="parameter"><code><a href="../html/gdk3-Drag-and-Drop.html#GdkDragContext-struct"><span class="type">GdkDragContext</span></a> *context</code></em>);</pre>
|
||||
<p>Cancels an ongoing drag operation on the source side.</p>
|
||||
<p>If you want to be able to cancel a drag operation in this way,
|
||||
you need to keep a pointer to the drag context, either from an
|
||||
@ -1210,7 +1210,7 @@ function does nothing.</p>
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="parameter_name"><p>context</p></td>
|
||||
<td class="parameter_description"><p>a <span class="type">GdkDragContext</span>, as e.g. returned by <a class="link" href="gtk3-Drag-and-Drop.html#gtk-drag-begin-with-coordinates" title="gtk_drag_begin_with_coordinates ()"><code class="function">gtk_drag_begin_with_coordinates()</code></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="../html/gdk3-Drag-and-Drop.html#GdkDragContext-struct"><span class="type">GdkDragContext</span></a>, as e.g. returned by <a class="link" href="gtk3-Drag-and-Drop.html#gtk-drag-begin-with-coordinates" title="gtk_drag_begin_with_coordinates ()"><code class="function">gtk_drag_begin_with_coordinates()</code></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
@ -1221,7 +1221,7 @@ function does nothing.</p>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-drag-set-icon-widget"></a><h3>gtk_drag_set_icon_widget ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_drag_set_icon_widget (<em class="parameter"><code><span class="type">GdkDragContext</span> *context</code></em>,
|
||||
gtk_drag_set_icon_widget (<em class="parameter"><code><a href="../html/gdk3-Drag-and-Drop.html#GdkDragContext-struct"><span class="type">GdkDragContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *widget</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> hot_x</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> hot_y</code></em>);</pre>
|
||||
@ -1270,7 +1270,7 @@ of the hotspot</p></td>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-drag-set-icon-pixbuf"></a><h3>gtk_drag_set_icon_pixbuf ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_drag_set_icon_pixbuf (<em class="parameter"><code><span class="type">GdkDragContext</span> *context</code></em>,
|
||||
gtk_drag_set_icon_pixbuf (<em class="parameter"><code><a href="../html/gdk3-Drag-and-Drop.html#GdkDragContext-struct"><span class="type">GdkDragContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkPixbuf</span> *pixbuf</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> hot_x</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> hot_y</code></em>);</pre>
|
||||
@ -1316,7 +1316,7 @@ of the hotspot</p></td>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-drag-set-icon-stock"></a><h3>gtk_drag_set_icon_stock ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_drag_set_icon_stock (<em class="parameter"><code><span class="type">GdkDragContext</span> *context</code></em>,
|
||||
gtk_drag_set_icon_stock (<em class="parameter"><code><a href="../html/gdk3-Drag-and-Drop.html#GdkDragContext-struct"><span class="type">GdkDragContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *stock_id</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> hot_x</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> hot_y</code></em>);</pre>
|
||||
@ -1363,7 +1363,7 @@ with a context for the source side of a drag)</p></td>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-drag-set-icon-surface"></a><h3>gtk_drag_set_icon_surface ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_drag_set_icon_surface (<em class="parameter"><code><span class="type">GdkDragContext</span> *context</code></em>,
|
||||
gtk_drag_set_icon_surface (<em class="parameter"><code><a href="../html/gdk3-Drag-and-Drop.html#GdkDragContext-struct"><span class="type">GdkDragContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><span class="type">cairo_surface_t</span> *surface</code></em>);</pre>
|
||||
<p>Sets <em class="parameter"><code>surface</code></em>
|
||||
as the icon for a given drag. GTK+ retains
|
||||
@ -1402,7 +1402,7 @@ with a context for the source side of a drag)</p></td>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-drag-set-icon-name"></a><h3>gtk_drag_set_icon_name ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_drag_set_icon_name (<em class="parameter"><code><span class="type">GdkDragContext</span> *context</code></em>,
|
||||
gtk_drag_set_icon_name (<em class="parameter"><code><a href="../html/gdk3-Drag-and-Drop.html#GdkDragContext-struct"><span class="type">GdkDragContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *icon_name</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> hot_x</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> hot_y</code></em>);</pre>
|
||||
@ -1452,7 +1452,7 @@ with a context for the source side of a drag)</p></td>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-drag-set-icon-gicon"></a><h3>gtk_drag_set_icon_gicon ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_drag_set_icon_gicon (<em class="parameter"><code><span class="type">GdkDragContext</span> *context</code></em>,
|
||||
gtk_drag_set_icon_gicon (<em class="parameter"><code><a href="../html/gdk3-Drag-and-Drop.html#GdkDragContext-struct"><span class="type">GdkDragContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><span class="type">GIcon</span> *icon</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> hot_x</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> hot_y</code></em>);</pre>
|
||||
@ -1499,7 +1499,7 @@ with a context for the source side of a drag)</p></td>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-drag-set-icon-default"></a><h3>gtk_drag_set_icon_default ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_drag_set_icon_default (<em class="parameter"><code><span class="type">GdkDragContext</span> *context</code></em>);</pre>
|
||||
gtk_drag_set_icon_default (<em class="parameter"><code><a href="../html/gdk3-Drag-and-Drop.html#GdkDragContext-struct"><span class="type">GdkDragContext</span></a> *context</code></em>);</pre>
|
||||
<p>Sets the icon for a particular drag to the default
|
||||
icon.</p>
|
||||
<p><span class="annotation">[<acronym title="This is a method"><span class="acronym">method</span></acronym>]</span></p>
|
||||
@ -1584,10 +1584,10 @@ should trigger the beginning of a drag-and-drop operation.</p>
|
||||
<a name="gtk-drag-source-set"></a><h3>gtk_drag_source_set ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_drag_source_set (<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *widget</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkModifierType</span> start_button_mask</code></em>,
|
||||
<em class="parameter"><code><a href="../html/gdk3-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> start_button_mask</code></em>,
|
||||
<em class="parameter"><code>const <a class="link" href="gtk3-Selections.html#GtkTargetEntry" title="struct GtkTargetEntry"><span class="type">GtkTargetEntry</span></a> *targets</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> n_targets</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkDragAction</span> actions</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="../html/gdk3-Drag-and-Drop.html#GdkDragAction"><span class="type">GdkDragAction</span></a> actions</code></em>);</pre>
|
||||
<p>Sets up a widget so that GTK+ will start a drag operation when the user
|
||||
clicks and drags on the widget. The widget must have a window.</p>
|
||||
<p><span class="annotation">[<acronym title="This is a method"><span class="acronym">method</span></acronym>]</span></p>
|
||||
@ -1965,7 +1965,7 @@ of the user for a drag destination site.</p>
|
||||
<p>If set for a widget, GTK+, during a drag over this
|
||||
widget will check if the drag matches this widget’s list of possible targets
|
||||
and actions.
|
||||
GTK+ will then call <code class="function">gdk_drag_status()</code> as appropriate.</p>
|
||||
GTK+ will then call <a href="../html/gdk3-Drag-and-Drop.html#gdk-drag-status"><code class="function">gdk_drag_status()</code></a> as appropriate.</p>
|
||||
</td>
|
||||
<td class="enum_member_annotations"> </td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user