## fo-tree

fo-tree —

## Synopsis

    struct      FoTree;
    struct      FoTreeClass;
    FoFo*       fo_tree_new                     (void);
    void        fo_tree_master_name_add         (FoFo *tree,
                                                 const gchar *name,
                                                 FoFo *fo);
    FoFo*       fo_tree_master_name_get         (FoFo *tree,
                                                 const gchar *name);
    void        fo_tree_page_sequence_master_name_add
                                                (FoFo *tree,
                                                 const gchar *name,
                                                 FoFo *fo);
    FoFo*       fo_tree_page_sequence_master_name_get
                                                (FoFo *tree,
                                                 const gchar *name);
    FoFo*       fo_tree_default_master_get      (FoFo *tree);

## Object Hierarchy

      GObject
       +----FoObject
             +----FoNode
                   +----FoFo
                         +----FoTree

## Description

## Details

### struct FoTree

    struct FoTree;

### struct FoTreeClass

    struct FoTreeClass;

### fo_tree_new ()

    FoFo*       fo_tree_new                     (void);

Creates a new FoTree initialized to default value.

Returns : | the new FoTree

### fo_tree_master_name_add ()

    void        fo_tree_master_name_add         (FoFo *tree,
                                                 const gchar *name,
                                                 FoFo *fo);

Adds `fo` to `tree` under `name`.

`tree` : | FoTree to which to add a FoPageMaster.
`name` : | Name to use for the FoPageMaster.
`fo` : | FoPageMaster to add.

### fo_tree_master_name_get ()

    FoFo*       fo_tree_master_name_get         (FoFo *tree,
                                                 const gchar *name);

Gets the FoPageMaster of `tree` corresponding to `name`.

`tree` : | FoTree for which to get a FoPageMaster.
`name` : | Name of the FoPageMaster to get.
Returns : | FoPageMaster matching `name`, or NULL.

### fo_tree_page_sequence_master_name_add ()

    void        fo_tree_page_sequence_master_name_add
                                                (FoFo *tree,
                                                 const gchar *name,
                                                 FoFo *fo);

Adds `fo` to to `tree`.

`tree` : | FoTree for which to add a FoPageSequenceMaster.
`name` : | Name of the FoPageSequenceMaster.
`fo` : | FoPageSequenceMaster to add.

### fo_tree_page_sequence_master_name_get ()

    FoFo*       fo_tree_page_sequence_master_name_get
                                                (FoFo *tree,
                                                 const gchar *name);

Gets the FoPageSequenceMaster of `tree` with name matching `name`.

`tree` : | FoTree for which to get a named FoPageSequenceMaster.
`name` : | Name of the FoPageSequenceMaster.
Returns : | FoPageSequenceMaster corresponding to `name`, or NULL.

### fo_tree_default_master_get ()

    FoFo*       fo_tree_default_master_get      (FoFo *tree);

Gets the default page master of `tree`.

`tree` : | FoTree for which to get the default master.
Returns : | The default page sequence master of `fo`.