![]() |
Oyranos
git-devel
Oyranos is a full featured Color Management System
|
A simple rectangle of double values. More...
#include <oyRectangle_s.h>


Public Member Functions | |
| OYAPI oyRectangle_s *OYEXPORT | oyRectangle_New (oyObject_s object) |
| allocate a new Rectangle object More... | |
| OYAPI oyRectangle_s *OYEXPORT | oyRectangle_Copy (oyRectangle_s *rectangle, oyObject_s object) |
| Copy or Reference a Rectangle object. More... | |
| OYAPI int OYEXPORT | oyRectangle_Release (oyRectangle_s **rectangle) |
| release and possibly deallocate a oyRectangle_s object More... | |
| double | oyRectangle_CountPoints (oyRectangle_s *rectangle) |
| Count number of points covered by this rectangle. More... | |
| int | oyRectangle_Index (oyRectangle_s *rectangle, double x, double y) |
| Return position inside rectangle, assuming rectangle size. More... | |
| int | oyRectangle_IsEqual (oyRectangle_s *rectangle1, oyRectangle_s *rectangle2) |
| compare More... | |
| int | oyRectangle_IsInside (oyRectangle_s *test, oyRectangle_s *ref) |
| Compare. More... | |
| void | oyRectangle_MoveInside (oyRectangle_s *edit_rectangle, oyRectangle_s *ref) |
| Trim edit_rectangle to ref extents. More... | |
| oyRectangle_s * | oyRectangle_NewFrom (oyRectangle_s *ref, oyObject_s object) |
| New from other rectangle. More... | |
| oyRectangle_s * | oyRectangle_NewWith (double x, double y, double width, double height, oyObject_s object) |
| New with geometry. More... | |
| void | oyRectangle_Normalise (oyRectangle_s *edit_rectangle) |
| Normalise swapped values for width and height. More... | |
| int | oyRectangle_PointIsInside (oyRectangle_s *rectangle, double x, double y) |
| Compare. More... | |
| void | oyRectangle_Round (oyRectangle_s *edit_rectangle) |
| Scale with origin in the top left corner. More... | |
| void | oyRectangle_Scale (oyRectangle_s *edit_rectangle, double factor) |
| Scale with origin in the top left corner. More... | |
| void | oyRectangle_SetByRectangle (oyRectangle_s *edit_rectangle, oyRectangle_s *ref) |
| Copy values. More... | |
| void | oyRectangle_SetGeo (oyRectangle_s *edit_rectangle, double x, double y, double width, double height) |
| Set geometry. More... | |
| void | oyRectangle_GetGeo (oyRectangle_s *rectangle, double *x, double *y, double *width, double *height) |
| get geometry More... | |
| OYAPI double OYEXPORT | oyRectangle_GetGeo1 (oyRectangle_s *rectangle, int x_y_w_h) |
| Get single geometry. More... | |
| OYAPI double *OYEXPORT | oyRectangle_SetGeo1 (oyRectangle_s *rectangle, int x_y_w_h) |
| Set single geometry. More... | |
| const char * | oyRectangle_Show (oyRectangle_s *rect) |
| Debug text. More... | |
| void | oyRectangle_Trim (oyRectangle_s *edit_rectangle, oyRectangle_s *ref) |
| Trim edit_rectangle to ref extents. More... | |
Public Member Functions inherited from oyStruct_s | |
| const char * | oyStruct_GetTextFromModule (oyStruct_s *obj, oyNAME_e name_type, uint32_t flags) |
| get object infos from a module More... | |
| const char * | oyStruct_GetText (oyStruct_s *obj, oyNAME_e name_type, uint32_t flags) |
| Get a text dump. More... | |
| int | oyStruct_RegisterStaticMessageFunc (int type, oyStruct_RegisterStaticMessageFunc_f msg, oyStruct_RegisterStaticFreeFunc_f free_func) |
| register a function for verbosity More... | |
| const char * | oyStruct_GetInfo (oyPointer context_object, oyNAME_e type, int flags) |
| get a additional string from a object More... | |
| const char * | oyStructTypeToText (oyOBJECT_e type) |
| Objects type to small string. More... | |
Data Fields | |
| const oyOBJECT_e | type_ |
| Type of object. More... | |
| oyStruct_Copy_f | copy |
| Copy function. More... | |
| oyStruct_Release_f | release |
| Release function. More... | |
| oyObject_s | oy_ |
| Oyranos internal object. More... | |
Data Fields inherited from oyStruct_s | |
| const oyOBJECT_e | type_ |
| Type of object. More... | |
| oyStruct_Copy_f | copy |
| Copy function. More... | |
| oyStruct_Release_f | release |
| Release function. More... | |
| oyObject_s | oy_ |
| Oyranos internal object. More... | |
A simple rectangle of double values.
| OYAPI oyRectangle_s *OYEXPORT oyRectangle_Copy | ( | oyRectangle_s * | rectangle, |
| oyObject_s | object | ||
| ) |
Copy or Reference a Rectangle object.
Function oyRectangle_Copy
The function is for copying and for referencing. The reference is the most often used way, which saves resourcs and time.
| [in] | rectangle | Rectangle struct object |
| object | NULL - means reference, the optional object triggers a real copy |
| double oyRectangle_CountPoints | ( | oyRectangle_s * | rectangle | ) |
Count number of points covered by this rectangle.
Function oyRectangle_CountPoints
| void oyRectangle_GetGeo | ( | oyRectangle_s * | rectangle, |
| double * | x, | ||
| double * | y, | ||
| double * | width, | ||
| double * | height | ||
| ) |
get geometry
| OYAPI double OYEXPORT oyRectangle_GetGeo1 | ( | oyRectangle_s * | rectangle, |
| int | x_y_w_h | ||
| ) |
Get single geometry.
Function oyRectangle_GetGeo1
| int oyRectangle_Index | ( | oyRectangle_s * | rectangle, |
| double | x, | ||
| double | y | ||
| ) |
Return position inside rectangle, assuming rectangle size.
Function oyRectangle_Index
| int oyRectangle_IsEqual | ( | oyRectangle_s * | rectangle1, |
| oyRectangle_s * | rectangle2 | ||
| ) |
compare
| int oyRectangle_IsInside | ( | oyRectangle_s * | test, |
| oyRectangle_s * | ref | ||
| ) |
Compare.
Function oyRectangle_IsInside
| void oyRectangle_MoveInside | ( | oyRectangle_s * | edit_rectangle, |
| oyRectangle_s * | ref | ||
| ) |
Trim edit_rectangle to ref extents.
Function oyRectangle_MoveInside
| OYAPI oyRectangle_s *OYEXPORT oyRectangle_New | ( | oyObject_s | object | ) |
allocate a new Rectangle object
Function oyRectangle_New
Referenced by oyRectangle_NewFrom(), and oyRectangle_NewWith().
| oyRectangle_s * oyRectangle_NewFrom | ( | oyRectangle_s * | ref, |
| oyObject_s | object | ||
| ) |
New from other rectangle.
Function oyRectangle_NewFrom
References oyRectangle_New(), and oyRectangle_SetByRectangle().
| oyRectangle_s * oyRectangle_NewWith | ( | double | x, |
| double | y, | ||
| double | width, | ||
| double | height, | ||
| oyObject_s | object | ||
| ) |
New with geometry.
Function oyRectangle_NewWith
References oyRectangle_New(), and oyRectangle_SetGeo().
| void oyRectangle_Normalise | ( | oyRectangle_s * | edit_rectangle | ) |
Normalise swapped values for width and height.
Function oyRectangle_Normalise
| int oyRectangle_PointIsInside | ( | oyRectangle_s * | rectangle, |
| double | x, | ||
| double | y | ||
| ) |
Compare.
Function oyRectangle_PointIsInside
| OYAPI int OYEXPORT oyRectangle_Release | ( | oyRectangle_s ** | rectangle | ) |
release and possibly deallocate a oyRectangle_s object
Function oyRectangle_Release
| [in,out] | rectangle | Rectangle struct object |
| void oyRectangle_Round | ( | oyRectangle_s * | edit_rectangle | ) |
Scale with origin in the top left corner.
Function oyRectangle_Round
| void oyRectangle_Scale | ( | oyRectangle_s * | edit_rectangle, |
| double | factor | ||
| ) |
Scale with origin in the top left corner.
Function oyRectangle_Scale
| void oyRectangle_SetByRectangle | ( | oyRectangle_s * | edit_rectangle, |
| oyRectangle_s * | ref | ||
| ) |
Copy values.
Function oyRectangle_SetByRectangle
Referenced by oyRectangle_NewFrom().
| void oyRectangle_SetGeo | ( | oyRectangle_s * | edit_rectangle, |
| double | x, | ||
| double | y, | ||
| double | width, | ||
| double | height | ||
| ) |
Set geometry.
Function oyRectangle_SetGeo
Referenced by oyRectangle_NewWith().
| OYAPI double *OYEXPORT oyRectangle_SetGeo1 | ( | oyRectangle_s * | rectangle, |
| int | x_y_w_h | ||
| ) |
Set single geometry.
Function oyRectangle_SetGeo1
| const char * oyRectangle_Show | ( | oyRectangle_s * | rect | ) |
Debug text.
Function oyRectangle_Show
This function is not not thread safe.
| void oyRectangle_Trim | ( | oyRectangle_s * | edit_rectangle, |
| oyRectangle_s * | ref | ||
| ) |
Trim edit_rectangle to ref extents.
Function oyRectangle_Trim
| oyStruct_Copy_f oyRectangle_s::copy |
Copy function.
| oyObject_s oyRectangle_s::oy_ |
Oyranos internal object.
Features name and hash. Do not change during object life time.
| oyStruct_Release_f oyRectangle_s::release |
Release function.
| const oyOBJECT_e oyRectangle_s::type_ |
Type of object.
The struct type tells Oyranos how to interprete hidden fields.
1.8.13