Empirical
Classes | Namespaces
Div.h File Reference

Div Widgets maintain an ordered collection of other widgets in an HTML div. More...

#include "Animate.h"
#include "Text.h"
#include "Widget.h"
#include "init.h"

Go to the source code of this file.

Classes

class  emp::web::internal::DivInfo
 
class  emp::web::Div
 A widget to track a div in an HTML file, and all of its contents. More...
 

Namespaces

 emp
 If we are in emscripten, make sure to include the header.
 
 emp::web
 
 emp::web::internal
 

Detailed Description

Div Widgets maintain an ordered collection of other widgets in an HTML div.

Note
This file is part of Empirical, https://github.com/devosoft/Empirical
Date
2015-2017
Note
Formerly called Slate.h When printed to the web page, these internal widgets are presented in order.

To create a Div:

emp::web::Div my_div("name");

To use a Div:

my_div << "Add this text!" << emp::web::Image("my_image.png") << "<br>";

To register a Div in a Document:

my_doc << my_div;

Todo:
Should we move all widget_dict info into Document?