/+ + Copyright 2022 – 2024 Aya Partridge + Copyright 2018 - 2022 Michael D. Parker + Distributed under the Boost Software License, Version 1.0. + (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +/ module sdl.clipboard; import bindbc.sdl.config; import bindbc.sdl.codegen; import sdl.stdinc: SDL_bool; mixin(joinFnBinds((){ FnBind[] ret = [ {q{int}, q{SDL_SetClipboardText}, q{const(char)* text}}, {q{char*}, q{SDL_GetClipboardText}, q{}}, {q{SDL_bool}, q{SDL_HasClipboardText}, q{}}, ]; static if(sdlSupport >= SDLSupport.v2_26){ FnBind[] add = [ {q{int}, q{SDL_SetPrimarySelectionText}, q{const(char)* text}}, {q{char*}, q{SDL_GetPrimarySelectionText}, q{}}, {q{SDL_bool}, q{SDL_HasPrimarySelectionText}, q{}}, ]; ret ~= add; } return ret; }()));