MeshLib C Docs
Loading...
Searching...
No Matches
MRViewportId.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/exports.h>
4
5#include <stdbool.h>
6#include <stddef.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12
16typedef struct MR_ViewportId
17{
18 unsigned int id_;
20
25
30
33
38
41MRC_API MR_ViewportId MR_ViewportId_Construct(unsigned int i);
42
46
49MRC_API unsigned int MR_ViewportId_value(const MR_ViewportId *_this);
50
53MRC_API bool MR_ViewportId_valid(const MR_ViewportId *_this);
54
58
62
66
70
74
79MRC_API const unsigned int *MR_ViewportMask_Get_mask_(const MR_ViewportMask *_this);
80
85MRC_API void MR_ViewportMask_Set_mask_(MR_ViewportMask *_this, unsigned int value);
86
92
96
101
104MRC_API const MR_ViewportMask *MR_ViewportMask_OffsetPtr(const MR_ViewportMask *ptr, ptrdiff_t i);
105
109
115
120
125
127MRC_API void MR_ViewportMask_Destroy(const MR_ViewportMask *_this);
128
131
139
144
148
151MRC_API unsigned int MR_ViewportMask_value(const MR_ViewportMask *_this);
152
155MRC_API bool MR_ViewportMask_empty(const MR_ViewportMask *_this);
156
160
164MRC_API bool MR_equal_MR_ViewportMask(const MR_ViewportMask *_this, const MR_ViewportMask *b);
165
170
174MRC_API bool MR_less_MR_ViewportMask(const MR_ViewportMask *_this, const MR_ViewportMask *b);
175
180
187
194
201
205MRC_API void MR_ViewportMask_set(MR_ViewportMask *_this, MR_ViewportId id, const bool *on);
206
212
218
224
228
233
237
241
247
254
257
260
268
273
278
283
288
294
300
301#ifdef __cplusplus
302} // extern "C"
303#endif
struct MR_ViewportMask MR_ViewportMask
Definition MRAddVisualPropertiesMixin.h:32
MRC_API void MR_ViewportIterator_DestroyArray(const MR_ViewportIterator *_this)
Destroys a heap-allocated array of MR_ViewportIterator. Does nothing if the pointer is null.
MRC_API MR_ViewportIterator * MR_ViewportIterator_AssignFromAnother(MR_ViewportIterator *_this, const MR_ViewportIterator *_other)
MRC_API MR_ViewportMask * MR_ViewportMask_AssignFromAnother(MR_ViewportMask *_this, const MR_ViewportMask *_other)
MRC_API MR_ViewportMask * MR_ViewportIterator_mask(const MR_ViewportIterator *_this)
MRC_API MR_ViewportIterator * MR_ViewportIterator_OffsetMutablePtr(MR_ViewportIterator *ptr, ptrdiff_t i)
MRC_API MR_ViewportMask * MR_ViewportMask_any(void)
MRC_API const MR_ViewportMask * MR_ViewportMask_OffsetPtr(const MR_ViewportMask *ptr, ptrdiff_t i)
MRC_API MR_ViewportId MR_ViewportId_DefaultConstruct(void)
Constructs an empty (default-constructed) instance.
MRC_API MR_ViewportId * MR_ViewportId_DefaultConstructArray(size_t num_elems)
MRC_API bool MR_not_equal_MR_ViewportMask(const MR_ViewportMask *_this, const MR_ViewportMask *b)
struct MR_ViewportIterator MR_ViewportIterator
Definition MRViewportId.h:29
MRC_API MR_ViewportMask * MR_ViewportMask_OffsetMutablePtr(MR_ViewportMask *ptr, ptrdiff_t i)
MRC_API MR_ViewportMask * MR_ViewportMask_xor_assign(MR_ViewportMask *_this, const MR_ViewportMask *b)
MRC_API MR_ViewportId MR_ViewportId_prev(const MR_ViewportId *_this)
MRC_API unsigned int MR_ViewportMask_value(const MR_ViewportMask *_this)
MRC_API MR_ViewportId MR_ViewportId_Construct(unsigned int i)
MRC_API bool MR_ViewportMask_contains(const MR_ViewportMask *_this, MR_ViewportId id)
MRC_API unsigned int * MR_ViewportMask_GetMutable_mask_(MR_ViewportMask *_this)
MRC_API void MR_ViewportIterator_Destroy(const MR_ViewportIterator *_this)
Destroys a heap-allocated instance of MR_ViewportIterator. Does nothing if the pointer is null.
MRC_API bool MR_equal_MR_ViewportId(const MR_ViewportId *_this, MR_ViewportId b)
MRC_API MR_ViewportMask * MR_compl_MR_ViewportMask(const MR_ViewportMask *_this)
MRC_API bool MR_ViewportId_valid(const MR_ViewportId *_this)
struct MR_ViewportId MR_ViewportId
MRC_API bool MR_ViewportId_ConvertTo_bool(const MR_ViewportId *_this)
MRC_API void MR_ViewportMask_set(MR_ViewportMask *_this, MR_ViewportId id, const bool *on)
MRC_API const MR_ViewportIterator * MR_ViewportIterator_OffsetPtr(const MR_ViewportIterator *ptr, ptrdiff_t i)
MRC_API MR_ViewportMask * MR_xor_MR_ViewportMask(const MR_ViewportMask *a, const MR_ViewportMask *b)
MRC_API MR_ViewportIterator * MR_incr_MR_ViewportIterator(MR_ViewportIterator *_this)
MRC_API MR_ViewportIterator * MR_end_MR_ViewportMask(const MR_ViewportMask *_1)
MRC_API MR_ViewportMask * MR_ViewportMask_all(void)
MRC_API MR_ViewportMask * MR_ViewportMask_DefaultConstructArray(size_t num_elems)
MRC_API bool MR_equal_MR_ViewportIterator(const MR_ViewportIterator *a, const MR_ViewportIterator *b)
MRC_API unsigned int MR_ViewportId_value(const MR_ViewportId *_this)
MRC_API MR_ViewportIterator * MR_ViewportIterator_DefaultConstruct(void)
MRC_API void MR_ViewportMask_DestroyArray(const MR_ViewportMask *_this)
Destroys a heap-allocated array of MR_ViewportMask. Does nothing if the pointer is null.
MRC_API MR_ViewportMask * MR_bitor_MR_ViewportMask(const MR_ViewportMask *a, const MR_ViewportMask *b)
MRC_API MR_ViewportId MR_ViewportId_next(const MR_ViewportId *_this)
MRC_API MR_ViewportIterator * MR_ViewportIterator_Construct(const MR_ViewportMask *mask)
MRC_API bool MR_less_MR_ViewportMask(const MR_ViewportMask *_this, const MR_ViewportMask *b)
MRC_API const unsigned int * MR_ViewportMask_Get_mask_(const MR_ViewportMask *_this)
MRC_API MR_ViewportIterator * MR_begin_MR_ViewportMask(const MR_ViewportMask *mask)
MRC_API MR_ViewportId MR_deref_MR_ViewportIterator(const MR_ViewportIterator *_this)
MRC_API void MR_ViewportMask_Set_mask_(MR_ViewportMask *_this, unsigned int value)
MRC_API bool MR_not_equal_MR_ViewportId(const MR_ViewportId *_this, MR_ViewportId b)
MRC_API bool MR_equal_MR_ViewportMask(const MR_ViewportMask *_this, const MR_ViewportMask *b)
MRC_API MR_ViewportMask * MR_ViewportMask_bitor_assign(MR_ViewportMask *_this, const MR_ViewportMask *b)
MRC_API void MR_ViewportMask_Destroy(const MR_ViewportMask *_this)
Destroys a heap-allocated instance of MR_ViewportMask. Does nothing if the pointer is null.
MRC_API MR_ViewportMask * MR_ViewportMask_Construct_MR_ViewportId(MR_ViewportId i)
MRC_API MR_ViewportIterator * MR_ViewportIterator_ConstructFromAnother(const MR_ViewportIterator *_other)
MRC_API MR_ViewportMask * MR_bitand_MR_ViewportMask(const MR_ViewportMask *a, const MR_ViewportMask *b)
MRC_API bool MR_ViewportMask_empty(const MR_ViewportMask *_this)
MRC_API bool MR_less_MR_ViewportId(const MR_ViewportId *_this, MR_ViewportId b)
MRC_API MR_ViewportIterator * MR_ViewportIterator_DefaultConstructArray(size_t num_elems)
MRC_API MR_ViewportMask * MR_ViewportMask_DefaultConstruct(void)
MRC_API MR_ViewportMask * MR_ViewportMask_Construct_unsigned_int(unsigned int i)
MRC_API MR_ViewportMask * MR_ViewportMask_bitand_assign(MR_ViewportMask *_this, const MR_ViewportMask *b)
MRC_API MR_ViewportMask * MR_ViewportMask_ConstructFromAnother(const MR_ViewportMask *_other)
Definition MRViewportId.h:17
unsigned int id_
Definition MRViewportId.h:18