GnuCash  5.6-150-g038405b370+
Data Structures | Functions
pricecell.h File Reference
#include "basiccell.h"
#include "qof.h"
#include "gnc-ui-util.h"

Go to the source code of this file.

Data Structures

struct  PriceCell
 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...
 

Functions

BasicCell * gnc_price_cell_new (void)
 installs a callback to handle price recording
 
gnc_numeric gnc_price_cell_get_value (PriceCell *cell)
 return the value of a price cell
 
gboolean gnc_price_cell_set_value (PriceCell *cell, gnc_numeric amount)
 updates amount, returns TRUE if string representation actually changed
 
void gnc_price_cell_set_fraction (PriceCell *cell, int fraction)
 Sets the fraction used for rounding. More...
 
void gnc_price_cell_blank (PriceCell *cell)
 Sets the cell as blank, regardless of the blank_zero value.
 
void gnc_price_cell_set_blank_zero (PriceCell *cell, gboolean blank_zero)
 determines whether 0 values are left blank or printed. More...
 
void gnc_price_cell_set_print_info (PriceCell *cell, GNCPrintAmountInfo print_info)
 set the printing context of the price cell
 
void gnc_price_cell_set_debt_credit_value (PriceCell *debit, PriceCell *credit, gnc_numeric amount)
 updates two cells; the deb cell if amt is negative, the credit cell if amount is positive, and makes the other cell blank. More...