BtMainPagePatterns

BtMainPagePatterns — the editor main pattern page

Synopsis

#include "bt-edit.h"

                    BtMainPagePatterns;
BtMainPagePatterns * bt_main_page_patterns_new          (const BtEditApplication *app,
                                                         const BtMainPages *pages);
BtMachine *         bt_main_page_patterns_get_current_machine
                                                        (const BtMainPagePatterns *self);
BtPattern *         bt_main_page_patterns_get_current_pattern
                                                        (const BtMainPagePatterns *self);
void                bt_main_page_patterns_show_pattern  (const BtMainPagePatterns *self,
                                                         BtPattern *pattern);
void                bt_main_page_patterns_show_machine  (const BtMainPagePatterns *self,
                                                         BtMachine *machine);

Object Hierarchy

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

Implemented Interfaces

BtMainPagePatterns implements AtkImplementorIface, GtkBuildable and GtkOrientable.

Properties

  "app"                      BtEditApplication*    : Read / Write / Construct Only

Description

Provides an editor for BtPattern instances.

Details

BtMainPagePatterns

typedef struct _BtMainPagePatterns BtMainPagePatterns;

the pattern page for the editor application


bt_main_page_patterns_new ()

BtMainPagePatterns * bt_main_page_patterns_new          (const BtEditApplication *app,
                                                         const BtMainPages *pages);

Create a new instance

app :

the application the window belongs to

pages :

the page collection

Returns :

the new instance or NULL in case of an error

bt_main_page_patterns_get_current_machine ()

BtMachine *         bt_main_page_patterns_get_current_machine
                                                        (const BtMainPagePatterns *self);

Get the currently active BtMachine as determined by the machine option menu in the toolbar. Unref the machine, when done with it.

self :

the pattern subpage

Returns :

the BtMachine instance or NULL in case of an error

bt_main_page_patterns_get_current_pattern ()

BtPattern *         bt_main_page_patterns_get_current_pattern
                                                        (const BtMainPagePatterns *self);

Get the currently active BtPattern as determined by the pattern option menu in the toolbar. Unref the pattern, when done with it.

self :

the pattern subpage

Returns :

the BtPattern instance or NULL in case of an error

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

Property Details

The "app" property

  "app"                      BtEditApplication*    : Read / Write / Construct Only

Set application object, the window belongs to.

See Also

BtPattern, BtPatternView