略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: UI\Size

2024-11-13

Represents dimensions (width, height)

(UI 0.9.9)

简介

Sizes are used throughout UI to represent the size of a screen, control, or area.

类摘要

final class UI\Size {
/* 属性 */
public $width;
public $height;
/* Constructor */
public __construct(float $width, float $height)
/* 方法 */
public getHeight(): float
public getWidth(): float
public static of(float $size): UI\Size
public static of(UI\Point $point): UI\Size
public setHeight(float $size)
public setWidth(float $size)
}

属性

width

Holds the width, can be read/written directly

height

Holds the height, can be read/written directly

目录

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-size.php

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