OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::Clipboard Namespace Reference

クリップボードに関する機能を提供します。 More...

Functions

bool HasChanged ()
 クリップボードの内容がユーザによって変更されたかを返します。 More...
 
bool GetText (String &text)
 クリップボードにあるテキストを取得します。 More...
 
bool GetImage (Image &image)
 クリップボードにある画像を取得します。 More...
 
bool GetFilePaths (Array< FilePath > &paths)
 クリップボードにあるファイルパスを取得します。 More...
 
void SetText (const String &text)
 クリップボードにテキストを設定します。 More...
 
void SetImage (const Image &image)
 クリップボードに画像を設定します。 More...
 
void Clear ()
 クリップボードの内容を消去します。 More...
 

Detailed Description

クリップボードに関する機能を提供します。

Function Documentation

◆ Clear()

void s3d::Clipboard::Clear ( )

クリップボードの内容を消去します。

◆ GetFilePaths()

bool s3d::Clipboard::GetFilePaths ( Array< FilePath > &  paths)

クリップボードにあるファイルパスを取得します。

Parameters
pathsファイルパスの格納先
Returns
ァイルパスの取得に成功した場合 true, それ以外の場合は false

◆ GetImage()

bool s3d::Clipboard::GetImage ( Image image)

クリップボードにある画像を取得します。

Parameters
image画像の格納先
Returns
画像の取得に成功した場合 true, それ以外の場合は false

◆ GetText()

bool s3d::Clipboard::GetText ( String text)

クリップボードにあるテキストを取得します。

Parameters
textテキストの格納先
Returns
テキストの取得に成功した場合 true, それ以外の場合は false

◆ HasChanged()

bool s3d::Clipboard::HasChanged ( )

クリップボードの内容がユーザによって変更されたかを返します。

Returns
クリップボードの内容がユーザによって変更された場合 true, それ以外の場合は false

◆ SetImage()

void s3d::Clipboard::SetImage ( const Image image)

クリップボードに画像を設定します。

Parameters
image画像

◆ SetText()

void s3d::Clipboard::SetText ( const String text)

クリップボードにテキストを設定します。

Parameters
textテキスト