GnuCash 038f90a+
Loading...
Searching...
No Matches
Data Fields
PriceCell Struct Reference

The PriceCell object implements a cell handler that stores a single double-precision value, and has the smarts to display it as a price/amount as well as accepting monetary or general numeric input. More...

#include <pricecell.h>

Data Fields

BasicCell cell
 
gnc_numeric amount
 
int fraction
 the amount associated with this cell
 
gboolean blank_zero
 fraction used for rounding, if 0 no rounding
 
GNCPrintAmountInfo print_info
 controls printing of zero values
 
gboolean need_to_parse
 amount printing context
 

Detailed Description

The PriceCell object implements a cell handler that stores a single double-precision value, and has the smarts to display it as a price/amount as well as accepting monetary or general numeric input.

By default, the PriceCell is an input/output cell.

On output, it will display negative values in red text. hack alert – the actual color (red) should be user configurable.

Definition at line 54 of file pricecell.h.

Field Documentation

◆ amount

gnc_numeric PriceCell::amount

Definition at line 57 of file pricecell.h.

◆ blank_zero

gboolean PriceCell::blank_zero

fraction used for rounding, if 0 no rounding

Definition at line 59 of file pricecell.h.

◆ cell

BasicCell PriceCell::cell

Definition at line 56 of file pricecell.h.

◆ fraction

int PriceCell::fraction

the amount associated with this cell

Definition at line 58 of file pricecell.h.

◆ need_to_parse

gboolean PriceCell::need_to_parse

amount printing context

Definition at line 61 of file pricecell.h.

◆ print_info

GNCPrintAmountInfo PriceCell::print_info

controls printing of zero values

Definition at line 60 of file pricecell.h.


The documentation for this struct was generated from the following file: