Vanilla.PDF  1.5.2
Cross-platform toolkit for creating and modifying PDF documents
c_real_object.h
Go to the documentation of this file.
1 #ifndef _C_REAL_OBJECT_H
2 #define _C_REAL_OBJECT_H
3 
4 #include "vanillapdf/c_export.h"
5 #include "vanillapdf/c_handles.h"
6 #include "vanillapdf/c_values.h"
7 
8 #ifdef __cplusplus
9 extern "C"
10 {
11 #endif
12 
33  VANILLAPDF_API error_type CALLING_CONVENTION RealObject_Create(RealObjectHandle** result);
34 
38  VANILLAPDF_API error_type CALLING_CONVENTION RealObject_GetValue(RealObjectHandle* handle, real_type* result);
39 
43  VANILLAPDF_API error_type CALLING_CONVENTION RealObject_SetValue(RealObjectHandle* handle, real_type value);
44 
48  VANILLAPDF_API error_type CALLING_CONVENTION RealObject_ToObject(RealObjectHandle* handle, ObjectHandle** result);
49 
53  VANILLAPDF_API error_type CALLING_CONVENTION RealObject_FromObject(ObjectHandle* handle, RealObjectHandle** result);
54 
58  VANILLAPDF_API error_type CALLING_CONVENTION RealObject_Release(RealObjectHandle* handle);
59 
62 #ifdef __cplusplus
63 };
64 #endif
65 
66 #endif /* _C_REAL_OBJECT_H */
Real objects represent mathematical real numbers.
error_type RealObject_FromObject(ObjectHandle *handle, RealObjectHandle **result)
Convert ObjectHandle to RealObjectHandle.
error_type RealObject_ToObject(RealObjectHandle *handle, ObjectHandle **result)
Reinterpret current object as ObjectHandle.
error_type RealObject_GetValue(RealObjectHandle *handle, real_type *result)
Return objects contained real value.
error_type RealObject_Create(RealObjectHandle **result)
Creates a new RealObject instance.
error_type RealObject_SetValue(RealObjectHandle *handle, real_type value)
Set objects new real value.
error_type RealObject_Release(RealObjectHandle *handle)
Decrement the internal reference counter.
double real_type
Floating point values.
Definition: c_types.h:41
This file contains all type forward declarations returned by the library API.
Base class for syntactic tokens.
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25
This file contains macro declarations for importing and exporting symbols from library boundaries...
This file contains types and constants used as parameters or return values.