stlab.adobe.com Adobe Systems Incorporated

Layout Library Evaluate
[Layout Library (Eve)]


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:
  • parent parent can be any copyable type, and is used by the callback to associate tself with the parent.
  • name the name of the view defintion to be constructed.
  • arguments a dictionary of the evaluated arguments for the view defintion.

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));

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google