MQWidget.Popup class

ポップアップクラス。

継承クラス: MQWidget.WidgetBase - MQWidget.WindowBase

Property

get set Type Name Description
o o bool shadow 影表示
o o bool overlay オーバーレイ表示

Method

Member Description
Popup コンストラクタ。
getPreferredSidePosition ウェジェットに横付け表示する位置を取得します。
showPopup 指定した位置にポップアップを表示します。

Popup([parent])

コンストラクタ。

引数:
MQWidget.WindowBase parent - 親ウィンドウ

getPreferredSidePosition(base_widget, horz)

ウェジェットに横付け表示する位置を取得します。

引数:
MQWidget.WidgetBase base_widget - 横付けするウィジェット
bool horz - 横方向かどうか
[True] 左または右
[False] 上または下
戻り値:
list{int,int,int,int} - X座標・Y座標・横幅・縦幅を格納したリスト

showPopup(screen_x, screen_y)

指定した位置にポップアップを表示します。

引数:
int screen_x - スクリーン座標上のX位置
int screen_y - スクリーン座標上のY位置