2005-04-11 Mike Kestner <mkestner@novell.com>
* gdk/Pixbuf.custom : fix out params on RenderPixmapAndMask* methods. svn path=/trunk/gtk-sharp/; revision=42817
This commit is contained in:
parent
b8126ce3af
commit
33fbb8c45d
4 changed files with 57 additions and 38 deletions
|
@ -1,3 +1,7 @@
|
|||
2005-04-11 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* gdk/Pixbuf.custom : fix out params on RenderPixmapAndMask* methods.
|
||||
|
||||
2005-04-11 Dan Winship <danw@novell.com>
|
||||
|
||||
* generator/ClassBase.cs (ParseImplements): record both managed
|
||||
|
|
|
@ -1460,75 +1460,68 @@ Gdk.Pixbuf pb = new Gdk.Pixbuf(memorystream);
|
|||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="RenderPixmapAndMask">
|
||||
<MemberSignature Language="C#" Value="public void RenderPixmapAndMask (Gdk.Pixmap pixmap_return, Gdk.Pixmap mask_return, int alpha_threshold);" />
|
||||
<MemberSignature Language="C#" Value="public void RenderPixmapAndMask (out Gdk.Pixmap pixmap_return, out Gdk.Pixmap mask_return, int alpha_threshold);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="pixmap_return" Type="Gdk.Pixmap" />
|
||||
<Parameter Name="mask_return" Type="Gdk.Pixmap" />
|
||||
<Parameter Name="pixmap_return" Type="Gdk.Pixmap&" RefType="out" />
|
||||
<Parameter Name="mask_return" Type="Gdk.Pixmap&" RefType="out" />
|
||||
<Parameter Name="alpha_threshold" Type="System.Int32" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>
|
||||
Creates a pixmap and a mask bitmap which are returned in the
|
||||
<paramref name="pixmap_return" /> and <paramref name="mask_return" />
|
||||
arguments, respectively, and renders a pixbuf and its
|
||||
corresponding thresholded alpha mask to them. This is merely a convenience
|
||||
function; applications that need to render pixbufs with dither offsets or to
|
||||
given drawables should use <see cref="M:Gdk.Pixbuf.RenderToDrawableAlpha" />
|
||||
or <see cref="M:Gdk.Pixbuf.RenderToDrawable" /> and
|
||||
<see cref="M:Gdk.Pixbuf.RenderThresholdAlpha" />.
|
||||
</summary>
|
||||
<summary>Creates pixmap and mask bitmaps for a given alpha threshold.</summary>
|
||||
<param name="pixmap_return">a <see cref="T:Gdk.Pixmap" /></param>
|
||||
<param name="mask_return">a <see cref="T:Gdk.Pixmap" /></param>
|
||||
<param name="alpha_threshold">a <see cref="T:System.Int32" />, threshold value for opacity.</param>
|
||||
<remarks>
|
||||
<para>
|
||||
This is merely a convenience function; applications that need to render pixbufs with dither offsets or to
|
||||
given drawables should use <see cref="M:Gdk.Pixbuf.RenderToDrawableAlpha" />
|
||||
or <see cref="M:Gdk.Pixbuf.RenderToDrawable" /> and <see cref="M:Gdk.Pixbuf.RenderThresholdAlpha" />.
|
||||
</para>
|
||||
<para>
|
||||
The pixmap that is created is created for the colormap returned
|
||||
by <see cref="M:Gdk.Rgb.GetColormap" />. You normally will want to instead use
|
||||
the actual colormap for a widget, and use
|
||||
<see cref="M:Gdk.Pixbuf.RenderPixmapAndMaskForColormap" />,
|
||||
If the pixbuf does not have an alpha channel, then <paramref name="mask_return" /> will be set
|
||||
to <see langword="null" />.
|
||||
</para>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="RenderPixmapAndMaskForColormap">
|
||||
<MemberSignature Language="C#" Value="public void RenderPixmapAndMaskForColormap (Gdk.Colormap colormap, Gdk.Pixmap pixmap_return, Gdk.Pixmap mask_return, int alpha_threshold);" />
|
||||
<MemberSignature Language="C#" Value="public void RenderPixmapAndMaskForColormap (Gdk.Colormap colormap, out Gdk.Pixmap pixmap_return, out Gdk.Pixmap mask_return, int alpha_threshold);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="colormap" Type="Gdk.Colormap" />
|
||||
<Parameter Name="pixmap_return" Type="Gdk.Pixmap" />
|
||||
<Parameter Name="mask_return" Type="Gdk.Pixmap" />
|
||||
<Parameter Name="pixmap_return" Type="Gdk.Pixmap&" RefType="out" />
|
||||
<Parameter Name="mask_return" Type="Gdk.Pixmap&" RefType="out" />
|
||||
<Parameter Name="alpha_threshold" Type="System.Int32" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>
|
||||
Creates a pixmap and a mask bitmap which are returned in the
|
||||
<paramref name="pixmap_return" /> and <paramref name="mask_return" />
|
||||
arguments, respectively, and renders a pixbuf and its
|
||||
corresponding thresholded alpha mask to them.
|
||||
This is merely a convenience
|
||||
function; applications that need to render pixbufs with dither offsets or to
|
||||
given drawables should use <see cref="M:Gdk.Pixbuf.RenderToDrawableAlpha" />
|
||||
or <see cref="M:Gdk.Pixbuf.RenderToDrawable" /> and
|
||||
<see cref="M:Gdk.Pixbuf.RenderThresholdAlpha" />.
|
||||
</summary>
|
||||
<summary>Creates pixmap and mask bitmaps for a given alpha threshold using a specified colormap.</summary>
|
||||
<param name="colormap">a <see cref="T:Gdk.Colormap" /></param>
|
||||
<param name="pixmap_return">a <see cref="T:Gdk.Pixmap" /></param>
|
||||
<param name="mask_return">a <see cref="T:Gdk.Pixmap" /></param>
|
||||
<param name="alpha_threshold">a <see cref="T:System.Int32" /></param>
|
||||
<param name="alpha_threshold">a <see cref="T:System.Int32" />, threshold value for opacity.</param>
|
||||
<remarks>
|
||||
<para>
|
||||
This is merely a convenience function; applications that need to render pixbufs with dither offsets or to
|
||||
given drawables should use <see cref="M:Gdk.Pixbuf.RenderToDrawableAlpha" /> or <see cref="M:Gdk.Pixbuf.RenderToDrawable" /> and <see cref="M:Gdk.Pixbuf.RenderThresholdAlpha" />.
|
||||
</para>
|
||||
<para>
|
||||
The pixmap that is created uses the <see cref="T:Gdk.Colormap" /> specified by <paramref name="colormap" />.
|
||||
This colormap must match the colormap of the window where the pixmap
|
||||
will eventually be used or an error will result.
|
||||
This colormap must match the colormap of the window where the pixmap will eventually be used or an error will result.
|
||||
If the pixbuf does not have an alpha channel, then <paramref name="mask_return" /> will be set
|
||||
to <see langword="null" />.
|
||||
</remarks>
|
||||
</para>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName=".ctor">
|
||||
|
|
|
@ -281,5 +281,19 @@
|
|||
<remarks>Returns the native <see cref="T:GLib.GType" /> value for <see cref="T:Gtk.TreePath" />.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="public TreePath (int [] indices);" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
<ReturnValue />
|
||||
<Parameters>
|
||||
<Parameter Name="indices" Type="System.Int32[]" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Creates a path for a set of indices.</summary>
|
||||
<param name="indices">a <see cref="T:System.Int32" /></param>
|
||||
<returns>a <see cref="T:Gtk.TreePath" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
||||
</Type>
|
||||
|
|
|
@ -58,17 +58,25 @@
|
|||
}
|
||||
|
||||
[DllImport("libgdk-win32-2.0-0.dll")]
|
||||
static extern void gdk_pixbuf_render_pixmap_and_mask(IntPtr raw, IntPtr pixmap_return, IntPtr mask_return, int alpha_threshold);
|
||||
static extern void gdk_pixbuf_render_pixmap_and_mask (IntPtr raw, out IntPtr pixmap_return, out IntPtr mask_return, int alpha_threshold);
|
||||
|
||||
public void RenderPixmapAndMask(Gdk.Pixmap pixmap_return, Gdk.Pixmap mask_return, int alpha_threshold) {
|
||||
gdk_pixbuf_render_pixmap_and_mask(Handle, pixmap_return.Handle, mask_return.Handle, alpha_threshold);
|
||||
public void RenderPixmapAndMask (out Pixmap pixmap_return, out Pixmap mask_return, int alpha_threshold)
|
||||
{
|
||||
IntPtr mask_handle, pixmap_handle;
|
||||
gdk_pixbuf_render_pixmap_and_mask (Handle, out pixmap_handle, out mask_handle, alpha_threshold);
|
||||
pixmap_return = GLib.Object.GetObject (pixmap_handle) as Pixmap;
|
||||
mask_return = GLib.Object.GetObject (mask_handle) as Pixmap;
|
||||
}
|
||||
|
||||
[DllImport("libgdk-win32-2.0-0.dll")]
|
||||
static extern void gdk_pixbuf_render_pixmap_and_mask_for_colormap(IntPtr raw, IntPtr colormap, IntPtr pixmap_return, IntPtr mask_return, int alpha_threshold);
|
||||
static extern void gdk_pixbuf_render_pixmap_and_mask_for_colormap (IntPtr raw, IntPtr colormap, out IntPtr pixmap_return, out IntPtr mask_return, int alpha_threshold);
|
||||
|
||||
public void RenderPixmapAndMaskForColormap(Gdk.Colormap colormap, Gdk.Pixmap pixmap_return, Gdk.Pixmap mask_return, int alpha_threshold) {
|
||||
gdk_pixbuf_render_pixmap_and_mask_for_colormap(Handle, colormap.Handle, pixmap_return.Handle, mask_return.Handle, alpha_threshold);
|
||||
public void RenderPixmapAndMaskForColormap (Colormap colormap, out Pixmap pixmap_return, out Pixmap mask_return, int alpha_threshold)
|
||||
{
|
||||
IntPtr mask_handle, pixmap_handle;
|
||||
gdk_pixbuf_render_pixmap_and_mask_for_colormap (Handle, colormap == null ? IntPtr.Zero : colormap.Handle, out pixmap_handle, out mask_handle, alpha_threshold);
|
||||
pixmap_return = GLib.Object.GetObject (pixmap_handle) as Pixmap;
|
||||
mask_return = GLib.Object.GetObject (mask_handle) as Pixmap;
|
||||
}
|
||||
|
||||
[DllImport("libgdk-win32-2.0-0.dll")]
|
||||
|
|
Loading…
Reference in a new issue