1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
Graphics Contexts
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
1999-09-22 21:30:57 +00:00
|
|
|
provides access to a shared pool of #GdkGC objects.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
1999-09-22 21:30:57 +00:00
|
|
|
These functions provide access to a shared pool of #GdkGC objects.
|
|
|
|
When a new #GdkGC is needed, gtk_gc_get() is called with the required depth,
|
|
|
|
colormap and #GdkGCValues. If a #GdkGC with the required properties already
|
|
|
|
exists then that is returned. If not, a new #GdkGC is created.
|
2002-01-09 00:34:21 +00:00
|
|
|
When the #GdkGC is no longer needed, gtk_gc_release() should be called.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_gc_get ##### -->
|
|
|
|
<para>
|
1999-09-22 21:30:57 +00:00
|
|
|
Gets a #GdkGC with the given depth, colormap and #GdkGCValues.
|
|
|
|
If a #GdkGC with the given properties already exists then it is returned,
|
|
|
|
otherwise a new #GdkGC is created.
|
|
|
|
The returned #GdkGC should be released with gtk_gc_release() when it is no
|
|
|
|
longer needed.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
1999-09-22 21:30:57 +00:00
|
|
|
@depth: the depth of the #GdkGC to create.
|
|
|
|
@colormap: the #GdkColormap (FIXME: I don't know why this is needed).
|
|
|
|
@values: a #GdkGCValues struct containing settings for the #GdkGC.
|
|
|
|
@values_mask: a set of flags indicating which of the fields in @values has
|
|
|
|
been set.
|
|
|
|
@Returns: a #GdkGC.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_gc_release ##### -->
|
|
|
|
<para>
|
1999-09-22 21:30:57 +00:00
|
|
|
Releases a #GdkGC allocated using gtk_gc_get().
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
1999-09-22 21:30:57 +00:00
|
|
|
@gc: a #GdkGC.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|