src/swipl-devel/packages/xpce/man/refmanual/md/application.md

class application {#class-application}

An application object defines a collection of cooperating frame objects. Applications are new as of XPCE version 4.9, and therefore do not yet have a stable definition. It is however assumed that the current implementation will only be enhanced with new, compatible, features.

Applications are designed to deal with the following issues:

Normally, applications are created explicitely, often as global named objects. Frames are attached to it using the application initialisation argument application:

:- pce_global(@my_application, make_my_application).

make_my_application(App) :-
    new(App, application(mine)),
    ...

    ...
    new(F, frame('My title',
                 application := @my_application)),
    ...

Instance variables {#class-application-instvars}

Send methods {#class-application-send}

Get methods {#class-application-get}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.