{{newin (日本語)|[[0.9.0 (日本語)|0.9.0]]|090|type=関数}}
クリップボードへテキストを出力します。
== 関数 ==
=== 概要 ===
<source lang="lua">
love.system.setClipboardText( text )
</source>
=== 引数 ===
{{param (日本語)|string|text|システムのクリップボードへ保存する新規テキスト。}}
=== 返値 ===
ありません。
== 用例 ==
コピーペーストバッファへオペレーティング・システムのアゴニスティック・キーバインディングを設定します。
<source lang="lua">
local buffer

function love.draw()

  love.graphics.print(
    "OS: "..love.system.getOS().."\n"..
    "Local buffer: "..tostring(buffer).."\n"..
    "System buffer: "..tostring(love.system.getClipboardText()))

end

function love.keypressed(key)

  local osString = love.system.getOS()

  local control

  if osString == "OS X" then
    control = love.keyboard.isDown("lgui","rgui")
  elseif osString == "Windows" or osString == "Linux" then
    control = love.keyboard.isDown("lctrl","rctrl")
  end

  if control then
    if key == "c" then
      if buffer then love.system.setClipboardText(buffer) end
    end
    if key == "v" then
      buffer = love.system.getClipboardText()
    end
  end

end
</source>

== 関連 ==
* [[parent::love.system (日本語)]]
* [[love.system.getClipboardText (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=クリップボードへテキストを出力します。}}
== そのほかの言語 ==
{{i18n (日本語)|love.system.setClipboardText}}