元編程參考文件

即時圖形介面框架

預覽

每幀重新宣告的介面,適合控制元件隨資料變化的工具

Methodox Wiki 上的使用指南

1 個類別,共 70 個節點

所屬發行版
元編程(教育版)元編程(專業版)
支援等級
第 2 級(擬定)
所屬包
即時模式介面
即時模式介面

每一幀重新繪製的即時模式介面,適用於介面外觀動態變化的工具。

即時圖形介面應用

即時圖形介面應用新增按鈕新增說明文字A quieter line, for a unit or an explanation.新增核取方塊新增下拉框新增標籤The graph-facing widgets: a value goes in and the new value comes out.新增列表新增選單項新增到同一行Put the next widget on the same line as the previous one.新增段落A paragraph, broken to the width available.新增主按鈕The one action a person most likely came for.新增進度條新增選項按鈕新增分隔線新增滑塊新增間距新增文字方塊新增標題A heading.新增標題列A drag handle and a close button for a window with no frame of its own.開始繪圖區域Reserves a box of the given height and answers where it is, for a graph that draws its own picture.開始選單One title on the menu bar.開始選單欄A strip of menu titles.開始面板Opens a floating panel.開始螢幕The whole window as one region with no panel chrome: what a single-screen tool declares.關閉Ask to stop after this frame.釋放繪製圓繪製影像繪製直線繪製矩形A filled rectangle, in surface pixels.繪製圓角矩形A filled rectangle with rounded corners.繪製文字A run of text with its left edge and baseline named exactly.按指定大小繪製文字A run of text at an exact pixel size, for a headline a role could not name.按指定大小繪製自動換行文字Text at an exact pixel size, broken into lines no wider than a width, every line centred and the block centred on a point: an overlay's sentence, which has to fit the screen it stands on.結束繪圖區域結束選單結束選單欄結束面板已請求關閉Whether the application has asked to stop.已用時間Milliseconds the last frame took.介面The interface itself: every widget, the layout and the theme.宿主The host running this application, attached by whatever is running it.上一幀What the most recent frame answered.儲存Per-run storage a node can keep something in.繪圖表面The pixels.主題The theme the interface reads.視窗選項What the window was asked to be.取得點選次數How many clicks this press was the last of: one, two for a double click, three for a triple.取得已用時間取得指標位置Where the pointer is, in surface pixels.取得上一幀的指標位置Where the pointer was on the previous frame, in surface pixels - the other end of a segment whose near end is ImmediateGUIApplication.GetPointerPosition.取得輸入的文字What the keyboard typed on this frame, as characters, or nothing on the frames nobody typed.取得視窗大小How big the drawing surface actually is, which is what the person can see rather than what was asked for.按鍵是否按下Whether a key is held right now.指標是否按下Whether a mouse button is held right now, which is what a drag asks.測量文字How wide a run of text draws at a pixel size, so a graph can centre it.設定始終置頂設定無邊框No frame, no title bar.設定深色主題The dark palette rather than the light one.設定全屏設定疊加視窗A borderless, transparent, always-on-top window that stays out of the taskbar: the desktop overlay.設定透明背景The window's background shows the desktop through it, where the platform allows.設定視窗大小The window's size, in pixels.設定視窗標題是否按下了鍵Whether a key went down on this frame, whatever was held with it.指標是否按下過Whether a mouse button went down on this frame, which is what a click asks.指標是否已釋放Whether a mouse button came up on this frame.幀Declare the whole interface.已初始化The window exists.啟動Divooka procedural program entry, equivalent to "Main" in many programming languages.