目次 - SDL 3.0 API(機能別) - ディスプレイとウィンドウ - SDL_GetDisplayForPoint

SDL_GetDisplayForPoint

点が含まれるディスプレイを得る

ヘッダ

SDL3/SDL_video.h

構文

SDL_DisplayID SDL_GetDisplayForPoint(const SDL_Point *point);

引数

const SDL_Point *point問い合わせる点

戻り値

(SDL_DisplayID) pointが含まれるディスプレイのインスタンスIDを戻す. 失敗のとき0を戻す. SDL_GetError()を呼んで詳細を知ることができる.

スレッドセーフ

この関数を呼べるのはメインスレッドのみである.

バージョン

SDL 3.2.0以降

関連項目

SDL Wikiへのリンク

SDL_GetDisplayForPoint - SDL Wiki