#include "cr-num.h"
#include "string.h"
Go to the source code of this file.
Functions | |
CRNum * | cr_num_new (void) |
The default constructor of CRNum. | |
CRNum * | cr_num_new_with_val (gdouble a_val, enum CRNumType a_type) |
A constructor of CRNum. | |
guchar * | cr_num_to_string (CRNum *a_this) |
Returns the string representation of the current instance of CRNum. | |
enum CRStatus | cr_num_copy (CRNum *a_dest, CRNum *a_src) |
Copies an instance of CRNum. | |
CRNum * | cr_num_dup (CRNum *a_this) |
Duplicates an instance of CRNum. | |
enum CRStatus | cr_num_set (CRNum *a_this, gdouble a_val, enum CRNumType a_type) |
Sets an instance of CRNum. | |
gboolean | cr_num_is_fixed_length (CRNum *a_this) |
Tests if the current instance of CRNum is a fixed length value or not. | |
void | cr_num_destroy (CRNum *a_this) |
The destructor of CRNum. |
Definition in file cr-num.c.
|
Copies an instance of CRNum.
Definition at line 214 of file cr-num.c. References CR_BAD_PARAM_ERROR, and CR_OK. Referenced by cr_font_size_copy(), and cr_num_dup(). |
|
The destructor of CRNum.
Definition at line 300 of file cr-num.c. Referenced by cr_font_size_adjust_destroy(), cr_font_size_clear(), and cr_font_size_destroy(). |
|
Duplicates an instance of CRNum.
Definition at line 232 of file cr-num.c. References cr_num_copy(), cr_num_new(), CR_OK, and CRStatus. |
|
Tests if the current instance of CRNum is a fixed length value or not. Typically a fixed length value is anything from NUM_LENTGTH_EM to NUM_LENGTH_PC. See the definition of CRNumType to see what we mean.
Definition at line 275 of file cr-num.c. References NUM_LENGTH_EM, NUM_LENGTH_PC, and _CRNum::type. |
|
The default constructor of CRNum.
Definition at line 44 of file cr-num.c. References cr_utils_trace_info. Referenced by cr_font_size_copy(), cr_num_dup(), and cr_num_new_with_val(). |
|
A constructor of CRNum.
Definition at line 75 of file cr-num.c. References cr_num_new(), _CRNum::type, and _CRNum::val. |
|
Sets an instance of CRNum.
Definition at line 256 of file cr-num.c. References CR_BAD_PARAM_ERROR, CR_OK, _CRNum::type, and _CRNum::val. |
|
Returns the string representation of the current instance of CRNum.
Definition at line 100 of file cr-num.c. References NUM_ANGLE_DEG, NUM_ANGLE_GRAD, NUM_ANGLE_RAD, NUM_FREQ_HZ, NUM_FREQ_KHZ, NUM_LENGTH_CM, NUM_LENGTH_EM, NUM_LENGTH_EX, NUM_LENGTH_IN, NUM_LENGTH_MM, NUM_LENGTH_PC, NUM_LENGTH_PT, NUM_LENGTH_PX, NUM_PERCENTAGE, NUM_TIME_MS, NUM_TIME_S, _CRNum::type, and _CRNum::val. Referenced by cr_term_to_string(). |