oyRegion_s Struct Reference
[Region Handling]

start with a simple rectangle More...

#include <oyranos_alpha.h>

Collaboration diagram for oyRegion_s:

Collaboration graph
[legend]

Data Fields

oyOBJECT_e type_
oyStruct_Copy_f copy
oyStruct_Release_f release

Related Functions

(Note that these are not member functions.)

oyRegion_soyRegion_NewWith (double x, double y, double width, double height, oyObject_s object)
 new with geometry
oyRegion_soyRegion_NewFrom (oyRegion_s *ref, oyObject_s object)
 new from other region
oyRegion_soyRegion_Copy (oyRegion_s *orig, oyObject_s object)
 copy/reference from other region
int oyRegion_Release (oyRegion_s **obj)
 release
void oyRegion_SetGeo (oyRegion_s *edit_region, double x, double y, double width, double height)
 set geometry
void oyRegion_SetByRegion (oyRegion_s *edit_region, oyRegion_s *ref)
 copy values
void oyRegion_Trim (oyRegion_s *edit_region, oyRegion_s *ref)
 trim edit_region to ref extents
void oyRegion_MoveInside (oyRegion_s *edit_region, oyRegion_s *ref)
 trim edit_region to ref extents
void oyRegion_Scale (oyRegion_s *edit_region, double factor)
 scale with origin in the top left corner
void oyRegion_Normalise (oyRegion_s *edit_region)
 normalise swapped values for width and height
void oyRegion_Round (oyRegion_s *edit_region)
 scale with origin in the top left corner
int oyRegion_IsEqual (oyRegion_s *region1, oyRegion_s *region2)
 compare
int oyRegion_IsInside (oyRegion_s *region, double x, double y)
 compare
int oyRegion_CountPoints (oyRegion_s *region)
 count number of points covered by this region
int oyRegion_Index (oyRegion_s *region, double x, double y)
 return position inside region, assuming region size
oyChar * oyRegion_Show (oyRegion_s *r)
 debug text not so threadsafe

Detailed Description

start with a simple rectangle

Field Documentation

oyStruct_Copy_f oyRegion_s::copy

copy function

oyStruct_Release_f oyRegion_s::release

release function

internal struct type oyOBJECT_REGION_S

Referenced by oyRegion_Release().


Generated on Wed Aug 12 11:56:26 2009 for Oyranos by  doxygen 1.5.9