ImageLabelWindow ライブラリ

- 目次 -


概要 - Abstract

このライブラリ gui.ImageLabelWindow は、GUI部品として、画像ラベルを表示するウィンドウ ―― 画像ラベルウィンドウ ―― を提供します。
即席の描画ウィンドウや、画像ファイルの内容を表示するウィンドウなどとして使用できます。

VCSSLの標準ライブラリ「 GUI 」では、GUI部品をint型のIDで扱いますが、このモジュールで提供されるGUI部品は、ImageLabelWindow 構造体として扱います。

ImageLabelWindow 構造体は、内部にリソースのID等を保持していますが、
生成・破棄のための関数が提供されるため、その中身を特に意識する必要はありません( むしろメンバへの直接的なアクセスは推奨されません )。
具体的には、 newImageLabelWindow 関数で生成し、 deleteComponent 関数で破棄します。

またこのモジュールでは、ImageLabelWindow 構造体を標準ライブラリ「 GUI 」と同様の感覚でそのまま扱えるように、標準GUIライブラリ関数のオーバーロードも提供されます。
例えば、 mountComponent 関数や、setComponentSize 関数、 setComponentLocation 関数などが提供されます。


目次 - Index

struct ImageLabelWindow
画像ラベルウィンドウの構造体です。
ImageLabelWindow newImageLabelWindow(int x, int y, int width, int height, string title, int graphics)
画像ラベルウィンドウを生成します。
ImageLabelWindow newImageLabelWindow(int graphics)
自動でウィンドウサイズを決定し、画像ラベルウィンドウを生成します。
void deleteComponent(ImageLabelWindow &windowInstance)
画像ラベルウィンドウを破棄します。
int getWindow(ImageLabelWindow &windowInstance)
ウィンドウのGUIコンポーネントIDを返します。
int getImageLabel(ImageLabelWindow &windowInstance)
画像ラベルのGUIコンポーネントIDを返します。
void setComponentSize(ImageLabelWindow &windowInstance, int width, int height)
ウィンドウサイズを設定します。
void setComponentSize(ImageLabelWindow &windowInstance)
ウィンドウの現在のサイズに合わせて、内部コンポーネントのレイアウトを自動設定します。ウインドウのサイズを外部から変更した際に使用します。
int[ ] getComponentSize(ImageLabelWindow &windowInstance)
ウィンドウのサイズを返します。
void fitComponentSize(ImageLabelWindow &windowInstance)
グラフィックスリソースにちょうど適切なウィンドウサイズを設定します。
void setComponentLocation(ImageLabelWindow &windowInstance, int x, int y)
ウィンドウの位置を設定します。
int[ ] getComponentLocation(ImageLabelWindow &windowInstance)
ウィンドウの位置を返します。
void paintComponent(ImageLabelWindow &windowInstance)
ウィンドウを再描画します。
void hideComponent(ImageLabelWindow &windowInstance)
ウィンドウを不可視化します。
void showComponent(ImageLabelWindow &windowInstance)
ウィンドウを可視化します。

構造体 - Structs

文法的定義
- Signature
struct ImageLabelWindow
構造体名
- Name
ImageLabelWindow
役割
- Role
画像ラベルウィンドウの構造体です。

変数 - Variables

- なし - None -


関数 - Functions

文法的定義
- Signature
ImageLabelWindow newImageLabelWindow(int x, int y, int width, int height, string title, int graphics)
関数名
- Name
newImageLabelWindow
役割
- Role
画像ラベルウィンドウを生成します。
引数
- Arguments
(int型) x : ウィンドウ左上頂点のX座標
(int型) y : ウィンドウ左上頂点のY座標
(int型) width : ウィンドウの幅
(int型) height : ウィンドウの高さ
(string型) title : ウィンドウのタイトル
(int型) graphics : グラフィックスリソース
戻り値
- Return
(ImageLabelWindow型) 生成したウィンドウ構造体
文法的定義
- Signature
ImageLabelWindow newImageLabelWindow(int graphics)
関数名
- Name
newImageLabelWindow
役割
- Role
自動でウィンドウサイズを決定し、画像ラベルウィンドウを生成します。
引数
- Arguments
(int型) graphics : グラフィックスリソース
戻り値
- Return
(ImageLabelWindow型) 生成したウィンドウ構造体
文法的定義
- Signature
void deleteComponent(ImageLabelWindow &windowInstance)
関数名
- Name
deleteComponent
役割
- Role
画像ラベルウィンドウを破棄します。
引数
- Arguments
(ImageLabelWindow型) windowInstance : 破棄するウィンドウ
戻り値
- Return
(void型)
文法的定義
- Signature
int getWindow(ImageLabelWindow &windowInstance)
関数名
- Name
getWindow
役割
- Role
ウィンドウのGUIコンポーネントIDを返します。
引数
- Arguments
(ImageLabelWindow型) windowInstance : 取得対象のウィンドウ
戻り値
- Return
(int型) ウィンドウのGUIコンポーネントID
文法的定義
- Signature
int getImageLabel(ImageLabelWindow &windowInstance)
関数名
- Name
getImageLabel
役割
- Role
画像ラベルのGUIコンポーネントIDを返します。
引数
- Arguments
(ImageLabelWindow型) windowInstance : 取得対象のウィンドウ
戻り値
- Return
(int型) 画像ラベルのGUIコンポーネントID
文法的定義
- Signature
void setComponentSize(ImageLabelWindow &windowInstance, int width, int height)
関数名
- Name
setComponentSize
役割
- Role
ウィンドウサイズを設定します。
引数
- Arguments
(ImageLabelWindow型) windowInstance : 設定対象のウィンドウ
(int型) width : ウィンドウの幅
(int型) height : ウィンドウの高さ
戻り値
- Return
(void型)
文法的定義
- Signature
void setComponentSize(ImageLabelWindow &windowInstance)
関数名
- Name
setComponentSize
役割
- Role
ウィンドウの現在のサイズに合わせて、内部コンポーネントのレイアウトを自動設定します。ウインドウのサイズを外部から変更した際に使用します。
引数
- Arguments
(ImageLabelWindow型) windowInstance : 対象のウィンドウ
戻り値
- Return
(void型)
文法的定義
- Signature
int[ ] getComponentSize(ImageLabelWindow &windowInstance)
関数名
- Name
getComponentSize
役割
- Role
ウィンドウのサイズを返します。
引数
- Arguments
(ImageLabelWindow型) windowInstance : 対象のウィンドウ
戻り値
- Return
(int[]型) ウィンドウのサイズを格納する配列
文法的定義
- Signature
void fitComponentSize(ImageLabelWindow &windowInstance)
関数名
- Name
fitComponentSize
役割
- Role
グラフィックスリソースにちょうど適切なウィンドウサイズを設定します。
引数
- Arguments
(ImageLabelWindow型) windowInstance : 設定対象のウィンドウ
戻り値
- Return
(void型)
文法的定義
- Signature
void setComponentLocation(ImageLabelWindow &windowInstance, int x, int y)
関数名
- Name
setComponentLocation
役割
- Role
ウィンドウの位置を設定します。
引数
- Arguments
(ImageLabelWindow型) windowInstance : 設定対象のウィンドウ
(int型) x : ウィンドウ左上頂点のX座標
(int型) y : ウィンドウ左上頂点のY座標
戻り値
- Return
(void型)
文法的定義
- Signature
int[ ] getComponentLocation(ImageLabelWindow &windowInstance)
関数名
- Name
getComponentLocation
役割
- Role
ウィンドウの位置を返します。
引数
- Arguments
(ImageLabelWindow型) windowInstance : 対象のウィンドウ
戻り値
- Return
(int[]型) ウィンドウの位置を格納する配列
文法的定義
- Signature
void paintComponent(ImageLabelWindow &windowInstance)
関数名
- Name
paintComponent
役割
- Role
ウィンドウを再描画します。
引数
- Arguments
(ImageLabelWindow型) windowInstance : 対象のウィンドウ
戻り値
- Return
(void型)
文法的定義
- Signature
void hideComponent(ImageLabelWindow &windowInstance)
関数名
- Name
hideComponent
役割
- Role
ウィンドウを不可視化します。
引数
- Arguments
(ImageLabelWindow型) windowInstance : 対象のウィンドウ
戻り値
- Return
(void型)
文法的定義
- Signature
void showComponent(ImageLabelWindow &windowInstance)
関数名
- Name
showComponent
役割
- Role
ウィンドウを可視化します。
引数
- Arguments
(ImageLabelWindow型) windowInstance : 対象のウィンドウ
戻り値
- Return
(void型)


スポンサーリンク



この階層の目次
RINEARN からのお知らせ
※ VCSSL は RINEARN が開発しています。

ExevalatorのVer.2.4をリリース—MCPをサポートし、AI用の計算ツールとしても使用可能に
2025-11-15 - 式計算ライブラリExevalatorのVer.2.4をリリースしました。今回から、AIとやり取りするためのプロトコルである「MCP」をサポートし、AI用の計算ツールとしても使用可能になりました!

Exevalatorの最新版Ver.2.3をリリース、新たにPythonで使用可能に
2025-11-04 - 式計算ライブラリExevalatorのVer.2.3をリリースしました。今回から、新たにPython製のプログラムでも使用可能になりました!AI用ツール開発需要などの背景も踏まえて、詳細をお知らせします。

Exevalatorをアップデート、エラーメッセージの日本語化が手軽に
2025-10-31 - 式計算ライブラリExevalatorのVer.2.2.2をリリースしました。今回から、エラーメッセージを手軽に日本語化できるようになりました。数件のバグ修正&微調整も作んでいます。詳細をお知らせします。

関数電卓RINPn(りんぷん)オンライン版の内部構造を解説
2025-10-22 - 先日登場した、関数電卓ソフトRINPn(りんぷん)のオンライン版の内部構造を解説します。オープンソースなので、自由に改造・流用して、自分だけのWeb電卓を作る事も可能!(かもしれない)

関数電卓RINPn(りんぷん)、どこでもすぐ使えるオンライン版が登場!
2025-10-21 - フリー関数電卓ソフトRINPn(りんぷん)に、Web上でどこでもすぐ使える「オンライン版」が新登場しました!PCだけでなく、スマホでも利用可能です。詳細をお知らせします!

VCSSLのサポートAIが登場!ただし実用品質にはChatGPT有料アカウント(Plus)での利用推奨
2025-08-19 - プログラミング言語VCSSLについての質問対応や、コーディング作業を手伝ってくれるAIさんが登場しました!使用までの流れや推奨事項を解説し、実際の回答例や生成コード例などもたくさん紹介します!

各ソフトやVCSSLの英語版ドキュメント整備がほぼ完了
2025-06-30 - RINEARNでは2年前から、AIの補助による英語版ドキュメントの大幅拡充計画を進めてきました。今回、主要ドキュメント&コンテンツの英訳がほぼ完了し、一応の目標水準に達しました。詳細をお知らせします。

VCSSLの最新版をリリース:外部プログラムとの連携機能を少し強化、他
2025-05-25 - VCSSL3.4.52をリリースしました。外部プログラム(C言語製の実行ファイル等)との連携機能を少し強化し、文字化け対策やOS判別などを可能にしました。他にも細かい機能追加があります。詳細をお知らせします。

VCSSLの最新版をリリース、Java24上での非互換な挙動を対処
2025-04-22 - VCSSL3.4.50をリリースしました。Java24環境上でのネットワークドライブ関連のファイルパス解決で、従来環境とは異なる挙動が生じていたのを解消しました。詳細をお知らせします。

リニアングラフやVCSSLの最新版をリリース、目盛りの位置や内容を自由に指定可能に!
2024-11-24 - リニアングラフ3D/2Dを更新し、自由な位置に、自由な表記内容の目盛りを描けるようになりました!併せて、Java言語やVCSSLでの、プログラム制御用APIも拡張しています。詳細をお知らせします。