MeshLib C Docs
Loading...
Searching...
No Matches
MRPositionedText.h File Reference
#include <MRCMesh/MRVector3.h>
#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>
#include <stdbool.h>
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef struct MR_std_string MR_std_string
 
typedef struct MR_PositionedText MR_PositionedText
 

Functions

MRC_API const MR_std_stringMR_PositionedText_Get_text (const MR_PositionedText *_this)
 
MRC_API void MR_PositionedText_Set_text (MR_PositionedText *_this, const char *value, const char *value_end)
 
MRC_API MR_std_stringMR_PositionedText_GetMutable_text (MR_PositionedText *_this)
 
MRC_API const MR_Vector3fMR_PositionedText_Get_position (const MR_PositionedText *_this)
 
MRC_API void MR_PositionedText_Set_position (MR_PositionedText *_this, MR_Vector3f value)
 
MRC_API MR_Vector3fMR_PositionedText_GetMutable_position (MR_PositionedText *_this)
 
MRC_API MR_PositionedTextMR_PositionedText_DefaultConstruct (void)
 
MRC_API MR_PositionedTextMR_PositionedText_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_PositionedTextMR_PositionedText_OffsetPtr (const MR_PositionedText *ptr, ptrdiff_t i)
 
MRC_API MR_PositionedTextMR_PositionedText_OffsetMutablePtr (MR_PositionedText *ptr, ptrdiff_t i)
 
MRC_API MR_PositionedTextMR_PositionedText_ConstructFromAnother (MR_PassBy _other_pass_by, MR_PositionedText *_other)
 
MRC_API MR_PositionedTextMR_PositionedText_Construct (const char *text, const char *text_end, const MR_Vector3f *position)
 
MRC_API void MR_PositionedText_Destroy (const MR_PositionedText *_this)
 Destroys a heap-allocated instance of MR_PositionedText. Does nothing if the pointer is null.
 
MRC_API void MR_PositionedText_DestroyArray (const MR_PositionedText *_this)
 Destroys a heap-allocated array of MR_PositionedText. Does nothing if the pointer is null.
 
MRC_API MR_PositionedTextMR_PositionedText_AssignFromAnother (MR_PositionedText *_this, MR_PassBy _other_pass_by, MR_PositionedText *_other)
 
MRC_API bool MR_equal_MR_PositionedText (const MR_PositionedText *_this, const MR_PositionedText *_1)
 

Typedef Documentation

◆ MR_PositionedText

Generated from class MR::PositionedText. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

◆ MR_std_string

typedef struct MR_std_string MR_std_string

Function Documentation

◆ MR_equal_MR_PositionedText()

MRC_API bool MR_equal_MR_PositionedText ( const MR_PositionedText * _this,
const MR_PositionedText * _1 )

Generated from method MR::PositionedText::operator==. Parameter _this can not be null. It is a single object. Parameter _1 can not be null. It is a single object.

◆ MR_PositionedText_AssignFromAnother()

MRC_API MR_PositionedText * MR_PositionedText_AssignFromAnother ( MR_PositionedText * _this,
MR_PassBy _other_pass_by,
MR_PositionedText * _other )

Generated from method MR::PositionedText::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it had previously.

◆ MR_PositionedText_Construct()

MRC_API MR_PositionedText * MR_PositionedText_Construct ( const char * text,
const char * text_end,
const MR_Vector3f * position )

Generated from constructor MR::PositionedText::PositionedText. Parameter text can not be null. If text_end is null, then text is assumed to be null-terminated. The reference to the parameter text might be preserved in the constructed object. Parameter position can not be null. It is a single object. The reference to the parameter position might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_PositionedText_Destroy() to free it when you're done using it.

◆ MR_PositionedText_ConstructFromAnother()

MRC_API MR_PositionedText * MR_PositionedText_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_PositionedText * _other )

Generated from constructor MR::PositionedText::PositionedText. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_PositionedText_Destroy() to free it when you're done using it.

◆ MR_PositionedText_DefaultConstruct()

MRC_API MR_PositionedText * MR_PositionedText_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_PositionedText_Destroy() to free it when you're done using it.

◆ MR_PositionedText_DefaultConstructArray()

MRC_API MR_PositionedText * MR_PositionedText_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_PositionedText_DestroyArray(). Use MR_PositionedText_OffsetMutablePtr() and MR_PositionedText_OffsetPtr() to access the array elements.

◆ MR_PositionedText_Destroy()

MRC_API void MR_PositionedText_Destroy ( const MR_PositionedText * _this)

Destroys a heap-allocated instance of MR_PositionedText. Does nothing if the pointer is null.

◆ MR_PositionedText_DestroyArray()

MRC_API void MR_PositionedText_DestroyArray ( const MR_PositionedText * _this)

Destroys a heap-allocated array of MR_PositionedText. Does nothing if the pointer is null.

◆ MR_PositionedText_Get_position()

MRC_API const MR_Vector3f * MR_PositionedText_Get_position ( const MR_PositionedText * _this)

Returns a pointer to a member variable of class MR::PositionedText named position. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_PositionedText_Get_text()

MRC_API const MR_std_string * MR_PositionedText_Get_text ( const MR_PositionedText * _this)

Returns a pointer to a member variable of class MR::PositionedText named text. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_PositionedText_GetMutable_position()

MRC_API MR_Vector3f * MR_PositionedText_GetMutable_position ( MR_PositionedText * _this)

Returns a mutable pointer to a member variable of class MR::PositionedText named position. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_PositionedText_GetMutable_text()

MRC_API MR_std_string * MR_PositionedText_GetMutable_text ( MR_PositionedText * _this)

Returns a mutable pointer to a member variable of class MR::PositionedText named text. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_PositionedText_OffsetMutablePtr()

MRC_API MR_PositionedText * MR_PositionedText_OffsetMutablePtr ( MR_PositionedText * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_PositionedText_OffsetPtr()

MRC_API const MR_PositionedText * MR_PositionedText_OffsetPtr ( const MR_PositionedText * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_PositionedText_Set_position()

MRC_API void MR_PositionedText_Set_position ( MR_PositionedText * _this,
MR_Vector3f value )

Modifies a member variable of class MR::PositionedText named position. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element position. When this function is called, this object will drop object references it had previously in position.

◆ MR_PositionedText_Set_text()

MRC_API void MR_PositionedText_Set_text ( MR_PositionedText * _this,
const char * value,
const char * value_end )

Modifies a member variable of class MR::PositionedText named text. Parameter _this can not be null. It is a single object. Parameter value can not be null. If value_end is null, then value is assumed to be null-terminated. The reference to the parameter value might be preserved in this object in element text. When this function is called, this object will drop object references it had previously in text.