MmdbGrGD.sgm 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!-- $XConsortium: MmdbGrGD.sgm /main/5 1996/09/08 20:06:58 rws $ -->
  2. <!-- (c) Copyright 1996 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1996 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1996 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1996 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1996 Novell, Inc. -->
  7. <!-- (c) Copyright 1996 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1996 Hitachi. -->
  9. <![ %CDE.C.CDE; [<refentry id="CDE.INFO.DtMmdbGraphicGetData">]]><refmeta><refentrytitle>
  10. DtMmdbGraphicGetData</refentrytitle><manvolnum>library call</manvolnum></refmeta><refnamediv>
  11. <refname><function>DtMmdbGraphicGetData</function></refname><refpurpose>obtains
  12. the data for a graphic object</refpurpose></refnamediv><refsynopsisdiv>
  13. <funcsynopsis>
  14. <funcsynopsisinfo>#include &lt;DtMmdb.h></funcsynopsisinfo>
  15. <funcdef>const char* <function>DtMmdbGraphicGetData</function></funcdef>
  16. <paramdef>DtMmdbInfoRequest* <parameter>request</parameter></paramdef>
  17. <paramdef>unsigned int* <parameter>length</parameter></paramdef>
  18. </funcsynopsis>
  19. </refsynopsisdiv><refsect1>
  20. <title>DESCRIPTION</title>
  21. <para>The <function>DtMmdbGraphicGetData</function> function
  22. returns the data for a graphic object. Do not use the
  23. <function>free</function> function on the returned pointer. Table lookup is involved
  24. because the graphic identifier is specified by the
  25. <symbol role="Variable">locator_ptr</symbol> field.
  26. </para>
  27. </refsect1><refsect1>
  28. <title>ARGUMENTS</title>
  29. <variablelist>
  30. <varlistentry><term><symbol role="Variable">request</symbol></term>
  31. <listitem>
  32. <para>Specifies the bookcase in the bookcase descriptor field and the
  33. identifier of the graphic object in the
  34. <symbol role="Variable">locator_ptr</symbol> field.
  35. </para>
  36. </listitem>
  37. </varlistentry>
  38. <varlistentry><term><symbol role="Variable">length</symbol></term>
  39. <listitem>
  40. <para>Specifies the variable to receive the length of the
  41. returned data, if the returned pointer to the title is not NULL.
  42. </para>
  43. </listitem>
  44. </varlistentry>
  45. </variablelist>
  46. </refsect1><refsect1>
  47. <title>RETURN VALUE</title>
  48. <para>If <function>DtMmdbGraphicGetData</function> completes
  49. successfully, it returns a pointer to the data for
  50. the graphic object.
  51. If it fails, it returns a NULL pointer.
  52. </para>
  53. </refsect1><refsect1>
  54. <title>EXAMPLE</title>
  55. <para>The following shows how a <function>DtMmdbGraphicGetData</function> call
  56. might be coded.</para>
  57. <informalexample>
  58. <programlisting>DtMmdbInfoRequest request;
  59. /* fill the request */
  60. DtMmdbGraphicGetData(&amp;request);
  61. </programlisting>
  62. </informalexample>
  63. </refsect1><refsect1>
  64. <title>SEE ALSO</title>
  65. <para>TO BE SUPPLIED</para>
  66. </refsect1></refentry>