ウィンドウを表すクラス.  
 More...
#include <SubWindow.h>
|  | 
| class | System | 
|  | 
| class | Mouse | 
|  | 
| class | Gesture | 
|  | 
| class | Touch | 
|  | 
| class | Window | 
|  | 
| class | Renderer | 
|  | 
ウィンドウを表すクラス. 
Windowに無くてSubWindowにある関数は[SubWindow専用]と表記. 
- Todo:
- 複数ウィンドウの動作確認は不完全 
#include <SDXFramework.h>
bool SampleWindow()
{
    using namespace SDX;
    
    
    {
        sub.SetIcon("data/icon009.png");
        if (
Input::key._6.on){ sub.SetTitle(
"Subタイトルを変えたよ!"); }
 
        if (
Input::key._8.on) { sub.SetFullscreen(
true); }
 
        if (
Input::key._9.on) { sub.SetFullscreen(
false); }
 
        if (
Input::key._0.on) { sub.SetIcon(
"icon.png"); }
 
        sub.Update();
    }
    return true;
}
  
  
  | 
        
          | SDX::SubWindow::SubWindow | ( | const char * | ウィンドウ名, |  
          |  |  | int | 幅, |  
          |  |  | int | 高さ, |  
          |  |  | bool | フルスクリーンフラグ = false |  
          |  | ) |  |  |  | inline | 
 
 
  
  | 
        
          | SDL_Window* SDX::SubWindow::GetHandle | ( |  | ) |  |  | inline | 
 
Windowハンドルの取得. 
[SubWindow専用] 
 
 
  
  | 
        
          | Renderer& SDX::SubWindow::GetRenderer | ( |  | ) |  |  | inline | 
 
対応Rendererの取得. 
[SubWindow専用] 
 
 
  
  | 
        
          | bool SDX::SubWindow::Create | ( | const char * | ウィンドウ名, |  
          |  |  | int | 幅, |  
          |  |  | int | 高さ, |  
          |  |  | bool | フルスクリーンフラグ = false |  
          |  | ) |  |  |  | inline | 
 
Windowの初期化と生成. 
[SubWindow専用] 
 
 
  
  | 
        
          | bool SDX::SubWindow::Destroy | ( |  | ) |  |  | inline | 
 
SubWindowを削除. 
[SubWindow専用] 
 
 
  
  | 
        
          | bool SDX::SubWindow::SetShowFlag | ( | bool | 表示フラグ | ) |  |  | inline | 
 
ウィンドウの表示/非表示設定. 
[SubWindow専用] 
 
 
  
  | 
        
          | bool SDX::SubWindow::SetFullscreen | ( | bool | フルスクリーンフラグ | ) |  |  | inline | 
 
 
  
  | 
        
          | bool SDX::SubWindow::SetTitle | ( | const char * | タイトル名 | ) |  |  | inline | 
 
 
  
  | 
        
          | bool SDX::SubWindow::SetSize | ( | int | 幅, |  
          |  |  | int | 高さ |  
          |  | ) |  |  |  | inline | 
 
 
  
  | 
        
          | int SDX::SubWindow::GetWidth | ( |  | ) |  |  | inline | 
 
 
  
  | 
        
          | int SDX::SubWindow::GetHeight | ( |  | ) |  |  | inline | 
 
 
  
  | 
        
          | Rect SDX::SubWindow::GetSize | ( |  | ) |  |  | inline | 
 
 
  
  | 
        
          | bool SDX::SubWindow::SetIcon | ( | const char * | ファイル名 | ) |  |  | inline | 
 
 
  
  | 
        
          | void SDX::SubWindow::Update | ( |  | ) |  |  | inline | 
 
 
  
  | 
        
          | void SDX::SubWindow::SetLogicalSize | ( | int | 幅, |  
          |  |  | int | 高さ |  
          |  | ) |  |  |  | inline | 
 
描画領域の大きさを設定する. 
例えばSetSizeの半分にすると2倍表示になる