Layout Library Evaluate | ||||||||||||||||||||||||||||||||||||||
Typedefs | |
| typedef boost::function < eve_callback_suite_t::position_t(const eve_callback_suite_t::position_t &parent, name_t name, dictionary_t arguments)> | bind_layout_proc_t |
Functions | |
| eve_callback_suite_t | bind_layout (const bind_layout_proc_t &proc, basic_sheet_t &layout_sheet, virtual_machine_t &evaluator) |
Typedef Documentation
| bind_layout_proc_t |
The bind_layout_proc_t is a simplified callback which can be used with bind_layout to handle most of the aspects of assempling a view from a layout description.
- Parameters:
Definition at line 33 of file eve_evaluate.hpp.
Function Documentation
| eve_callback_suite_t bind_layout | ( | const bind_layout_proc_t & | proc, | |
| basic_sheet_t & | layout_sheet, | |||
| virtual_machine_t & | evaluator | |||
| ) |
The bind_layout function constructs an eve_call_back_suite_t which can be passed to the parser. It handles evaluating arguments (using the evaluator) and constructing a basic_sheet_t to hold the layout state.
- Parameters:
-
proc client assembler proc. layout_sheet a basic_sheet_t associated with this layout which is used to hold the layout state. evaluator a virtual_machine_t, used to evaluate arguments during the parse.
- Returns:
- A eve_callback_suite_t which can be passed to the parser.
- Example:
adobe::eve_callback_suite_t::position_t client_assembler(const adobe::eve_callback_suite_t::position_t&, adobe::name_t, const adobe::dictionary_t&); adobe::parse(in, line_position_t(file_name), adobe::eve_callback_suite_t::position_t(), adobe::bind_layout(&client_assembler, window_sheet, virtual_machine));

