## BtMainPagePatterns

BtMainPagePatterns — the editor main pattern page

## Synopsis

    #include "bt-edit.h"

    struct              BtMainPagePatterns;
    BtMainPagePatterns * bt_main_page_patterns_new          (const BtMainPages *pages);
    void                bt_main_page_patterns_show_pattern  (const BtMainPagePatterns *self,
                                                             BtPattern *pattern);
    void                bt_main_page_patterns_show_machine  (const BtMainPagePatterns *self,
                                                             BtMachine *machine);
    void                bt_main_page_patterns_delete_selection
                                                            (const BtMainPagePatterns *self);
    void                bt_main_page_patterns_cut_selection (const BtMainPagePatterns *self);
    void                bt_main_page_patterns_copy_selection
                                                            (const BtMainPagePatterns *self);
    void                bt_main_page_patterns_paste_selection
                                                            (const BtMainPagePatterns *self);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GtkObject
                   +----GtkWidget
                         +----GtkContainer
                               +----GtkBox
                                     +----GtkVBox
                                           +----BtMainPagePatterns

## Implemented Interfaces

BtMainPagePatterns implements AtkImplementorIface, GtkBuildable and GtkOrientable.

## Description

Provides an editor for BtPattern instances.

## Details

### struct BtMainPagePatterns

    struct BtMainPagePatterns;

the pattern page for the editor application

### bt_main_page_patterns_new ()

    BtMainPagePatterns * bt_main_page_patterns_new          (const BtMainPages *pages);

Create a new instance

`pages` : | the page collection
Returns : | the new instance

### bt_main_page_patterns_show_pattern ()

    void                bt_main_page_patterns_show_pattern  (const BtMainPagePatterns *self,
                                                             BtPattern *pattern);

Show the given `pattern`. Will update machine and pattern menu.

`self` : | the pattern subpage
`pattern` : | the pattern to show

### bt_main_page_patterns_show_machine ()

    void                bt_main_page_patterns_show_machine  (const BtMainPagePatterns *self,
                                                             BtMachine *machine);

Show the given `machine`. Will update machine menu.

`self` : | the pattern subpage
`machine` : | the machine to show

### bt_main_page_patterns_delete_selection ()

    void                bt_main_page_patterns_delete_selection
                                                            (const BtMainPagePatterns *self);

Delete (clear) the selected area.

`self` : | the pattern subpage

### bt_main_page_patterns_cut_selection ()

    void                bt_main_page_patterns_cut_selection (const BtMainPagePatterns *self);

Cut selected area.

`self` : | the pattern subpage

### bt_main_page_patterns_copy_selection ()

    void                bt_main_page_patterns_copy_selection
                                                            (const BtMainPagePatterns *self);

Copy selected area.

`self` : | the sequence subpage

### bt_main_page_patterns_paste_selection ()

    void                bt_main_page_patterns_paste_selection
                                                            (const BtMainPagePatterns *self);

Paste at the top of the selected area.

`self` : | the pattern subpage

## See Also

BtPattern, BtPatternEditor