EnglishFrenchSpanish

Ad


OnWorks favicon

xpce - Online in the Cloud

Run xpce in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command xpce that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


xpce - Prolog with graphical user interface (GUI)

SYNOPSIS


xpce prolog-option ...

DESCRIPTION


XPCE is a language independant library for GUI (Graphical User Interfaces). This manual
page discusses XPCE/Prolog: the combination of a Prolog environment and XPCE.

XPCE is an object-oriented engine that can have methods defined in various languages. XPCE
has about 150 predefined classes that deal mainly with GUI's. The object engine of XPE is
made available to Prolog using the following predicates:

Predicates:
new(?Ref, +Term)
Create an XPCE object from Term and bind the object to the reference Ref. The
functor-name of Term describes the class from which to create an instance. The
arguments of Term are used as initialisation arguments for the new object. If the
object was created successfully and Ref is a variable, Ref will be unified with the
term @<RefNumber>. If Ref is a term of the form @<Atom>, this term will serve as a
reference for the new object.

For example ?- new(@p, picture('Hello World'). Creates a graphical window object
with title "Hello World".

send(+Ref, +Selector, +Args...)
Ref is a reference to an existing XPCE object. Selector is the name of a
(send-)method defined on (the class of) this object and Args are terms that
describe arguments to be passed to the method.

send/[2-12] will convert the arguments to XPCE data objects, resolve the procedure
(C-function, Prolog predicate) implementing the method and run the implementation.
If the execution is successful, send succeeds, otherwise send fails.

For example ?- send(@p, open, point(400,100)). opens the picture created above at
position 400,100 on the display.

get(+Ref, +Selector, +Args ..., -Value)
Ref is a reference to an existing XPCE object. Selector is the name of a
(get-)method defined on (the class of) this object and Args are terms to provide
additional arguments. get/[3-13] works similar as send/[2-12] but returns a value
rather than succeeding/failing (boolean operation).

For example get(@p, height, H). Unifies H with the height of the graphical window.

free(+Ref)
If Ref is a reference to an XPCE object, invoke send(Ref, free). to the object.
Otherwise succeed silently.

Use xpce online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Brackets
    Brackets
    Brackets is a free, modern open-source
    text editor made especially for Web
    Development. Written in HTML, CSS, and
    JavaScript with focused visual tools and
    prepr...
    Download Brackets
  • 2
    Free Pascal Compiler
    Free Pascal Compiler
    A 32/64/16-bit Pascal compiler for
    Win32/64/CE, Linux, Mac OS X/iOS,
    Android, FreeBSD, OS/2, Game Boy
    Advance, Nintendo NDS and DOS;
    semantically compatible wi...
    Download Free Pascal Compiler
  • 3
    Canon EOS DIGITAL Info
    Canon EOS DIGITAL Info
    Canon doesn�t have shutter count
    included on the EXIF information of an
    image file, as opposed to Nikon and
    Pentax. There�s no official Canon based
    application ...
    Download Canon EOS DIGITAL Info
  • 4
    rEFInd
    rEFInd
    rEFInd is a fork of the rEFIt boot
    manager. Like rEFIt, rEFInd can
    auto-detect your installed EFI boot
    loaders and it presents a pretty GUI
    menu of boot option...
    Download rEFInd
  • 5
    ExpressLuke GSI
    ExpressLuke GSI
    This SourceForge download page was to
    grant users to download my source built
    GSIs, based upon phhusson's great
    work. I build both Android Pie and
    Android 1...
    Download ExpressLuke GSI
  • 6
    Music Caster
    Music Caster
    Music Caster is a tray music player
    that lets you cast your local music to a
    Google Cast device. On the first run,
    you will need to click the arrow in your
    tas...
    Download Music Caster
  • More »

Linux commands

Ad