summaryrefslogtreecommitdiff
path: root/gdk/gdktexture.h
Commit message (Collapse)AuthorAgeFilesLines
* Minimize the amount of inclusions in public headersEmmanuele Bassi2023-05-091-2/+0
| | | | | | Public headers should mainly include gdktypes.h, which already include the symbol visibility and versioning macros; we can also modify gdktypes.h to include the enumerations.
* Drop the gdk/gdkversionmacros.h headerMatthias Clasen2023-05-091-1/+1
| | | | | It was just added to avoid touching too many files. Touching them now.
* Convert headers to #pragma onceMatthias Clasen2023-03-311-3/+1
| | | | The conversion was done by guard2one.
* texture: Export gdk_texture_get_format()Benjamin Otte2023-02-151-0/+3
| | | | | | | | | | The API docs outline why quite well. This should make it possible to do saving of textures to image files without any private API with the same featureset that GTK uses. Also remove the gsktextureprivate.h include where gdk_texture_get_format() was the only reason for it.
* gdk: Dissolve gdk-autocleanup.hMatthias Clasen2022-09-231-2/+2
| | | | | | | | | Move the autocleanup declarations into their respective headers. While we are at it, correct the autocleanup declaration for GdkEvent to use gdk_event_unref, not g_object_unref. Oops
* gdk: drop removed method from the headerBilal Elmoussaoui2021-12-091-4/+0
|
* texture: Rework error enumBenjamin Otte2021-09-171-4/+9
| | | | | | | | | | | 1. Change INSUFFICIENT_MEMORY to TOO_LARGE GTK crashes on insufficient memory, we don't emit GErrors. 2. Split UNSUPPORTED into UNSUPPORTED_CONTENT and UNSUPPORTED_FORMAT So we know if you need to find an RPM with a loader or curse and the weird file. 3. Translate error messages, they are meant for end users.
* texture: Add gdk_texture_save_to_tiff_bytes()Benjamin Otte2021-09-171-0/+2
|
* Add gdk_texture_save_to_tiffMatthias Clasen2021-09-171-0/+3
| | | | | | This is a companion to gdk_texture_save_to_png, using the tiff format, which will let us avoid lossy conversion of HDR data, since we can store floating point data.
* Add gdk_texture_save_to_png_bytesMatthias Clasen2021-09-171-0/+2
| | | | | | Just expose what we already have available internally, so e.g. tests can use it without static linking.
* texture: Add error enumMatthias Clasen2021-09-171-0/+19
|
* API: Add gdk_texture_new_from_filename()Benjamin Otte2021-09-161-0/+3
| | | | | There are quite a few places where we can make use of it, in particular in the testsuite and icontheme.
* Add gdk_texture_new_from_bytesMatthias Clasen2021-09-151-0/+3
| | | | | Add this new api, and make gdk_texture_new_from_file a wrapper around it.
* texture: Add gdk_texture_download_float()Benjamin Otte2021-09-121-0/+4
|
* Add pure and const annotations to various functionsTimm Bäder2020-01-261-2/+2
|
* Use a single compilation symbolEmmanuele Bassi2019-11-271-1/+1
| | | | | | | | | | | | We use a compilation symbol in our build to allow the inclusion of specific headers while building GTK, to avoid the need to include only the global header. Each namespace has its own compilation symbol because we used to have different libraries, and strict symbol visibility between libraries; now that we have a single library, and we can use private symbols across namespaces while building GTK, we should have a single compilation symbol, and simplify the build rules.
* texture: Add gdk_texture_save_to_png()Benjamin Otte2018-04-121-0/+3
| | | | | It's needed for debugging Timm's code, so better have it here than hidden in my random-patch vault.
* gdk: Remove gdk_texture_new_from_data()Benjamin Otte2018-03-181-5/+0
| | | | Use gdk_memory_texture_new() instead.
* gdk: Split out GL textureBenjamin Otte2018-03-071-12/+0
| | | | | | | Put GdkGLTexture into its own file and rename the API to gdk_gl_texture_foo() instead of gdk_texture_foo_for_gl(). Apart from naming, no actual code changes.
* The big versioning cleanupMatthias Clasen2018-02-061-10/+10
| | | | | | | Remove all the old 2.x and 3.x version annotations. GTK+ 4 is a new start, and from the perspective of a GTK+ 4 developer all these APIs have been around since the beginning.
* texture: Make the texture id a guintBenjamin Otte2018-02-021-1/+1
| | | | Texture IDs are unsigned, so treat them like that.
* Add a way to release GL resourcesMatthias Clasen2018-01-171-0/+3
| | | | | | | | | | The inspector may hold on to render nodes and textures beyond the lifetime of the widget (and thus the GL resources). To handle this situation, allow the widget to explicitly release the GL resources, and make the texture available on the clent-side as a cairo surface. This lets the recorder still show the content after the widget is gone.
* gdk: Add a gl texture implementationMatthias Clasen2018-01-171-0/+9
| | | | | This will be used to pass a GL textures from the application (or rather, GtkGLArea) down to the GSK GL renderer.
* Fix some typosMatthias Clasen2017-11-041-1/+1
| | | | Correct function names in the docs, etc.
* texture: Add gdk_texture_new_from_file()Benjamin Otte2017-11-041-7/+12
| | | | | | | and gdk_texture_new_from_resource(). While doing set, turn all GDK_AVAILABLE_IN_3_90 into GDK_AVAILABLE_IN_3_94 because that's now true after the renaming.
* GskTexture => GdkTextureBenjamin Otte2017-11-041-0/+65
We want this thing to replace GdkPixbuf, so it has to live in GDK.