Category:Core

From MegaZine3
Jump to: navigation, search


The core of the engine is what is always running. This part is responsible for the proper display of pages, as well as adding or removal thereof. It manages the flipping functionality, element loading and plugin management.

Contents

XML Definition

The engine is built to parse a XML document describing the layout of a book, with pages and chapters. This document also contains information about the basic engine settings. A sample definition:

<book pagewidth="400" pageheight="300">
    <chapter>
        <page>
            <img src="img/front.jpg"/>
        </page>
        <page>
            <img src="img/back.jpg"/>
        </page>
    </chapter>
</book>

Thus, the basic structure uses

Configuration

The core can be configured using the attributes of the book. The attributes of the book are global settings, and more may be added by plugins.

That a setting is global means that is does not apply to a specific (dynamic) element of the book alone, such as attributes of chapters, pages or elements do. Instead, they represent settings which apply to either the book in general, such as the page size,

Elements

The core contains a basic set of elements, including the image, sound, area, test and navigation element. More elements can be implemented as so called external elements, which are compiled into a SWF and loaded on demand.

Plugins

The engine features a heavily plugin based architecture. This means that in its basic (core) version, the engine offers only a limited set of functions, but it can be easily extended using plugins. Plugins can have varied functionality, ranging from programming interfaces like the ElementIDs plugin to GUI extensions like the Gallery plugin.

This dynamic structure allows an easy customization of the engine, without having to know anything about the technical details. One can simply define the plugins to be used in the plugins attribute of the book tag.

Subcategories

This category has the following 2 subcategories, out of 2 total.

D

E

Pages in category "Core"

The following 20 pages are in this category, out of 20 total.

A

B

C

G

H

I

M

N

O

P

P cont.

S

V

Personal tools
Namespaces
Variants
Actions
Navigation
documentation
miscellaneous
Toolbox