Scanbot SDK
Loading...
Searching...
No Matches
ScanbotSDKTypes.h
Go to the documentation of this file.
1
5
6#pragma once
7#ifndef SCANBOTSDK_TYPES_H
8#define SCANBOTSDK_TYPES_H
9
10#include <ScanbotSDKDefs.h>
11#include <stddef.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
31
36typedef struct scanbotsdk_pointf_t {
40 float x;
44 float y;
46
51typedef struct scanbotsdk_rect_t {
55 int x;
59 int y;
63 int width;
67 int height;
69
74typedef struct scanbotsdk_rectf_t {
78 float x;
82 float y;
86 float width;
90 float height;
92
113 const char* data;
114 size_t size;
116
124
140
141#ifdef __cplusplus
142} /* extern "C" */
143#endif
144#endif /* SCANBOTSDK_TYPES_H */
SBSDK_API const char * scanbotsdk_u8string_ref_assume_cstring(scanbotsdk_u8string_ref_t string_ref)
Explicitly casts the reference data to a null-terminated C-string.
SBSDK_API scanbotsdk_u8string_ref_t scanbotsdk_u8string_ref_from_cstring(const char *str)
Creates a string ref from a null-terminated C string.
int y
The y-coordinate of the point.
Definition ScanbotSDKTypes.h:29
int width
The width of the rectangle.
Definition ScanbotSDKTypes.h:63
float height
The height of the rectangle.
Definition ScanbotSDKTypes.h:90
int x
The x-coordinate of the point.
Definition ScanbotSDKTypes.h:25
float y
The y-coordinate of the point.
Definition ScanbotSDKTypes.h:44
float x
The x-coordinate of the point.
Definition ScanbotSDKTypes.h:40
int height
The height of the rectangle.
Definition ScanbotSDKTypes.h:67
float width
The width of the rectangle.
Definition ScanbotSDKTypes.h:86
Represents a point with integer coordinates.
Definition ScanbotSDKTypes.h:21
Represents a point with floating point coordinates.
Definition ScanbotSDKTypes.h:36
Represents a rectangle with integer coordinates.
Definition ScanbotSDKTypes.h:51
Represents a rectangle with floating point coordinates.
Definition ScanbotSDKTypes.h:74
Represents a non-owning view of a UTF-8 encoded string.
Definition ScanbotSDKTypes.h:112