略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: UI\Area

2024-11-13

Area

(UI 0.9.9)

简介

An Area represents a canvas which can be used to draw, and respond to mouse and key events.

类摘要

class UI\Area extends UI\Control {
/* Constants */
const int Ctrl;
const int Alt;
const int Shift;
const int Super;
const int Down;
const int Up;
/* 方法 */
protected onDraw(
    UI\Draw\Pen $pen,
    UI\Size $areaSize,
    UI\Point $clipPoint,
    UI\Size $clipSize
)
protected onKey(string $key, int $ext, int $flags)
protected onMouse(UI\Point $areaPoint, UI\Size $areaSize, int $flags)
public redraw()
public scrollTo(UI\Point $point, UI\Size $size)
public setSize(UI\Size $size)
/* 继承的方法 */
public UI\Control::isEnabled(): bool
public UI\Control::isVisible(): bool
}

预定义常量

UI\Area::Ctrl

Shall be set in the modifiers passed to key and mouse events when the CTRL key is active

UI\Area::Alt

Shall be set in the modifiers passed to key and mouse events when the ALT key is active

UI\Area::Shift

Shall be set in the modifiers passed to key and mouse events when the SHIFT key is active

UI\Area::Super

UI\Area::Down

Shall be set in the modifiers passed to key and mouse events

UI\Area::Up

Shall be set in the modifiers passed to key and mouse events

目录

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/class.ui-area.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3