XMRENDERTABLEADDRENDITIONS(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– XmRenderTableAddRenditions(3) β€” library call πŸ’–

✨ NAME ✨

XmRenderTableAddRenditions β€” Creates a new render table.


🌸 SYNOPSIS 🌸

#include <Xm/Xm.h>
XmRenderTable XmRenderTableAddRenditions(
XmRenderTable oldtable,
XmRendition *renditions,
Cardinal rendition_count,
XmMergeMode merge_mode);

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay bestie, so XmRenderTableAddRenditions is the function that builds you a new render table. It includes the renditions already listed in oldtable, if there is one. It also copies the specified renditions into the new table. The first rendition_count renditions of the renditions array are added to the new table. If a rendition is tagged with a tag that matches a tag already in oldtable, then the existing rendition using that tag is either modified or freed and replaced with the new rendition, depending on the value of merge_mode. If oldtable is NULL, XmRenderTableAddRenditions creates a new render table containing only the specified renditions.

⚠️ Heads up, queen: this function deallocates the original render table after extracting the required information. It is the responsibility of the caller to free the renditions of the renditions array by calling the XmRenditionFree function.

🫢 Arguments 🫢

  • oldtable β€” Specifies the render table to be added to.
  • renditions β€” Specifies an array of renditions to be added.
  • rendition_count β€” Specifies the number of renditions from renditions to be added.
  • merge_mode β€” Specifies what to do if the XmNtag of a rendition matches that of one that already exists in oldtable. The possible values are as follows:
    • XmMERGE_REPLACE β€” Completely replaces the old rendition with the new one.
    • XmMERGE_OLD β€” Replaces any unspecified values of the old rendition with the corresponding values from the new rendition.
    • XmMERGE_NEW β€” Replaces the old rendition with the new rendition, replacing any unspecified values of the new rendition with the corresponding values from the old rendition.
    • XmSKIP β€” Skips over the new rendition, leaving the old rendition intact.

πŸ’« RETURN πŸ’«

If renditions is NULL or rendition_count is 0 (zero), this function returns oldtable. Otherwise, the function returns a new XmRenderTable. The function allocates space to hold this new render table. The application is responsible for managing this allocated space. The application can recover the allocated space by calling XmRenderTableFree.

XmRendition(3) and XmRenderTableFree(3).


That's the whole library call page, bestie β€” source/version and date weren't in the footer, so we're just running on Xm library-call energy. Periodt. πŸ’…βœ¨