libDXF 0.0.1
A library with DXF related functions written in C.
Data Structures | Typedefs | Functions

mtext.h File Reference

Header file for a DXF mtext entity (MTEXT). More...

#include "global.h"
#include "point.h"
#include "binary_graphics_data.h"
Include dependency graph for mtext.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dxf_mtext_struct
 DXF definition of an AutoCAD mtext entity (MTEXT). More...

Typedefs

typedef struct dxf_mtext_struct DxfMtext
 DXF definition of an AutoCAD mtext entity (MTEXT).

Functions

DxfMtextdxf_mtext_new ()
 Allocate memory for a DxfMtext.
DxfMtextdxf_mtext_init (DxfMtext *mtext)
 Allocate memory and initialize data fields in a MTEXT entity.
DxfMtextdxf_mtext_read (DxfFile *fp, DxfMtext *mtext)
 Read data from a DXF file into a MTEXT entity.
int dxf_mtext_write (DxfFile *fp, DxfMtext *mtext)
 Write DXF output for a DXF ARC entity.
int dxf_mtext_free (DxfMtext *mtext)
 Free the allocated memory for a DXF MTEXT and all it's data fields.
void dxf_mtext_free_chain (DxfMtext *mtexts)
 Free the allocated memory for a chain of DXF MTEXT entities and all their data fields.
int dxf_mtext_get_id_code (DxfMtext *mtext)
 Get the id_code from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_id_code (DxfMtext *mtext, int id_code)
 Set the id_code for a DXF MTEXT entity.
char * dxf_mtext_get_linetype (DxfMtext *mtext)
 Get the linetype from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_linetype (DxfMtext *mtext, char *linetype)
 Set the linetype for a DXF MTEXT entity.
char * dxf_mtext_get_layer (DxfMtext *mtext)
 Get the layer from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_layer (DxfMtext *mtext, char *layer)
 Set the layer for a DXF MTEXT entity.
double dxf_mtext_get_elevation (DxfMtext *mtext)
 Get the elevation from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_elevation (DxfMtext *mtext, double elevation)
 Set the elevation for a DXF MTEXT entity.
double dxf_mtext_get_thickness (DxfMtext *mtext)
 Get the thickness from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_thickness (DxfMtext *mtext, double thickness)
 Set the thickness for a DXF MTEXT entity.
double dxf_mtext_get_linetype_scale (DxfMtext *mtext)
 Get the linetype_scale from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_linetype_scale (DxfMtext *mtext, double linetype_scale)
 Set the linetype_scale for a DXF MTEXT entity.
int16_t dxf_mtext_get_visibility (DxfMtext *mtext)
 Get the visibility from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_visibility (DxfMtext *mtext, int16_t visibility)
 Set the visibility for a DXF MTEXT entity.
int dxf_mtext_get_color (DxfMtext *mtext)
 Get the color from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_color (DxfMtext *mtext, int color)
 Set the color for a DXF MTEXT entity.
int dxf_mtext_get_paperspace (DxfMtext *mtext)
 Get the paperspace flag value from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_paperspace (DxfMtext *mtext, int paperspace)
 Set the paperspace flag for a DXF MTEXT entity.
int dxf_mtext_get_graphics_data_size (DxfMtext *mtext)
 Get the graphics_data_size value from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_graphics_data_size (DxfMtext *mtext, int graphics_data_size)
 Set the graphics_data_size value for a DXF MTEXT entity.
int16_t dxf_mtext_get_shadow_mode (DxfMtext *mtext)
 Get the shadow_mode from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_shadow_mode (DxfMtext *mtext, int16_t shadow_mode)
 Set the shadow_mode for a DXF MTEXT entity.
DxfBinaryGraphicsDatadxf_mtext_get_binary_graphics_data (DxfMtext *mtext)
 Get the pointer to the binary_graphics_data from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_binary_graphics_data (DxfMtext *mtext, DxfBinaryGraphicsData *data)
 Set the pointer to the binary_graphics_data for a DXF MTEXT entity.
char * dxf_mtext_get_dictionary_owner_soft (DxfMtext *mtext)
 Get the pointer to the dictionary_owner_soft from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_dictionary_owner_soft (DxfMtext *mtext, char *dictionary_owner_soft)
 Set the pointer to the dictionary_owner_soft for a DXF MTEXT entity.
char * dxf_mtext_get_material (DxfMtext *mtext)
 Get the pointer to the material from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_material (DxfMtext *mtext, char *material)
 Set the pointer to the material for a DXF MTEXT entity.
char * dxf_mtext_get_dictionary_owner_hard (DxfMtext *mtext)
 Get the hard pointer to the dictionary owner from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_dictionary_owner_hard (DxfMtext *mtext, char *dictionary_owner_hard)
 Set the pointer to the dictionary_owner_hard for a DXF MTEXT entity.
int16_t dxf_mtext_get_lineweight (DxfMtext *mtext)
 Get the lineweight from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_lineweight (DxfMtext *mtext, int16_t lineweight)
 Set the lineweight for a DXF MTEXT entity.
char * dxf_mtext_get_plot_style_name (DxfMtext *mtext)
 Get the plot_style_name from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_plot_style_name (DxfMtext *mtext, char *plot_style_name)
 Set the plot_style_name for a DXF MTEXT entity.
long dxf_mtext_get_color_value (DxfMtext *mtext)
 Get the color_value from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_color_value (DxfMtext *mtext, long color_value)
 Set the color_value for a DXF MTEXT entity.
char * dxf_mtext_get_color_name (DxfMtext *mtext)
 Get the color_name from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_color_name (DxfMtext *mtext, char *color_name)
 Set the color_name for a DXF MTEXT entity.
long dxf_mtext_get_transparency (DxfMtext *mtext)
 Get the transparency from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_transparency (DxfMtext *mtext, long transparency)
 Set the transparency for a DXF MTEXT entity.
char * dxf_mtext_get_text_value (DxfMtext *mtext)
 Get the text_value from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_text_value (DxfMtext *mtext, char *text_value)
 Set the text_value for a DXF MTEXT entity.
char * dxf_mtext_get_text_style (DxfMtext *mtext)
 Get the text_style from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_text_style (DxfMtext *mtext, char *text_style)
 Set the text_style for a DXF MTEXT entity.
DxfPointdxf_mtext_get_p0 (DxfMtext *mtext)
 Get the insertion point p0 of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_p0 (DxfMtext *mtext, DxfPoint *p0)
 Set the insertion point p0 of a DXF MTEXT entity.
double dxf_mtext_get_x0 (DxfMtext *mtext)
 Get the X-value of the insertion point x0 of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_x0 (DxfMtext *mtext, double x0)
 Set the X-value of the insertion point x0 of a DXF MTEXT entity.
double dxf_mtext_get_y0 (DxfMtext *mtext)
 Get the Y-value of the insertion point y0 of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_y0 (DxfMtext *mtext, double y0)
 Set the Y-value of the insertion point y0 of a DXF MTEXT entity.
double dxf_mtext_get_z0 (DxfMtext *mtext)
 Get the Z-value of the insertion point z0 of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_z0 (DxfMtext *mtext, double z0)
 Set the Z-value of the insertion point z0 of a DXF MTEXT entity.
DxfPointdxf_mtext_get_p1 (DxfMtext *mtext)
 Get the direction vector p1 of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_p1 (DxfMtext *mtext, DxfPoint *p1)
 Set the direction vector p1 of a DXF MTEXT entity.
double dxf_mtext_get_x1 (DxfMtext *mtext)
 Get the X-value of the direction vector x0 of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_x1 (DxfMtext *mtext, double x1)
 Set the X-value of the direction vector x1 of a DXF MTEXT entity.
double dxf_mtext_get_y1 (DxfMtext *mtext)
 Get the Y-value of the direction vector y1 of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_y1 (DxfMtext *mtext, double y1)
 Set the Y-value of the direction vector y1 of a DXF MTEXT entity.
double dxf_mtext_get_z1 (DxfMtext *mtext)
 Get the Z-value of the direction vector z1 of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_z1 (DxfMtext *mtext, double z1)
 Set the Z-value of the direction vector z1 of a DXF MTEXT entity.
double dxf_mtext_get_height (DxfMtext *mtext)
 Get the nominal (initial) text height of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_height (DxfMtext *mtext, double height)
 Set the nominal (initial) text height of a DXF MTEXT entity.
double dxf_mtext_get_rectangle_width (DxfMtext *mtext)
 Get the rectangle_width of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_rectangle_width (DxfMtext *mtext, double rectangle_width)
 Set the rectangle_width of a DXF MTEXT entity.
double dxf_mtext_get_horizontal_width (DxfMtext *mtext)
 Get the horizontal_width of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_horizontal_width (DxfMtext *mtext, double horizontal_width)
 Set the horizontal_width of a DXF MTEXT entity.
double dxf_mtext_get_rectangle_height (DxfMtext *mtext)
 Get the rectangle_height of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_rectangle_height (DxfMtext *mtext, double rectangle_height)
 Set the rectangle_height of a DXF MTEXT entity.
double dxf_mtext_get_spacing_factor (DxfMtext *mtext)
 Get the spacing_factor of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_spacing_factor (DxfMtext *mtext, double spacing_factor)
 Set the spacing_factor of a DXF MTEXT entity.
double dxf_mtext_get_box_scale (DxfMtext *mtext)
 Get the box_scale of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_box_scale (DxfMtext *mtext, double box_scale)
 Set the box_scale of a DXF MTEXT entity.
double dxf_mtext_get_column_width (DxfMtext *mtext)
 Get the column_width of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_column_width (DxfMtext *mtext, double column_width)
 Set the column_width of a DXF MTEXT entity.
double dxf_mtext_get_column_gutter (DxfMtext *mtext)
 Get the column_gutter of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_column_gutter (DxfMtext *mtext, double column_gutter)
 Set the column_gutter of a DXF MTEXT entity.
double dxf_mtext_get_column_heights (DxfMtext *mtext)
 Get the column_heights of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_column_heights (DxfMtext *mtext, double column_heights)
 Set the column_heights of a DXF MTEXT entity.
double dxf_mtext_get_rot_angle (DxfMtext *mtext)
 Get the rot_angle of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_rot_angle (DxfMtext *mtext, double rot_angle)
 Set the rot_angle of a DXF MTEXT entity.
int dxf_mtext_get_background_color (DxfMtext *mtext)
 Get the background_color from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_background_color (DxfMtext *mtext, int background_color)
 Set the background_color for a DXF MTEXT entity.
int dxf_mtext_get_attachment_point (DxfMtext *mtext)
 Get the attachment_point from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_attachment_point (DxfMtext *mtext, int attachment_point)
 Set the attachment_point for a DXF MTEXT entity.
int dxf_mtext_get_drawing_direction (DxfMtext *mtext)
 Get the drawing_direction from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_drawing_direction (DxfMtext *mtext, int drawing_direction)
 Set the drawing_direction for a DXF MTEXT entity.
int dxf_mtext_get_spacing_style (DxfMtext *mtext)
 Get the spacing_style from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_spacing_style (DxfMtext *mtext, int spacing_style)
 Set the spacing_style for a DXF MTEXT entity.
int dxf_mtext_get_column_type (DxfMtext *mtext)
 Get the column_type from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_column_type (DxfMtext *mtext, int column_type)
 Set the column_type for a DXF MTEXT entity.
int dxf_mtext_get_column_count (DxfMtext *mtext)
 Get the column_count from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_column_count (DxfMtext *mtext, int column_count)
 Set the column_count for a DXF MTEXT entity.
int dxf_mtext_get_column_flow (DxfMtext *mtext)
 Get the column_flow from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_column_flow (DxfMtext *mtext, int column_flow)
 Set the column_flow for a DXF MTEXT entity.
int dxf_mtext_get_column_autoheight (DxfMtext *mtext)
 Get the column_autoheight from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_column_autoheight (DxfMtext *mtext, int column_autoheight)
 Set the column_autoheight for a DXF MTEXT entity.
int dxf_mtext_get_background_fill (DxfMtext *mtext)
 Get the background_fill from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_background_fill (DxfMtext *mtext, int background_fill)
 Set the background_fill for a DXF MTEXT entity.
double dxf_mtext_get_extr_x0 (DxfMtext *mtext)
 Get the X-value of the extrusion vector extr_x0 of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_extr_x0 (DxfMtext *mtext, double extr_x0)
 Set the X-value of the extrusion vector extr_x0 of a DXF MTEXT entity.
double dxf_mtext_get_extr_y0 (DxfMtext *mtext)
 Get the Y-value of the extrusion vector extr_y0 of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_extr_y0 (DxfMtext *mtext, double extr_y0)
 Set the Y-value of the extrusion vector extr_y0 of a DXF MTEXT entity.
double dxf_mtext_get_extr_z0 (DxfMtext *mtext)
 Get the Z-value of the extrusion vector extr_z0 of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_extr_z0 (DxfMtext *mtext, double extr_z0)
 Set the Z-value of the extrusion vector extr_z0 of a DXF MTEXT entity.
DxfMtextdxf_mtext_set_extrusion_vector_from_point (DxfMtext *mtext, DxfPoint *point)
 Set the extrusion vector from a DXF POINT for a DXF MTEXT entity.
DxfMtextdxf_mtext_set_extrusion_vector (DxfMtext *mtext, double extr_x0, double extr_y0, double extr_z0)
 Set the extrusion vector for a DXF MTEXT entity.
int32_t dxf_mtext_get_background_color_rgb (DxfMtext *mtext)
 Get the background_color_rgb from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_background_color_rgb (DxfMtext *mtext, int32_t background_color_rgb)
 Set the background_color_rgb for a DXF MTEXT entity.
char * dxf_mtext_get_background_color_name (DxfMtext *mtext)
 Get the background_color_name from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_background_color_name (DxfMtext *mtext, char *background_color_name)
 Set the background_color_name for a DXF MTEXT entity.
int32_t dxf_mtext_get_background_transparency (DxfMtext *mtext)
 Get the background_transparency from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_background_transparency (DxfMtext *mtext, int32_t background_transparency)
 Set the background_transparency for a DXF MTEXT entity.
DxfMtextdxf_mtext_get_next (DxfMtext *mtext)
 Get the pointer to the next MTEXT entity from a DXF MTEXT entity.
DxfMtextdxf_mtext_set_next (DxfMtext *mtext, DxfMtext *next)
 Set the pointer to the next MTEXT for a DXF MTEXT entity.
DxfMtextdxf_mtext_get_last (DxfMtext *mtext)
 Get the pointer to the last MTEXT entity from a linked list of DXF MTEXT entities.

Detailed Description

Header file for a DXF mtext entity (MTEXT).

Author:
Copyright (C) 2012, 2014, 2015, 2016, 2017 by Bert Timmerman <bert.timmerman@xs4all.nl>.
Copyright (C) 2012, 2013 by Paolo Caroni <kenren89@gmail.com>.
Version:
According to DXF R10 (backward compatibility).
According to DXF R11 (backward compatibility).
According to DXF R12 (backward compatibility).
According to DXF R13.
According to DXF R14.

Copyright Notices.


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to:
Free Software Foundation, Inc.,
59 Temple Place,
Suite 330,
Boston,
MA 02111 USA.

Drawing eXchange Format (DXF) is a defacto industry standard for the exchange of drawing files between various Computer Aided Drafting programs.
DXF is an industry standard designed by Autodesk(TM).
For more details see http://www.autodesk.com .


Definition in file mtext.h.


Typedef Documentation

typedef struct dxf_mtext_struct DxfMtext

DXF definition of an AutoCAD mtext entity (MTEXT).


Function Documentation

DxfMtext* dxf_mtext_new ( )

Allocate memory for a DxfMtext.

Fill the memory contents with zeros.

Definition at line 53 of file mtext.c.

References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_mtext_init(), and dxf_mtext_read().

DxfMtext* dxf_mtext_init ( DxfMtext mtext)

Allocate memory and initialize data fields in a MTEXT entity.

Returns:
NULL when no memory was allocated, a pointer to the allocated memory when succesful.
Parameters:
mtexta pointer to the DXF mtext entity.

Definition at line 90 of file mtext.c.

References _, dxf_mtext_struct::attachment_point, dxf_mtext_struct::background_color, dxf_mtext_struct::background_color_name, dxf_mtext_struct::background_color_rgb, dxf_mtext_struct::background_fill, dxf_mtext_struct::background_transparency, dxf_mtext_struct::box_scale, dxf_mtext_struct::color, dxf_mtext_struct::column_autoheight, dxf_mtext_struct::column_count, dxf_mtext_struct::column_flow, dxf_mtext_struct::column_gutter, dxf_mtext_struct::column_heights, dxf_mtext_struct::column_type, dxf_mtext_struct::column_width, dxf_mtext_struct::drawing_direction, DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_MAX_PARAM, DXF_MODELSPACE, dxf_mtext_new(), dxf_mtext_struct::elevation, dxf_mtext_struct::extr_x0, dxf_mtext_struct::extr_y0, dxf_mtext_struct::extr_z0, dxf_mtext_struct::height, dxf_mtext_struct::horizontal_width, dxf_mtext_struct::id_code, dxf_mtext_struct::layer, dxf_mtext_struct::linetype, dxf_mtext_struct::p0, dxf_mtext_struct::p1, dxf_mtext_struct::paperspace, dxf_mtext_struct::rectangle_height, dxf_mtext_struct::rectangle_width, dxf_mtext_struct::rot_angle, dxf_mtext_struct::spacing_factor, dxf_mtext_struct::spacing_style, dxf_mtext_struct::text_additional_value, dxf_mtext_struct::text_style, dxf_mtext_struct::text_value, dxf_mtext_struct::thickness, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.

Referenced by dxf_mtext_read().

Here is the call graph for this function:

DxfMtext* dxf_mtext_read ( DxfFile fp,
DxfMtext mtext 
)

Read data from a DXF file into a MTEXT entity.

The last line read from file contained the string "MTEXT".
Now follows some data for the MTEXT, to be terminated with a " 0" string announcing the following entity, or the end of the ENTITY section marker ENDSEC.
While parsing the DXF file store data in mtext.

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred.

< Add more code here, I'm stop because the double use of group code 50

Parameters:
fpDXF filepointer to the input file (or device).
mtexta pointer to the DXF mtext entity.

Definition at line 180 of file mtext.c.

References _, dxf_file_struct::acad_version_number, dxf_mtext_struct::attachment_point, AutoCAD_11, AutoCAD_13, AutoCAD_2006, AutoCAD_2007, dxf_mtext_struct::background_color, dxf_mtext_struct::background_fill, dxf_mtext_struct::box_scale, dxf_mtext_struct::column_autoheight, dxf_mtext_struct::column_count, dxf_mtext_struct::column_flow, dxf_mtext_struct::column_gutter, dxf_mtext_struct::column_type, dxf_mtext_struct::column_width, dxf_mtext_struct::drawing_direction, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_FLATLAND, dxf_mtext_init(), dxf_mtext_new(), dxf_mtext_struct::elevation, dxf_mtext_struct::extr_x0, dxf_mtext_struct::extr_y0, dxf_mtext_struct::extr_z0, dxf_file_struct::filename, dxf_file_struct::fp, dxf_mtext_struct::height, dxf_mtext_struct::horizontal_width, dxf_mtext_struct::id_code, dxf_mtext_struct::layer, dxf_file_struct::line_number, dxf_mtext_struct::linetype, dxf_mtext_struct::p0, dxf_mtext_struct::p1, dxf_mtext_struct::rectangle_height, dxf_mtext_struct::rectangle_width, dxf_mtext_struct::rot_angle, dxf_mtext_struct::spacing_factor, dxf_mtext_struct::spacing_style, dxf_mtext_struct::text_style, dxf_mtext_struct::text_value, dxf_mtext_struct::thickness, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.

Here is the call graph for this function:

int dxf_mtext_write ( DxfFile fp,
DxfMtext mtext 
)

Write DXF output for a DXF ARC entity.

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred.
Warning:
This entity requires AutoCAD version R13 or higher. When the follow_strict_version_rules flag is set to TRUE in the DxfFile struct, this entity will be skipped from file. When the follow_strict_version_rules flag is set to FALSE in the DxfFile struct, libdxf will write this entity to file and report with a warning message to stderr.

Todo:
for version R14.
Implementing the start of application-defined group "{application_name", with Group code 102.
For example: "{ACAD_REACTORS" indicates the start of the AutoCAD persistent reactors group.

application-defined codes: Group codes and values within the 102 groups are application defined (optional).

End of group, "}" (optional), with Group code 102.

Parameters:
fpDXF file pointer to an output file (or device).
mtexta pointer to the DXF MTEXT entity.

Definition at line 542 of file mtext.c.

References _, dxf_file_struct::acad_version_number, dxf_mtext_struct::attachment_point, AutoCAD_11, AutoCAD_12, AutoCAD_13, AutoCAD_14, dxf_mtext_struct::color, dxf_mtext_struct::dictionary_owner_hard, dxf_mtext_struct::dictionary_owner_soft, dxf_mtext_struct::drawing_direction, DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_FLATLAND, DXF_PAPERSPACE, dxf_mtext_struct::elevation, dxf_mtext_struct::extr_x0, dxf_mtext_struct::extr_y0, dxf_mtext_struct::extr_z0, dxf_file_struct::follow_strict_version_rules, dxf_file_struct::fp, dxf_mtext_struct::height, dxf_mtext_struct::horizontal_width, dxf_mtext_struct::id_code, dxf_mtext_struct::layer, dxf_mtext_struct::linetype, dxf_mtext_struct::linetype_scale, dxf_mtext_struct::p0, dxf_mtext_struct::p1, dxf_mtext_struct::paperspace, dxf_mtext_struct::rectangle_height, dxf_mtext_struct::rectangle_width, dxf_mtext_struct::rot_angle, dxf_mtext_struct::text_additional_value, dxf_mtext_struct::text_style, dxf_mtext_struct::text_value, dxf_mtext_struct::thickness, dxf_mtext_struct::visibility, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.

int dxf_mtext_free ( DxfMtext mtext)

Free the allocated memory for a DXF MTEXT and all it's data fields.

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred.
Parameters:
mtexta pointer to the DXF mtext entity.

Definition at line 726 of file mtext.c.

References _, dxf_mtext_struct::background_color_name, dxf_mtext_struct::dictionary_owner_hard, dxf_mtext_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_MAX_PARAM, dxf_mtext_struct::layer, dxf_mtext_struct::linetype, dxf_mtext_struct::next, dxf_mtext_struct::text_additional_value, dxf_mtext_struct::text_style, and dxf_mtext_struct::text_value.

Referenced by dxf_mtext_free_chain().

void dxf_mtext_free_chain ( DxfMtext mtexts)

Free the allocated memory for a chain of DXF MTEXT entities and all their data fields.

Parameters:
mtextsa pointer to the chain of DXF MTEXT entities.

Definition at line 777 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_free(), and dxf_mtext_struct::next.

Here is the call graph for this function:

int dxf_mtext_get_id_code ( DxfMtext mtext)

Get the id_code from a DXF MTEXT entity.

Returns:
id_code.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 810 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::id_code.

DxfMtext* dxf_mtext_set_id_code ( DxfMtext mtext,
int  id_code 
)

Set the id_code for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
id_codeIdentification number for the entity.
This is to be an unique (sequential) number in the DXF file.

Definition at line 845 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::id_code.

char* dxf_mtext_get_linetype ( DxfMtext mtext)

Get the linetype from a DXF MTEXT entity.

Returns:
linetype when sucessful, NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 887 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::linetype.

DxfMtext* dxf_mtext_set_linetype ( DxfMtext mtext,
char *  linetype 
)

Set the linetype for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
linetypea string containing the linetype for the entity.

Definition at line 922 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::linetype.

char* dxf_mtext_get_layer ( DxfMtext mtext)

Get the layer from a DXF MTEXT entity.

Returns:
layer when sucessful, NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 962 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::layer.

DxfMtext* dxf_mtext_set_layer ( DxfMtext mtext,
char *  layer 
)

Set the layer for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
layera string containing the layer for the entity.

Definition at line 997 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::layer.

double dxf_mtext_get_elevation ( DxfMtext mtext)

Get the elevation from a DXF MTEXT entity.

Returns:
elevation.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 1037 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::elevation.

DxfMtext* dxf_mtext_set_elevation ( DxfMtext mtext,
double  elevation 
)

Set the elevation for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
elevationthe elevation to be set for the entity.

Definition at line 1065 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::elevation.

double dxf_mtext_get_thickness ( DxfMtext mtext)

Get the thickness from a DXF MTEXT entity.

Returns:
thickness.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 1098 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::thickness.

DxfMtext* dxf_mtext_set_thickness ( DxfMtext mtext,
double  thickness 
)

Set the thickness for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
thicknessthe thickness to be set for the entity.

Definition at line 1133 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::thickness.

double dxf_mtext_get_linetype_scale ( DxfMtext mtext)

Get the linetype_scale from a DXF MTEXT entity.

Returns:
linetype_scale.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 1173 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::linetype_scale.

DxfMtext* dxf_mtext_set_linetype_scale ( DxfMtext mtext,
double  linetype_scale 
)

Set the linetype_scale for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
linetype_scalethe linetype_scale to be set for the entity.

Definition at line 1208 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::linetype_scale.

int16_t dxf_mtext_get_visibility ( DxfMtext mtext)

Get the visibility from a DXF MTEXT entity.

Returns:
visibility.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 1248 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::visibility.

DxfMtext* dxf_mtext_set_visibility ( DxfMtext mtext,
int16_t  visibility 
)

Set the visibility for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
visibilitythe visibility to be set for the entity.

Definition at line 1290 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::visibility.

int dxf_mtext_get_color ( DxfMtext mtext)

Get the color from a DXF MTEXT entity.

Returns:
color.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 1337 of file mtext.c.

References _, dxf_mtext_struct::color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_color ( DxfMtext mtext,
int  color 
)

Set the color for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
colorthe color to be set for the entity.

Definition at line 1371 of file mtext.c.

References _, dxf_mtext_struct::color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

int dxf_mtext_get_paperspace ( DxfMtext mtext)

Get the paperspace flag value from a DXF MTEXT entity.

Returns:
paperspace flag value.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 1410 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::paperspace.

DxfMtext* dxf_mtext_set_paperspace ( DxfMtext mtext,
int  paperspace 
)

Set the paperspace flag for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
paperspacethe paperspace flag value to be set for the entity.

Definition at line 1450 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::paperspace.

int dxf_mtext_get_graphics_data_size ( DxfMtext mtext)

Get the graphics_data_size value from a DXF MTEXT entity.

Returns:
graphics_data_size value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 1498 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::graphics_data_size.

DxfMtext* dxf_mtext_set_graphics_data_size ( DxfMtext mtext,
int  graphics_data_size 
)

Set the graphics_data_size value for a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
graphics_data_sizethe graphics_data_size value to be set for the entity.

Definition at line 1541 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::graphics_data_size.

int16_t dxf_mtext_get_shadow_mode ( DxfMtext mtext)

Get the shadow_mode from a DXF MTEXT entity.

Returns:
shadow_mode when successful, or EXIT_FAILURE when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 1589 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::shadow_mode.

DxfMtext* dxf_mtext_set_shadow_mode ( DxfMtext mtext,
int16_t  shadow_mode 
)

Set the shadow_mode for a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
shadow_modethe shadow mode to be set for the entity.

Definition at line 1634 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::shadow_mode.

DxfBinaryGraphicsData* dxf_mtext_get_binary_graphics_data ( DxfMtext mtext)

Get the pointer to the binary_graphics_data from a DXF MTEXT entity.

Returns:
pointer to the binary_graphics_data.
Warning:
No checks are performed on the returned pointer.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 1684 of file mtext.c.

References _, dxf_mtext_struct::binary_graphics_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_binary_graphics_data ( DxfMtext mtext,
DxfBinaryGraphicsData data 
)

Set the pointer to the binary_graphics_data for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
dataa string containing the pointer to the binary_graphics_data for the entity.

Definition at line 1720 of file mtext.c.

References _, dxf_mtext_struct::binary_graphics_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

char* dxf_mtext_get_dictionary_owner_soft ( DxfMtext mtext)

Get the pointer to the dictionary_owner_soft from a DXF MTEXT entity.

Returns:
pointer to the dictionary_owner_soft.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 1764 of file mtext.c.

References _, dxf_mtext_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_dictionary_owner_soft ( DxfMtext mtext,
char *  dictionary_owner_soft 
)

Set the pointer to the dictionary_owner_soft for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
dictionary_owner_softa string containing the pointer to the dictionary_owner_soft for the entity.

Definition at line 1800 of file mtext.c.

References _, dxf_mtext_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

char* dxf_mtext_get_material ( DxfMtext mtext)

Get the pointer to the material from a DXF MTEXT entity.

Returns:
a pointer to material when successful, or NULL when an error occurred.
Warning:
No checks are performed on the returned pointer.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 1844 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::material.

DxfMtext* dxf_mtext_set_material ( DxfMtext mtext,
char *  material 
)

Set the pointer to the material for a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
materiala string containing the pointer to the material for the entity.

Definition at line 1882 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::material.

char* dxf_mtext_get_dictionary_owner_hard ( DxfMtext mtext)

Get the hard pointer to the dictionary owner from a DXF MTEXT entity.

Returns:
hard pointer to the dictionary owner.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 1926 of file mtext.c.

References _, dxf_mtext_struct::dictionary_owner_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_dictionary_owner_hard ( DxfMtext mtext,
char *  dictionary_owner_hard 
)

Set the pointer to the dictionary_owner_hard for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
dictionary_owner_harda string containing the pointer to the dictionary_owner_hard for the entity.

Definition at line 1962 of file mtext.c.

References _, dxf_mtext_struct::dictionary_owner_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

int16_t dxf_mtext_get_lineweight ( DxfMtext mtext)

Get the lineweight from a DXF MTEXT entity.

Returns:
lineweight when successful, or EXIT_FAILURE when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 2004 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::lineweight.

DxfMtext* dxf_mtext_set_lineweight ( DxfMtext mtext,
int16_t  lineweight 
)

Set the lineweight for a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
lineweightthe lineweight to be set for the entity.

Definition at line 2035 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::lineweight.

char* dxf_mtext_get_plot_style_name ( DxfMtext mtext)

Get the plot_style_name from a DXF MTEXT entity.

Returns:
a pointer to plot_style_name when sucessful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 2069 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::plot_style_name.

DxfMtext* dxf_mtext_set_plot_style_name ( DxfMtext mtext,
char *  plot_style_name 
)

Set the plot_style_name for a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
plot_style_namea string containing the plot_style_name for the entity.

Definition at line 2107 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::plot_style_name.

long dxf_mtext_get_color_value ( DxfMtext mtext)

Get the color_value from a DXF MTEXT entity.

Returns:
color_value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 2149 of file mtext.c.

References _, dxf_mtext_struct::color_value, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_color_value ( DxfMtext mtext,
long  color_value 
)

Set the color_value for a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
color_valuethe color_value to be set for the entity.

Definition at line 2180 of file mtext.c.

References _, dxf_mtext_struct::color_value, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

char* dxf_mtext_get_color_name ( DxfMtext mtext)

Get the color_name from a DXF MTEXT entity.

Returns:
color_name when sucessful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 2214 of file mtext.c.

References _, dxf_mtext_struct::color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_color_name ( DxfMtext mtext,
char *  color_name 
)

Set the color_name for a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
color_namea string containing the color_name for the entity.

Definition at line 2252 of file mtext.c.

References _, dxf_mtext_struct::color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

long dxf_mtext_get_transparency ( DxfMtext mtext)

Get the transparency from a DXF MTEXT entity.

Returns:
transparency when successful, or EXIT_FAILURE when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 2294 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::transparency.

DxfMtext* dxf_mtext_set_transparency ( DxfMtext mtext,
long  transparency 
)

Set the transparency for a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
transparencythe transparency to be set for the entity.

Definition at line 2325 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::transparency.

char* dxf_mtext_get_text_value ( DxfMtext mtext)

Get the text_value from a DXF MTEXT entity.

Returns:
text_value when sucessful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 2359 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::text_value.

DxfMtext* dxf_mtext_set_text_value ( DxfMtext mtext,
char *  text_value 
)

Set the text_value for a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
text_valuea string containing the text_value for the entity.

Definition at line 2397 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::text_value.

char* dxf_mtext_get_text_style ( DxfMtext mtext)

Get the text_style from a DXF MTEXT entity.

Returns:
text_style when sucessful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 2439 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::text_style.

DxfMtext* dxf_mtext_set_text_style ( DxfMtext mtext,
char *  text_style 
)

Set the text_style for a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
text_stylea string containing the text_style for the entity.

Definition at line 2477 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::text_style.

DxfPoint* dxf_mtext_get_p0 ( DxfMtext mtext)

Get the insertion point p0 of a DXF MTEXT entity.

Returns:
the insertion point p0.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 2518 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::p0.

DxfMtext* dxf_mtext_set_p0 ( DxfMtext mtext,
DxfPoint p0 
)

Set the insertion point p0 of a DXF MTEXT entity.

Returns:
a pointer to a DXF MTEXT entity.
Parameters:
mtexta pointer to a DXF MTEXT entity.
p0a pointer to a DXF POINT entity.

Definition at line 2555 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::p0.

double dxf_mtext_get_x0 ( DxfMtext mtext)

Get the X-value of the insertion point x0 of a DXF MTEXT entity.

Returns:
the X-value of the insertion point x0.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 2596 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p0, and dxf_point_struct::x0.

DxfMtext* dxf_mtext_set_x0 ( DxfMtext mtext,
double  x0 
)

Set the X-value of the insertion point x0 of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
x0the X-value of the insertion point x0 of a DXF MTEXT entity.

Definition at line 2636 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p0, and dxf_point_struct::x0.

double dxf_mtext_get_y0 ( DxfMtext mtext)

Get the Y-value of the insertion point y0 of a DXF MTEXT entity.

Returns:
the Y-value of the insertion point y0.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 2678 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p0, and dxf_point_struct::y0.

DxfMtext* dxf_mtext_set_y0 ( DxfMtext mtext,
double  y0 
)

Set the Y-value of the insertion point y0 of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
y0the Y-value of the insertion point y0 of a DXF MTEXT entity.

Definition at line 2718 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p0, and dxf_point_struct::y0.

double dxf_mtext_get_z0 ( DxfMtext mtext)

Get the Z-value of the insertion point z0 of a DXF MTEXT entity.

Returns:
the Z-value of the insertion point z0.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 2760 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p0, and dxf_point_struct::z0.

DxfMtext* dxf_mtext_set_z0 ( DxfMtext mtext,
double  z0 
)

Set the Z-value of the insertion point z0 of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
z0the Z-value of the insertion point z0 of a DXF MTEXT entity.

Definition at line 2800 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p0, and dxf_point_struct::z0.

DxfPoint* dxf_mtext_get_p1 ( DxfMtext mtext)

Get the direction vector p1 of a DXF MTEXT entity.

Returns:
the direction vector p1.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 2841 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::p1.

DxfMtext* dxf_mtext_set_p1 ( DxfMtext mtext,
DxfPoint p1 
)

Set the direction vector p1 of a DXF MTEXT entity.

Returns:
a pointer to a DXF MTEXT entity.
Parameters:
mtexta pointer to a DXF MTEXT entity.
p1a pointer to a DXF POINT entity.

Definition at line 2878 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::p1.

double dxf_mtext_get_x1 ( DxfMtext mtext)

Get the X-value of the direction vector x0 of a DXF MTEXT entity.

Returns:
the X-value of the direction vector x0.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 2919 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p1, and dxf_point_struct::x0.

DxfMtext* dxf_mtext_set_x1 ( DxfMtext mtext,
double  x1 
)

Set the X-value of the direction vector x1 of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
x1the X-value of the direction vector x1 of a DXF MTEXT entity.

Definition at line 2959 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p1, and dxf_point_struct::x0.

double dxf_mtext_get_y1 ( DxfMtext mtext)

Get the Y-value of the direction vector y1 of a DXF MTEXT entity.

Returns:
the Y-value of the direction vector y1.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 3001 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p1, and dxf_point_struct::y0.

DxfMtext* dxf_mtext_set_y1 ( DxfMtext mtext,
double  y1 
)

Set the Y-value of the direction vector y1 of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
y1the Y-value of the direction vector y1 of a DXF MTEXT entity.

Definition at line 3041 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p1, and dxf_point_struct::y0.

double dxf_mtext_get_z1 ( DxfMtext mtext)

Get the Z-value of the direction vector z1 of a DXF MTEXT entity.

Returns:
the Z-value of the direction vector z1.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 3083 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p1, and dxf_point_struct::z0.

DxfMtext* dxf_mtext_set_z1 ( DxfMtext mtext,
double  z1 
)

Set the Z-value of the direction vector z1 of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
z1the Z-value of the direction vector z1 of a DXF MTEXT entity.

Definition at line 3123 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p1, and dxf_point_struct::z0.

double dxf_mtext_get_height ( DxfMtext mtext)

Get the nominal (initial) text height of a DXF MTEXT entity.

Returns:
the nominal (initial) text height.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 3165 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::height.

DxfMtext* dxf_mtext_set_height ( DxfMtext mtext,
double  height 
)

Set the nominal (initial) text height of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
heightthe nominal (initial) text height of a DXF MTEXT entity.

Definition at line 3204 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::height.

double dxf_mtext_get_rectangle_width ( DxfMtext mtext)

Get the rectangle_width of a DXF MTEXT entity.

Returns:
the rectangle_width.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 3245 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::rectangle_width.

DxfMtext* dxf_mtext_set_rectangle_width ( DxfMtext mtext,
double  rectangle_width 
)

Set the rectangle_width of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
rectangle_widththe rectangle_width of a DXF MTEXT entity.

Definition at line 3284 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::rectangle_width.

double dxf_mtext_get_horizontal_width ( DxfMtext mtext)

Get the horizontal_width of a DXF MTEXT entity.

Returns:
the horizontal_width.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 3323 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::horizontal_width.

DxfMtext* dxf_mtext_set_horizontal_width ( DxfMtext mtext,
double  horizontal_width 
)

Set the horizontal_width of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
horizontal_widththe horizontal_width of a DXF MTEXT entity.

Definition at line 3361 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::horizontal_width.

double dxf_mtext_get_rectangle_height ( DxfMtext mtext)

Get the rectangle_height of a DXF MTEXT entity.

Returns:
the rectangle_height.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 3400 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::rectangle_height.

DxfMtext* dxf_mtext_set_rectangle_height ( DxfMtext mtext,
double  rectangle_height 
)

Set the rectangle_height of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
rectangle_heightthe rectangle_height of a DXF MTEXT entity.

Definition at line 3438 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::rectangle_height.

double dxf_mtext_get_spacing_factor ( DxfMtext mtext)

Get the spacing_factor of a DXF MTEXT entity.

Returns:
the spacing_factor.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 3477 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::spacing_factor.

DxfMtext* dxf_mtext_set_spacing_factor ( DxfMtext mtext,
double  spacing_factor 
)

Set the spacing_factor of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
spacing_factorthe spacing_factor of a DXF MTEXT entity.

Definition at line 3515 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::spacing_factor.

double dxf_mtext_get_box_scale ( DxfMtext mtext)

Get the box_scale of a DXF MTEXT entity.

Returns:
the box_scale.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 3554 of file mtext.c.

References _, dxf_mtext_struct::box_scale, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_box_scale ( DxfMtext mtext,
double  box_scale 
)

Set the box_scale of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
box_scalethe box_scale of a DXF MTEXT entity.

Definition at line 3592 of file mtext.c.

References _, dxf_mtext_struct::box_scale, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

double dxf_mtext_get_column_width ( DxfMtext mtext)

Get the column_width of a DXF MTEXT entity.

Returns:
the column_width.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 3631 of file mtext.c.

References _, dxf_mtext_struct::column_width, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_column_width ( DxfMtext mtext,
double  column_width 
)

Set the column_width of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
column_widththe column_width of a DXF MTEXT entity.

Definition at line 3669 of file mtext.c.

References _, dxf_mtext_struct::column_width, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

double dxf_mtext_get_column_gutter ( DxfMtext mtext)

Get the column_gutter of a DXF MTEXT entity.

Returns:
the column_width.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 3708 of file mtext.c.

References _, dxf_mtext_struct::column_gutter, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_column_gutter ( DxfMtext mtext,
double  column_gutter 
)

Set the column_gutter of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
column_gutterthe column_gutter of a DXF MTEXT entity.

Definition at line 3746 of file mtext.c.

References _, dxf_mtext_struct::column_gutter, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

double dxf_mtext_get_column_heights ( DxfMtext mtext)

Get the column_heights of a DXF MTEXT entity.

Returns:
the column_heights.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 3785 of file mtext.c.

References _, dxf_mtext_struct::column_heights, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_column_heights ( DxfMtext mtext,
double  column_heights 
)

Set the column_heights of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
column_heightsthe column_heights of a DXF MTEXT entity.

Definition at line 3823 of file mtext.c.

References _, dxf_mtext_struct::column_heights, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

double dxf_mtext_get_rot_angle ( DxfMtext mtext)

Get the rot_angle of a DXF MTEXT entity.

Returns:
the rot_angle.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 3862 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::rot_angle.

DxfMtext* dxf_mtext_set_rot_angle ( DxfMtext mtext,
double  rot_angle 
)

Set the rot_angle of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
rot_anglethe rot_angle of a DXF MTEXT entity.

Definition at line 3894 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::rot_angle.

int dxf_mtext_get_background_color ( DxfMtext mtext)

Get the background_color from a DXF MTEXT entity.

Returns:
background_color.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 3927 of file mtext.c.

References _, dxf_mtext_struct::background_color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_background_color ( DxfMtext mtext,
int  background_color 
)

Set the background_color for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
background_colorthe background_color to be set for the entity.

Definition at line 3961 of file mtext.c.

References _, dxf_mtext_struct::background_color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

int dxf_mtext_get_attachment_point ( DxfMtext mtext)

Get the attachment_point from a DXF MTEXT entity.

Returns:
attachment_point.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 4000 of file mtext.c.

References _, dxf_mtext_struct::attachment_point, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_attachment_point ( DxfMtext mtext,
int  attachment_point 
)

Set the attachment_point for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
attachment_pointthe attachment_point to be set for the entity.

Definition at line 4040 of file mtext.c.

References _, dxf_mtext_struct::attachment_point, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

int dxf_mtext_get_drawing_direction ( DxfMtext mtext)

Get the drawing_direction from a DXF MTEXT entity.

Returns:
drawing_direction.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 4085 of file mtext.c.

References _, dxf_mtext_struct::drawing_direction, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_drawing_direction ( DxfMtext mtext,
int  drawing_direction 
)

Set the drawing_direction for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
drawing_directionthe drawing_direction to be set for the entity.

Definition at line 4125 of file mtext.c.

References _, dxf_mtext_struct::drawing_direction, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

int dxf_mtext_get_spacing_style ( DxfMtext mtext)

Get the spacing_style from a DXF MTEXT entity.

Returns:
spacing_style.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 4170 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::spacing_style.

DxfMtext* dxf_mtext_set_spacing_style ( DxfMtext mtext,
int  spacing_style 
)

Set the spacing_style for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
spacing_stylethe spacing_style to be set for the entity.

Definition at line 4210 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::spacing_style.

int dxf_mtext_get_column_type ( DxfMtext mtext)

Get the column_type from a DXF MTEXT entity.

Returns:
column_type.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 4255 of file mtext.c.

References _, dxf_mtext_struct::column_type, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_column_type ( DxfMtext mtext,
int  column_type 
)

Set the column_type for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
column_typethe column_type to be set for the entity.

Definition at line 4289 of file mtext.c.

References _, dxf_mtext_struct::column_type, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

int dxf_mtext_get_column_count ( DxfMtext mtext)

Get the column_count from a DXF MTEXT entity.

Returns:
column_count.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 4328 of file mtext.c.

References _, dxf_mtext_struct::column_count, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_column_count ( DxfMtext mtext,
int  column_count 
)

Set the column_count for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
column_countthe column_count to be set for the entity.

Definition at line 4362 of file mtext.c.

References _, dxf_mtext_struct::column_count, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

int dxf_mtext_get_column_flow ( DxfMtext mtext)

Get the column_flow from a DXF MTEXT entity.

Returns:
column_flow.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 4401 of file mtext.c.

References _, dxf_mtext_struct::column_flow, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_column_flow ( DxfMtext mtext,
int  column_flow 
)

Set the column_flow for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
column_flowthe column_flow to be set for the entity.

Definition at line 4435 of file mtext.c.

References _, dxf_mtext_struct::column_flow, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

int dxf_mtext_get_column_autoheight ( DxfMtext mtext)

Get the column_autoheight from a DXF MTEXT entity.

Returns:
column_autoheight.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 4474 of file mtext.c.

References _, dxf_mtext_struct::column_autoheight, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_column_autoheight ( DxfMtext mtext,
int  column_autoheight 
)

Set the column_autoheight for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
column_autoheightthe column_autoheight to be set for the entity.

Definition at line 4508 of file mtext.c.

References _, dxf_mtext_struct::column_autoheight, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

int dxf_mtext_get_background_fill ( DxfMtext mtext)

Get the background_fill from a DXF MTEXT entity.

Returns:
background_fill.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 4547 of file mtext.c.

References _, dxf_mtext_struct::background_fill, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_background_fill ( DxfMtext mtext,
int  background_fill 
)

Set the background_fill for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
background_fillthe background_fill to be set for the entity.

Definition at line 4587 of file mtext.c.

References _, dxf_mtext_struct::background_fill, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

double dxf_mtext_get_extr_x0 ( DxfMtext mtext)

Get the X-value of the extrusion vector extr_x0 of a DXF MTEXT entity.

Returns:
the X-value of the extrusion vector extr_x0.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 4633 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::extr_x0.

DxfMtext* dxf_mtext_set_extr_x0 ( DxfMtext mtext,
double  extr_x0 
)

Set the X-value of the extrusion vector extr_x0 of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
extr_x0the X-value of the extrusion vector extr_x0 of a DXF MTEXT entity.

Definition at line 4666 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::extr_x0.

double dxf_mtext_get_extr_y0 ( DxfMtext mtext)

Get the Y-value of the extrusion vector extr_y0 of a DXF MTEXT entity.

Returns:
the Y-value of the extrusion vector extr_y0.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 4701 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::extr_y0.

DxfMtext* dxf_mtext_set_extr_y0 ( DxfMtext mtext,
double  extr_y0 
)

Set the Y-value of the extrusion vector extr_y0 of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
extr_y0the Y-value of the extrusion vector extr_y0 of a DXF MTEXT entity.

Definition at line 4734 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::extr_y0.

double dxf_mtext_get_extr_z0 ( DxfMtext mtext)

Get the Z-value of the extrusion vector extr_z0 of a DXF MTEXT entity.

Returns:
the Z-value of the extrusion vector extr_z0.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 4769 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::extr_z0.

DxfMtext* dxf_mtext_set_extr_z0 ( DxfMtext mtext,
double  extr_z0 
)

Set the Z-value of the extrusion vector extr_z0 of a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
extr_z0the Z-value of the extrusion vector extr_z0 of a DXF MTEXT entity.

Definition at line 4802 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::extr_z0.

DxfMtext* dxf_mtext_set_extrusion_vector_from_point ( DxfMtext mtext,
DxfPoint point 
)

Set the extrusion vector from a DXF POINT for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
pointa pointer to a DXF POINT entity.

Definition at line 4835 of file mtext.c.

References _, DEBUG, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::extr_x0, dxf_mtext_struct::extr_y0, dxf_mtext_struct::extr_z0, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.

DxfMtext* dxf_mtext_set_extrusion_vector ( DxfMtext mtext,
double  extr_x0,
double  extr_y0,
double  extr_z0 
)

Set the extrusion vector for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
extr_x0X-value of the extrusion direction.
extr_y0Y-value of the extrusion direction.
extr_z0Z-value of the extrusion direction.

Definition at line 4875 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::extr_x0, dxf_mtext_struct::extr_y0, and dxf_mtext_struct::extr_z0.

int32_t dxf_mtext_get_background_color_rgb ( DxfMtext mtext)

Get the background_color_rgb from a DXF MTEXT entity.

Returns:
background_color_rgb.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 4914 of file mtext.c.

References _, dxf_mtext_struct::background_color_rgb, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_background_color_rgb ( DxfMtext mtext,
int32_t  background_color_rgb 
)

Set the background_color_rgb for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
background_color_rgbthe background_color_rgb to be set for the entity.

Definition at line 4942 of file mtext.c.

References _, dxf_mtext_struct::background_color_rgb, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

char* dxf_mtext_get_background_color_name ( DxfMtext mtext)

Get the background_color_name from a DXF MTEXT entity.

Returns:
background_color_name when sucessful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 4976 of file mtext.c.

References _, dxf_mtext_struct::background_color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_background_color_name ( DxfMtext mtext,
char *  background_color_name 
)

Set the background_color_name for a DXF MTEXT entity.

Returns:
a pointer to mtext when successful, or NULL when an error occurred.
Parameters:
mtexta pointer to a DXF MTEXT entity.
background_color_namea string containing the color_name for the entity.

Definition at line 5014 of file mtext.c.

References _, dxf_mtext_struct::background_color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

int32_t dxf_mtext_get_background_transparency ( DxfMtext mtext)

Get the background_transparency from a DXF MTEXT entity.

Returns:
background_transparency.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 5055 of file mtext.c.

References _, dxf_mtext_struct::background_transparency, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_set_background_transparency ( DxfMtext mtext,
int32_t  background_transparency 
)

Set the background_transparency for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
background_transparencythe background_transparency to be set for the entity.

Definition at line 5083 of file mtext.c.

References _, dxf_mtext_struct::background_transparency, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMtext* dxf_mtext_get_next ( DxfMtext mtext)

Get the pointer to the next MTEXT entity from a DXF MTEXT entity.

Returns:
pointer to the next MTEXT entity.
Warning:
No checks are performed on the returned pointer.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 5120 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::next.

DxfMtext* dxf_mtext_set_next ( DxfMtext mtext,
DxfMtext next 
)

Set the pointer to the next MTEXT for a DXF MTEXT entity.

Parameters:
mtexta pointer to a DXF MTEXT entity.
nexta pointer to the next MTEXT for the entity.

Definition at line 5156 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::next.

DxfMtext* dxf_mtext_get_last ( DxfMtext mtext)

Get the pointer to the last MTEXT entity from a linked list of DXF MTEXT entities.

Returns:
pointer to the last MTEXT entity.
Warning:
No checks are performed on the returned pointer.
Parameters:
mtexta pointer to a DXF MTEXT entity.

Definition at line 5199 of file mtext.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::next.