SDXFrameWork  0.09
SDXFrameWork
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Static Public Member Functions | Friends | List of all members
SDX::Window Class Reference

ウィンドウを表すクラス. More...

#include <Window.h>

Static Public Member Functions

static WindowSingle ()
 
static bool SetFullScreen (bool フルスクリーンフラグ)
 スクリーンモードを設定する. More...
 
static bool SetTitle (const char *タイトル名)
 ウィンドウタイトルを設定. More...
 
static void SetSize (int 幅, int 高さ)
 ウィンドウサイズの設定. More...
 
static int GetWidth ()
 ウィンドウ幅の取得. More...
 
static int GetHeight ()
 ウィンドウ高さの取得. More...
 

Friends

class System
 
class Mouse
 
class Gesture
 
class Touch
 

Detailed Description

ウィンドウを表すクラス.

//©SDXFramework http://sourceforge.jp/projects/dxframework/
//🍣初期化を行い何かキーを押すと終了する
bool SampleWindow()
{
using namespace SDX;
System::Initialise("sampleWindow", 800, 450);
while (System::Update())
{
Drawing::String({ 100, 100 }, Color::White, "Windowクラスのテスト");
if (Input::key._1.on) Window::SetTitle("ウィンドウタイトルを変えたよ!");//ウィンドウタイトルを変更
if (Input::key._2.on) Window::SetSize(300, 200);//ウィンドウの大きさを変更
if (Input::key._3.on) Window::SetFullScreen(true);
if (Input::key._4.on) Window::SetFullScreen(false);
if (Input::key.Return.on) break;//Enterで終了
}
return true;
}

Member Function Documentation

static bool SDX::Window::SetFullScreen ( bool  フルスクリーンフラグ)
static

スクリーンモードを設定する.

static bool SDX::Window::SetTitle ( const char *  タイトル名)
static

ウィンドウタイトルを設定.

static void SDX::Window::SetSize ( int  ,
int  高さ 
)
static

ウィンドウサイズの設定.

static int SDX::Window::GetWidth ( )
static

ウィンドウ幅の取得.

static int SDX::Window::GetHeight ( )
static

ウィンドウ高さの取得.