## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Region

- Goto spec source

# Description

    package Gdk.Region is

Binding from C File version 1.3.6

# Types

### Gdk_Region

- Goto declaration in source

    subtype Gdk_Region is Gdk.Gdk_Region;

### Gdk_Fill_Rule

- Goto declaration in source

    type Gdk_Fill_Rule is (Even_Odd_Rule, Winding_Rule);

GC fill rule for polygons.

### Gdk_Overlap_Type

- Goto declaration in source

    type Gdk_Overlap_Type is
         (Overlap_Rectangle_In,
          --  Rectangle is in region.

          Overlap_Rectangle_Out,
          --  Rectangle is not in region.

          Overlap_Rectangle_Part
          --  Rectangle is partially in region.
         );

# Constants & Global variables

### Null_Region

- Goto declaration in source

(Gdk_Region)

    Null_Region : constant Gdk_Region;

# Subprograms & Entries

### Gdk_New

- Goto spec in source

    procedure Gdk_New (Region: out Gdk_Region);

Create a new region.

### Polygon

- Goto spec in source

    procedure Polygon (Region: out Gdk_Region;Points: Gdk.Types.Gdk_Points_Array;Fill_Rule: Gdk_Fill_Rule);

### Copy

- Goto spec in source
- Goto body in source

    function Copy (Region: Gdk_Region) return Gdk_Region;

### Rectangle

- Goto spec in source
- Goto body in source

    function Rectangle (Rectangle: Gdk.Rectangle.Gdk_Rectangle) return Gdk_Region;

### Destroy

- Goto spec in source

    procedure Destroy (Region: in out Gdk_Region);

### Get_Clipbox

- Goto spec in source
- Goto body in source

    procedure Get_Clipbox (Region: Gdk_Region;Rectangle: out Gdk.Rectangle.Gdk_Rectangle);

### Get_Rectangles

- Goto spec in source

    procedure Get_Rectangles (Region: Gdk_Region;Rectangle: out Gdk.Rectangle.Gdk_Rectangle_Array;N_Rectangles: out Natural);

### Empty

- Goto spec in source

    function Empty (Region: Gdk_Region) return Boolean;

### =

- Goto spec in source

    function "=" (Left, Right: Gdk_Region) return Boolean;

### Point_In

- Goto spec in source

    function Point_In (Region: Gdk_Region;X, Y: Integer) return Boolean;

### Rect_In

- Goto spec in source
- Goto body in source

    function Rect_In (Region: Gdk_Region;Rect: Gdk.Rectangle.Gdk_Rectangle) return Gdk_Overlap_Type;

### Offset

- Goto spec in source
- Goto body in source

    procedure Offset (Region: Gdk_Region;Dx: Gint;Dy: Gint);

### Shrink

- Goto spec in source
- Goto body in source

    procedure Shrink (Region: Gdk_Region;Dx: Gint;Dy: Gint);

### Union_With_Rect

- Goto spec in source

    procedure Union_With_Rect (Region: in out Gdk_Region;Rect: Gdk.Rectangle.Gdk_Rectangle);

### Union_With_Rect

- Goto spec in source

    procedure Union_With_Rect (Result: in out Gdk_Region;Region: Gdk_Region;Rect: Gdk.Rectangle.Gdk_Rectangle);

Provided for backward compatibility. Region must be equal to Result.

### Intersect

- Goto spec in source
- Goto body in source

    procedure Intersect (Source1: in out Gdk_Region;Source2: Gdk_Region);

### Union

- Goto spec in source
- Goto body in source

    procedure Union (Source1: in out Gdk_Region;Source2: Gdk_Region);

### Substract

- Goto spec in source
- Goto body in source

    procedure Substract (Source1: in out Gdk_Region;Source2: Gdk_Region);

### Gdk_Xor

- Goto spec in source
- Goto body in source

    procedure Gdk_Xor (Source1: in out Gdk_Region;Source2: Gdk_Region);