|
LIBURANIA
GUI library (a wrapper of Win32 API) in C++
|
ウィンドウのファクトリ [詳解]
#include <window.h>
公開メンバ関数 | |
| WindowFactory () noexcept | |
| std::unique_ptr< urania::Window > | create (std::unique_ptr< urania::WMHandler > &&hnd, int menu=0) |
| ウィンドウ生成 | |
| std::unique_ptr< urania::Window > | createAsOwned (urania::BasicWindow *owner, std::unique_ptr< urania::WMHandler > &&hnd, int menu=0) |
| オーナー附ウィンドウの生成 | |
| std::unique_ptr< urania::Window > | createAsChild (urania::BasicWindow *parent, int cid, std::unique_ptr< WMHandler > &&hnd) |
| 子ウィンドウの生成 | |
公開変数類 | |
| std::wstring | title |
| ウィンドウのタイトル | |
| int | x |
| ウィンドウの左上のx座標 | |
| int | y |
| ウィンドウの左上のy座標 | |
| int | w |
| ウィンドウの幅 | |
| int | h |
| ウィンドウの高さ | |
| unsigned | icon |
| アイコンのリソースID | |
| unsigned | cursor |
| カーソルのリソースID | |
| unsigned | bkcolor |
| 背景色の番號 | |
| bool | drag_and_drop |
| ドラッグ・アンド・ドロップを受け附けるときはtrue | |
| bool | maxbox |
| 最大化ボタンを持たせる場合はtrue | |
| bool | minbox |
| 最小化ボタンを持たせる場合はtrue | |
| bool | h_scrollbar |
| 水平スクロールバーを持たせる場合はtrue | |
| bool | v_scrollbar |
| 垂直スクロールバーを持たせる場合はtrue | |
| bool | popup |
| ポップアップウィンドウを作成する場合はtrue | |
| bool | border_only |
| 枠のみのウィンドウを作成する場合はtrue | |
| bool | resizeable |
| ウィンドウの大きさを變更可能にする場合はtrue | |
ウィンドウのファクトリ
bkcolorに設定する番號は次のいづれか。
|
inlinenoexcept |
|
inline |
ウィンドウ生成
ファクトリの設定に從つてウィンドウを生成する。
| hnd | メッセージハンドラ。 このハンドラオブジェクトは、生成されたWindowオブジェクトが破棄する。 |
| menu | メニューのリソースID |
|
inline |
子ウィンドウの生成
ファクトリの設定に從つて子ウィンドウを生成する。
| parent | 親ウィンドウ |
| cid | 子ウィンドウID |
| hnd | メッセージハンドラ。 このハンドラオブジェクトは、生成されたWindowオブジェクトが破棄する。 |
|
inline |
オーナー附ウィンドウの生成
ファクトリの設定に從つてオーナー附ウィンドウを生成する。
| owner | オーナーウィンドウ |
| hnd | メッセージハンドラ。 このハンドラオブジェクトは、生成されたWindowオブジェクトが破棄する。 |
| menu | メニューのリソースID |
| unsigned urania::WindowFactory::bkcolor |
背景色の番號
| bool urania::WindowFactory::border_only |
枠のみのウィンドウを作成する場合はtrue
| unsigned urania::WindowFactory::cursor |
カーソルのリソースID
| bool urania::WindowFactory::drag_and_drop |
ドラッグ・アンド・ドロップを受け附けるときはtrue
| int urania::WindowFactory::h |
ウィンドウの高さ
| bool urania::WindowFactory::h_scrollbar |
水平スクロールバーを持たせる場合はtrue
| unsigned urania::WindowFactory::icon |
アイコンのリソースID
| bool urania::WindowFactory::maxbox |
最大化ボタンを持たせる場合はtrue
| bool urania::WindowFactory::minbox |
最小化ボタンを持たせる場合はtrue
| bool urania::WindowFactory::popup |
ポップアップウィンドウを作成する場合はtrue
| bool urania::WindowFactory::resizeable |
ウィンドウの大きさを變更可能にする場合はtrue
| std::wstring urania::WindowFactory::title |
ウィンドウのタイトル
| bool urania::WindowFactory::v_scrollbar |
垂直スクロールバーを持たせる場合はtrue
| int urania::WindowFactory::w |
ウィンドウの幅
| int urania::WindowFactory::x |
ウィンドウの左上のx座標
| int urania::WindowFactory::y |
ウィンドウの左上のy座標