PCE version 4C man_modulenamespaceid_tablemodified current_idOIxN class/figureN referenceC hash_tablerefersizeOIxaIsNM.figure.S.initialiseCman_method_card identifiermodule last_modifiednamesummary descriptionsee_alsoinherit diagnosticsdefaultsbugsOIxNM.figure.S.initialiseRICdateOIx,CóN initialisenCstringOIx†Create an empty figure. In addition to `device ->initialise', it assigns <-background to @nil, <-pen to 0 and <-status to all_active.nnnnnsNC.figureCman_class_card identifiermodule last_modifiednamesummary descriptionsee_alsoinherituser_interfacebugsOIxNC.figureRIOIx,CòNfigurenOIxêA figure defines -like a device- a collection of graphicals. In addition of class device, a figure offers: ->clip_area Clip graphicals to this area ->pen, ->texture Draw a box around the figure ->background Fill the backgroundCchainsizeOI xIEN$class/spatial$C.spatialXnnnsNM.figure.S.displayOI xNM.figure.S.displayRIOI x,Cô]NdisplaynOI x¦Similar to `device ->display', but if <-status not is all_active and the graphical has not the same name, the graphical is added to the figure with <-displayed: @off.nnnnnsNV.figure.statusCman_variable_card identifiermodule last_modifiednamesummary descriptionsee_alsoinheritdefaultsOI xNV.figure.statusRIOIx,CöãNstatusnOIxHThe <-status of a figure is a name indicating which graphicals of the figure should be visible: if <-status equals `all_active', all <-graphicals are visible, otherwise only graphicals with the same name as <-status are made visible. This mechanism may be used to define graphical objects that should be switched between different states. Consider the example where we want to have a diagram which can be displayed `opened' and as an `icon'. The code below outlines a possible approach: create_closable_diagram(F) :- new(F, figure), send(F, status, opened), send(F, display, new(BM, bitmap('my_icon'))), send(BM, name, closed), send(BM, recogniser, click_gesture(left, '', double, message(F, status, opened), send(F, display, new(F2, figure)), send(F2, name, opened), ... nnnsNV.figure.backgroundOIxNV.figure.backgroundRIOIx,CóbN backgroundnOIxzFill pattern used as background. Commonly used to prevent the figure from being transparent (->background: @white_image).nnnXuCnumber O Ixx