- Elementary
- Main
- Authors
- Examples
- Files
- Pages
- Types
- Modules

Frame example

In this example we are going to create 4 Frames with different styles and add a rectangle of different color in each.

We start we the usual setup code:

And then create one rectangle:

To add it in our first frame, which since it doesn't have it's style specifically set uses the default style:

And then create another rectangle:

To add it in our second frame, which uses the "pad_small" style, note that even tough we are setting a text for this frame it won't be show, only the default style shows the Frame's title:

Note
  The "pad_small", "pad_medium", "pad_large" and "pad_huge" styles are very similar, their only difference is the size of the empty area around the content of the frame.

And then create yet another rectangle:

To add it in our third frame, which uses the "outdent_top" style, note that even tough we are setting a text for this frame it won't be show, only the default style shows the Frame's title:

And then create one last rectangle:

To add it in our fourth and final frame, which uses the "outdent_bottom" style, note that even tough we are setting a text for this frame it won't be show, only the default style shows the Frame's title:

And now we are left with just some more setup code:

Our example will look like this:

Copyright ©2000-2014 Enlightenment.org - Samsung Electronics supports the EFL Documentation Project - Generated Wed Jan 8 2014 20:51:08