window_server_t Class Reference
Detailed DescriptionThe window_server_t class can open Eve definitions from file and input stream, and can display them. It also looks after all of the memory allocated to display an Eve definition. Definition at line 59 of file window_server.hpp. Member Typedef Documentation
Definition at line 62 of file window_server.hpp. Constructor & Destructor Documentation
This constructor tells the window_server_t where to find Eve definitions referenced in commands, and which sheet to bind against.
Hide and release all Eve dialogs created by this window server. Member Function Documentation
This function can be used to send an action to the open windows, however it is only useful in debug mode (where it can be used to frame and unframe visible widgets). It will probably be changed soon.
Load the given file out of the directory_path and display the dialog it contains. If the file cannot be found, or the file contains errors (e.g.: syntax errors, references non-existant widgets) then an exception is thrown.
Load an Eve definition from the given std::istream and display the dialog it contains. If any errors are found in the data then an exception is thrown.
Some widgets, such as buttons in UI core, have an action property. When an action is invoked (e.g.: a button with an action value) the procedure given to this function is invoked. This provides an easy way to get feedback from a GUI. Note that some actions are automatically handled, these are: , and .
The window server can use different widget factories if custom widgets need to be made. By default the window server will use the "default_factory" function, but an alternative function can be specified here. Note that push_back just uses the current factory, so if a custom factory is desired then it must be set before using push_back.
Definition at line 123 of file window_server.hpp.
Return the number of windows which this window_server has open.
Definition at line 155 of file window_server.hpp.
|