Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XPointInRegion(3X11) — NEWS-os 4.2.1R

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XCreateRegion(3X11)

XIntersectRegion(3X11)

XEmptyRegion(3X11)  —  NEWS-OS Programmer’s Manual

名称

XEmptyRegion, XEqualRegion, XPointInRegion, XRectInRegion − リージョンが空であるかまたは等しいかについて判断する

形式

Bool XEmptyRegion(r)
      Region r; Bool XEqualRegion(r1, r2)
      Region r1, r2; Bool XPointInRegion(r, x, y)
      Region r;
      int x, y; int XRectInRegion(r, x, y, width, height)
      Region r;
      int x, y;
      unsigned int width, height;

引数

r領域を指定します。

r1

r22つの領域を指定します。

width

height長方形を定義する幅と高さを指定します。

x

y長方形の左上コーナの点か座標を定義するx - y 座標を指定します。

解説

XEmptyRegion 関数は、 リージョンが空であれば、 True を返します。 XEqualRegion 関数は、 2つのリージョンのオフセット、サイズおよび Shape が同じであれば、 True を返します。 XPointInRegion 関数は、 リージョン r に点 (x, y) が含まれている場合、 True を返します。 XRectInRegion 関数は、長方形が完全に指定されたリージョン内にあれば RectangleIn を、完全に指定されたリージョン外にあれば RectangleOut を、 また一部が指定されたリージョン内にあれば RectanglePart を返します。

関連事項

XCreateRegion(3X11), XIntersectRegion(3X11)
Xlib − C Language X Interface

NEWS-OSRelease 4.2.1R

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026