PCE version 4C man_modulenamespaceid_tablemodified current_idOIxN class/styleN referenceC hash_tablerefersizeOIxNbothIsNV.style.backgroundCman_variable_card identifiermodule last_modifiednamesummary descriptionsee_alsoinheritdefaultsOIxNV.style.backgroundRICdateOIx/Eļ“N backgroundnCstringOIx‰Background for the characters. If it is an instance of class elevation, the characters are placed in an elevated box. See also ->colour.nnnsNM.style.S.highlightCman_method_card identifiermodule last_modifiednamesummary descriptionsee_alsoinherit diagnosticsdefaultsbugsOIxNM.style.S.highlightRIOIx,Uq•N highlightnnnCchainsizeOIxIENM.style.G.boldXnnnsNV.style.attributesOI xNV.style.attributesRIOI x+#¼¾N attributesnOI xEOr'ed bits for ->underline, ->highlight, ->grey, ->closed and ->bold.nnnsNV.style.right_marginOI xNV.style.right_marginRIOI x/EļņN right_marginnnnOIxIENV.style.left_marginXnsNM.style.S.boldOIxNM.style.S.boldRIOIx,UqzNboldnnnOIxIENM.style.G.boldXnnnsNM.style.S.greyOIxNM.style.S.greyRIOIx,UqNgreynnnOIxIENM.style.G.boldXnnnsN V.style.iconOIxN V.style.iconRIOIx,U3}NiconnOIx÷When a style object is associated with an editor that has a text_margin object attached to it, the start of fragments related to this style object is marked in the margin using this image object. See class text_margin and `editor ->margin_width'.OIxIeN $class/text_margin$C.text_marginEN%$class/editor$M.editor.S.margin_widthXnnsNM.style.G.greyOIxNM.style.G.greyRIOIx,U4:NgreynnnOIxIENM.style.G.boldXnnnsNV.style.colourOIxNV.style.colourRIOIx/EļĶNcolournOIx1Colour of the characters. See also ->background.nnnsNM.style.S.hiddenOIxNM.style.S.hiddenRIOI x/@ˆ˜NhiddennOI!x If a style object has ->hidden: @on, the text will be made invisible. Currently this attribute is ignored if the style is used for a dict_item object. May be used to implement `outline' editors or to hide control sequences. See also class fragment and class editor.nnnnnsNM.style.S.initialiseOI"xNM.style.S.initialiseRIOI#x/HwÄN initialisenOI$x½Create a style object from its (margin-)image, font and text-attributes. For example: send(Editor, style, section_header, style(font := @helvetica_bold_18)). The arguments are: ->icon Image shown in text_margin object ->font Font used to display characters ->colour Colour for characters ->highlight Invert text (monochrome only) ->underline Underline text ->bold Print bold using `double-strike' ->grey Print grey (and with @grey25_image) ->background Colour/elevation for background ->hidden If true, text is invisible ->left_margin Left margin (pixels) ->right_margin Right margin (pixels from right) NOTE: this method defines a large number of arguments. It is advised to use the `keyword := value' construct for specifying the arguments. The following two terms define a `bold' style: style(bold := @on) style(@default, @default, @default, @default, @default, @on) See also class := and `send_method ->send'.nnnnnsNM.style.G.underlineOI%xNM.style.G.underlineRIOI&x,U4EN underlinennnOI'xIENM.style.G.boldXnnnsNM.style.G.highlightOI(xNM.style.G.highlightRIOI)x,U4@N highlightnnnOI*xIENM.style.G.boldXnnnsNC.styleCman_class_card identifiermodule last_modifiednamesummary descriptionsee_alsoinherituser_interfacebugsOI+xNC.styleRIOI,x.šN_NstylenOI-xłA style object describes the visual appearance of a fragment object in an editor object or dict_item objects in a list_browser object: font, highlighting, underlining, etc. Style objects are associated with editors using the `editor ->style: name, style' method. Fragments that have `fragment <->style' equal to name will be displayed according to the associated style. The online manual uses various styles. E.g. title Section titles in helvetica bold font code code fragments in a fixed-width screen font active attribute-bold for links to definitions. An elaborate example of using editors, fragments and styles is the XPCE help browser, whose sources are in the XPCE library file pce_helper.pl. A simple example is in the example `Multiple Fonts'.OI.xIeN $class/text_margin$C.text_margineN$class/editor$M.editor.S.styleeN.$class/editor$V.editor.selected_fragment_styleeN$class/editor$C.editoreN$class/fragment$C.fragmentXnnOI/x€When a style is changed, the corresponding text is not immediately updated. It is adviced to use styles in a read-only fashion.sNM.style.G.hiddenOI0xNM.style.G.hiddenRIOI1x/@ˆNhiddennnnOI2xIENM.style.S.hiddenXnnnsNM.style.S.underlineOI3xNM.style.S.underlineRIOI4x,Uq£N underlinennnOI5xIENM.style.G.boldXnnOI6xšUnderlining is done at a fixed distance of the base-line with a fixed line thickness (1). These parameters ought to be read from the (X-)font attributes.sNV.style.left_marginOI7xNV.style.left_marginRIOI8x/EšĆN left_marginnOI9xZLeft- and right-margins. Used by class text_image (underlying class editor and class view) to control indentation and wrapping. In combination with `text_image ->wrap: word', the margins may be used to realise quotations and intended lists in WYSIWYG like editors. Class text_image fetches the new margins whenever it starts a new screen line.nnnsNM.style.G.boldOI:xNM.style.G.boldRIOI;x5Ī°ŌNboldnOIbold bold-face using double-strike (see also ->font) ->underline underlined text. ->highlight inverted background and foreground. ->grey greyed-out by and'ing with @grey50_image.nnnnOI=xi<->closed is not implemented. Future versions might use this to `hide' the text of a fragment temporary.sN V.style.fontOI>xN V.style.fontRIOI?x,ĖåNfontnOI@x©Font used to display the characters of the fragment. When two fragments overlap and they do not agree on the font to be used, the font of the smallest fragment is used.nnOIAx(@default (meaning use `editor <->font').XaCnumber O IBxx