{-# LANGUAGE OverloadedStrings #-}
-- | Build time configuration used during code generation.
module GI.GdkPixbuf.Config ( overrides ) where

import qualified Data.Text as T
import Data.Text (Text)

-- | Overrides used when generating these bindings.
overrides :: Text
overrides :: Text
overrides = [Text] -> Text
T.unlines
 [ Text
"namespace GdkPixbuf"
 , Text
""
 , Text
"# Not supported on Windows."
 , Text
"if windows"
 , Text
"   set-attr GdkPixbuf/Pixbuf/save c:identifier gdk_pixbuf_save_utf8"
 , Text
"   # See https://github.com/haskell-gi/haskell-gi/issues/63"
 , Text
"   if pkg-config-version gdk-pixbuf-2.0 < 2.36"
 , Text
"      set-attr GdkPixbuf/Pixbuf/new_from_file c:identifier gdk_pixbuf_new_from_file_utf8"
 , Text
"      set-attr GdkPixbuf/Pixbuf/new_from_file_at_scale c:identifier gdk_pixbuf_new_from_file_at_scale_utf8"
 , Text
"      set-attr GdkPixbuf/Pixbuf/new_from_file_at_size c:identifier gdk_pixbuf_new_from_file_at_size_utf8"
 , Text
"      set-attr GdkPixbuf/Pixbuf/savev c:identifier gdk_pixbuf_savev_utf8"
 , Text
"      set-attr GdkPixbuf/PixbufAnimation/new_from_file c:identifier gdk_pixbuf_animation_new_from_file_utf8"
 , Text
"   endif"
 , Text
"endif"
 , Text
""
 , Text
"# The return value is nullable, but not marked as such, see"
 , Text
"# https://github.com/haskell-gi/haskell-gi/issues/210"
 , Text
"set-attr GdkPixbuf/PixbufLoader/get_pixbuf/@return-value nullable 1"
 , Text
""
 , Text
"# See https://github.com/haskell-gi/haskell-gi/issues/16"
 , Text
"set-attr GdkPixbuf/PixbufAnimation/new_from_file/@parameters/filename/@type name filename"
 , Text
"set-attr GdkPixbuf/PixbufAnimation/new_from_file_utf8/@parameters/filename/@type name filename"
 , Text
"set-attr GdkPixbuf/Pixbuf/new_from_file/@parameters/filename/@type name filename"
 , Text
"set-attr GdkPixbuf/Pixbuf/new_from_file_utf8/@parameters/filename/@type name filename"
 , Text
"set-attr GdkPixbuf/Pixbuf/new_from_file_at_size/@parameters/filename/@type name filename"
 , Text
"set-attr GdkPixbuf/Pixbuf/new_from_file_at_size_utf8/@parameters/filename/@type name filename"
 , Text
"set-attr GdkPixbuf/Pixbuf/new_from_file_at_scale/@parameters/filename/@type name filename"
 , Text
"set-attr GdkPixbuf/Pixbuf/new_from_file_at_scale_utf8/@parameters/filename/@type name filename"
 , Text
"set-attr GdkPixbuf/Pixbuf/get_file_info/@parameters/filename/@type name filename"
 , Text
"set-attr GdkPixbuf/Pixbuf/get_file_info_async/@parameters/filename/@type name filename"
 , Text
"set-attr GdkPixbuf/Pixbuf/savev/@parameters/filename/@type name filename"
 , Text
""
 , Text
"# Missing from the introspection data, see"
 , Text
"# https://github.com/haskell-gi/haskell-gi/issues/127"
 , Text
"set-attr GdkPixbuf/Pixbuf/new/@return-value nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/copy/@return-value nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/scale_simple/@return-value nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/composite_color_simple/@return-value nullable 1"
 , Text
""
 , Text
"# Generated from gdk-pixbuf 2.34.0 with xsltproc Nullable.xslt GdkPixbuf-2.0.gir"
 , Text
"set-attr GdkPixbuf/Pixbuf/new_from_data/@parameters/destroy_fn nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/new_from_data/@parameters/destroy_fn_data nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/new_from_stream/@parameters/cancellable nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/new_from_stream_at_scale/@parameters/cancellable nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/get_file_info/@return-value nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/get_file_info_async/@parameters/cancellable nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/get_file_info_async/@parameters/callback nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/get_file_info_async/@parameters/user_data nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/new_from_stream_async/@parameters/cancellable nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/new_from_stream_async/@parameters/callback nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/new_from_stream_async/@parameters/user_data nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/new_from_stream_at_scale_async/@parameters/cancellable nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/new_from_stream_at_scale_async/@parameters/callback nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/new_from_stream_at_scale_async/@parameters/user_data nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/flip/@return-value nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/rotate_simple/@return-value nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/save/@parameters/error nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/save_to_buffer/@parameters/error nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/save_to_callback/@parameters/user_data nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/save_to_callback/@parameters/error nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/save_to_callbackv/@parameters/user_data nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/save_to_stream/@parameters/cancellable nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/save_to_stream/@parameters/error nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/save_to_stream_async/@parameters/cancellable nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/save_to_stream_async/@parameters/callback nullable 1"
 , Text
"set-attr GdkPixbuf/Pixbuf/save_to_stream_async/@parameters/user_data nullable 1"
 , Text
"set-attr GdkPixbuf/PixbufAnimation/new_from_stream/@parameters/cancellable nullable 1"
 , Text
"set-attr GdkPixbuf/PixbufAnimation/new_from_stream_async/@parameters/cancellable nullable 1"
 , Text
"set-attr GdkPixbuf/PixbufAnimation/new_from_stream_async/@parameters/callback nullable 1"
 , Text
"set-attr GdkPixbuf/PixbufAnimation/new_from_stream_async/@parameters/user_data nullable 1"
 , Text
"set-attr GdkPixbuf/PixbufAnimation/get_iter/@parameters/start_time nullable 1"
 , Text
"set-attr GdkPixbuf/PixbufAnimationIter/advance/@parameters/current_time nullable 1"
 , Text
"set-attr GdkPixbuf/PixbufDestroyNotify/@parameters/data nullable 1"
 , Text
"set-attr GdkPixbuf/PixbufLoader/get_format/@return-value nullable 1"
 , Text
"set-attr GdkPixbuf/PixbufSaveFunc/@parameters/data nullable 1"
 , Text
"set-attr GdkPixbuf/Pixdata/from_pixbuf/@return-value nullable 1"]