CpgModifiable

CpgModifiable — Interface for keeping track of the modified state of an object

Synopsis

struct              CpgModifiableInterface;
gboolean            cpg_modifiable_get_modified         (CpgModifiable *modifiable);
void                cpg_modifiable_set_modified         (CpgModifiable *modifiable,
                                                         gboolean modified);

Description

This interface can be implemented when an object needs to keep track of whether or not it has been modified.

Details

struct CpgModifiableInterface

struct CpgModifiableInterface {
	GTypeInterface parent;

	gboolean (*get_modified) (CpgModifiable *modifiable);
	void     (*set_modified) (CpgModifiable *modifiable,
	                          gboolean       modified);
};


cpg_modifiable_get_modified ()

gboolean            cpg_modifiable_get_modified         (CpgModifiable *modifiable);

Get the modified state.

modifiable :

A CpgModifiable

Returns :

TRUE if the object has been modified, FALSE otherwise

cpg_modifiable_set_modified ()

void                cpg_modifiable_set_modified         (CpgModifiable *modifiable,
                                                         gboolean modified);

Set the modified state of the object.

modifiable :

A CpgModifiable

modified :

Modified state