ActionIc.sgm 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!-- $XConsortium: ActionIc.sgm /main/6 1996/08/30 12:53:36 rws $ -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCDI.MAN11.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN11.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtActionIcon</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtActionIcon</Function></RefName>
  17. <RefPurpose>get the icon information for an action
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- CDE Common Source Format, Version 1.0.0-->
  21. <!-- *************************************************************************-->
  22. <!-- ** (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
  23. <!-- ** (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
  24. <!-- ** (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
  25. <!-- ** (c) Copyright 1993, 1994, 1995 Unix System Labs, Inc.,-->
  26. <!-- ** a subsidiary of Novell, Inc.-->
  27. <!-- *************************************************************************-->
  28. <RefSynopsisDiv>
  29. <FuncSynopsis Remap="ANSI">
  30. <FuncSynopsisInfo>#include &lt;Dt/Action.h>
  31. </FuncSynopsisInfo>
  32. <FuncDef>char <Function>*DtActionIcon</Function></FuncDef>
  33. <ParamDef>char *<Parameter>actionName</Parameter></ParamDef>
  34. </FuncSynopsis>
  35. </RefSynopsisDiv>
  36. <RefSect1>
  37. <Title>DESCRIPTION</Title>
  38. <Para>The
  39. <Function>DtActionIcon</Function> function gets the icon information for an action.
  40. The
  41. <Emphasis>actionName</Emphasis> argument is the name of the action.
  42. <Function>DtActionIcon</Function> returns the name of the icon associated with an
  43. <Emphasis>actionName</Emphasis> action.
  44. If the action definition does not explicitly identify an icon
  45. name, this function returns the default action icon name,
  46. as described in
  47. <![ %CDE.C.CDE; [&cdeman.dtactionfile; (``Action Selection'').
  48. ]]><![ %CDE.C.XO; [<XRef Linkend="XCDI.M4DTA.anch.1" Role="4">. ]]>The default action icon name can be customized using the
  49. <Literal>actionIcon</Literal> X resource.
  50. </Para>
  51. <Para>If there are multiple
  52. <Emphasis>actionName</Emphasis> actions, the string returned is the
  53. icon associated with the most general action.
  54. The most general action is the one with the lowest precedence,
  55. as described in
  56. <![ %CDE.C.CDE; [&cdeman.dtactionfile; (``Action Selection'').
  57. ]]><![ %CDE.C.XO; [<XRef Linkend="XCDI.M4DTA.anch.1" Role="4">. ]]></Para>
  58. </RefSect1>
  59. <RefSect1>
  60. <Title>RETURN VALUE</Title>
  61. <Para>Upon successful completion, the
  62. <Function>DtActionIcon</Function> function returns a
  63. newly allocated copy of the icon name string
  64. (
  65. <SystemItem Class="Constant">ICON</SystemItem> field) associated with the action;
  66. otherwise, it returns
  67. <SystemItem Class="Constant">NULL</SystemItem>.</Para>
  68. </RefSect1>
  69. <RefSect1>
  70. <Title>APPLICATION USAGE</Title>
  71. <Para>The
  72. <Function>DtActionIcon</Function> function is useful for applications that provide a graphical interface
  73. to actions.
  74. </Para>
  75. <Para>The application should use
  76. <Function>XtFree</Function>(3) to free the icon name string returned by the
  77. <Function>DtActionIcon</Function> function.
  78. </Para>
  79. </RefSect1>
  80. <RefSect1>
  81. <Title>SEE ALSO</Title>
  82. <Para>&cdeman.Dt.Action.h;, <![ %CDE.C.CDE; [<Function>XtFree</Function>(3) &cdeman.dtactionfile;, &cdeman.dtdtfile;. ]]><![ %CDE.C.XO; [<Function>XtFree</Function>(3) in the &str-Zt;;
  83. <XRef Linkend="XCDI.ACTI.anch.3" Role="2">, <XRef Linkend="XCDI.M4DTS.anch.1" Role="3">. ]]></Para>
  84. </RefSect1>
  85. </RefEntry>
  86. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->