DndCreSI.sgm 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!-- $XConsortium: DndCreSI.sgm /main/5 1996/08/30 12:56:35 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.MAN24.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN24.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtDndCreateSourceIcon</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtDndCreateSourceIcon</Function></RefName>
  17. <RefPurpose>create a drag source icon
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- CDE Common Source Format, Version 1.0.0-->
  21. <!-- (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
  22. <!-- (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
  23. <!-- (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
  24. <!-- (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
  25. <RefSynopsisDiv>
  26. <FuncSynopsis Remap="ANSI">
  27. <FuncSynopsisInfo>#include &lt;Dt/Dnd.h>
  28. </FuncSynopsisInfo>
  29. <FuncDef>Widget <Function>DtDndCreateSourceIcon</Function></FuncDef>
  30. <ParamDef>Widget <Parameter>parent</Parameter></ParamDef>
  31. <ParamDef>Pixmap <Parameter>pixmap</Parameter></ParamDef>
  32. <ParamDef>Pixmap <Parameter>mask</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>DtDndCreateSourceIcon</Function> function creates a Motif drag icon, named
  39. <Literal>sourceIcon</Literal>, based on the characteristics of the
  40. <Symbol Role="Variable">pixmap</Symbol> argument.
  41. The resulting drag icon is suitable for use with
  42. &cdeman.DtDndDragStart;.</Para>
  43. <Para>The
  44. <Symbol Role="Variable">parent</Symbol> argument is the parent of the drag icon.
  45. Typically this widget is the drag source.
  46. </Para>
  47. <Para>The
  48. <Symbol Role="Variable">pixmap</Symbol> argument is the pixmap representation of the data to be dragged.
  49. </Para>
  50. <Para>The
  51. <Symbol Role="Variable">mask</Symbol> argument is the mask for the
  52. <Symbol Role="Variable">pixmap</Symbol>.</Para>
  53. <Para>When it calls
  54. &cdeman.XmCreateDragIcon;, the
  55. <Function>DtDndCreateSourceIcon</Function> function sets Motif resources in the drag icon;
  56. the application must not modify the values of any of these resources:
  57. </Para>
  58. <ItemizedList>
  59. <ListItem><Para><SystemItem Class="Resource">XmNwidth</SystemItem></Para></ListItem>
  60. <ListItem><Para><SystemItem Class="Resource">XmNheight</SystemItem></Para></ListItem>
  61. <ListItem><Para><SystemItem Class="Resource">XmNpixmap</SystemItem></Para></ListItem>
  62. <ListItem><Para><SystemItem Class="Resource">XmNmask</SystemItem></Para></ListItem>
  63. <ListItem><Para><SystemItem Class="Resource">XmNdepth</SystemItem></Para></ListItem>
  64. </ItemizedList>
  65. </RefSect1>
  66. <RefSect1>
  67. <Title>RETURN VALUE</Title>
  68. <Para>Upon successful completion, the
  69. <Function>DtDndCreateSourceIcon</Function> function returns a drag icon created by calling
  70. &cdeman.XmCreateDragIcon; with the characteristics of the
  71. <Symbol Role="Variable">pixmap</Symbol>; otherwise, it returns
  72. <SystemItem Class="Constant">NULL</SystemItem>.</Para>
  73. </RefSect1>
  74. <RefSect1>
  75. <Title>SEE ALSO</Title>
  76. <Para>&cdeman.Dt.Dnd.h;, <![ %CDE.C.CDE; [&cdeman.DtDndDragStart;, &cdeman.XmCreateDragIcon;, &cdeman.XmDragIcon;, &cdeman.XmDragStart;, <Function>XtDestroyWidget</Function>(3). ]]><![ %CDE.C.XO; [<Function>DtDndDragStart</Function>; <Function>XmCreateDragIcon</Function>, <Function>XmDragIcon</Function>, <Function>XmDragStart</Function> in the &str-ZM;;
  77. <Function>XtDestroyWidget</Function> in the &str-Zt;.
  78. ]]></Para>
  79. </RefSect1>
  80. </RefEntry>
  81. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->