Rect

Rect class

사각형을 나타내는 클래스

메서드

constructor

이름설명
constructor()

Result:


constructor_overload

이름설명
constructor_overload(x, y, width, height)Rect 클래스의 생성자

Parameters:

이름유형설명
숫자null
숫자null
너비숫자null
높이숫자null

Result:


getWidth

이름설명
getWidth()크기의 너비를 가져오거나 설정합니다

Result:


setWidth

이름설명
setWidth(value)크기의 너비를 가져오거나 설정합니다

Result:


getHeight

이름설명
getHeight()크기의 높이를 가져오거나 설정합니다

Result:


setHeight

이름설명
setHeight(value)크기의 높이를 가져오거나 설정합니다

Result:


getX

이름설명
getX()크기의 x를 가져오거나 설정합니다

Result:


setX

이름설명
setX(value)크기의 x를 가져오거나 설정합니다

Result:


getY

이름설명
getY()크기의 y를 가져오거나 설정합니다

Result:


setY

이름설명
setY(value)크기의 y를 가져오거나 설정합니다

Result:


getLeft

이름설명
getLeft()사각형의 왼쪽을 가져옵니다

Result:


getRight

이름설명
getRight()사각형의 오른쪽을 가져옵니다

Result:


getTop

이름설명
getTop()사각형의 위쪽을 가져옵니다

Result:


getBottom

이름설명
getBottom()사각형의 아래쪽을 가져옵니다

Result:


contains

이름설명
contains(x, y)주어진 점이 사각형 내부에 있으면 true를 반환합니다.

Parameters:

이름유형설명
숫자null
숫자null

Result: boolean