Prima::Application is root of widget objects hierarchy. Prima::Application class serves as a hierarchy root for all objects with c
Prima::Application is root of widget objects hierarchy.
Prima::Application class serves as a hierarchy root for all objects with child-owner relationship. All toolkit objects, existing with non-null owner property, belong by their top-level parental relationship to Prima::Application object. There can be only one instance of Prima::Application class at a time.
use Prima qw(Application);
Prima::Application class, and its only instance are treated specially throughout the toolkit. The object instance is contained in
scalar, defined in Prima.pm module. The application instance must be created whenever widget and window, or event loop functionality is desired. Usually
code is enough, but $::application can also be assigned explicitly. The 'use' syntax has advantage as more resistant to eventual changes in the toolkit design. It can also be used in conjunction with custom parameters hash, alike the general create() syntax:
use Prima::Application name => 'Test application', icon => $icon;
In addition to this functionality Prima::Application is also a wrapper to a set of system functions, not directly related to object classes. This functionality is generally explained in "API".
tags prima application use prima application class this functionality the toolkit can also
Download Prima::Application 1.20
Other software in this category
- Desktop Environment
- Science and Engineering
- Text Editing&Processing