a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 intuition.library
  ActivateGadget
  ActivateWindow
  AddClass
  AddGList
  AddGadget
  AllocRemember
  AllocScreenBuffer
  AutoRequest
  BeginRefresh
  BuildEasyRequestArgs
  BuildSysRequest
  ChangeScreenBuffer
  ChangeWindowBox
  ClearDMRequest
  ClearMenuStrip
  ClearPointer
  CloseScreen
  CloseWindow
  CloseWorkBench
  CurrentTime
  DisplayAlert
  DisplayBeep
  DisposeObject
  DoGadgetMethodA
  DoubleClick
  DrawBorder
  DrawImage
  DrawImageState
  EasyRequestArgs
  EndRefresh
  EndRequest
  EraseImage
  FreeClass
  FreeRemember
  FreeScreenBuffer
  FreeScreenDrawInfo
  FreeSysRequest
  GadgetMouse
  GetAttr
  GetDefPrefs
  GetDefaultPubScreen
  GetPrefs
  GetScreenData
  GetScreenDrawInfo
  HelpControl
  InitRequester
  IntuiTextLength
  ItemAddress
  LendMenus
  LockIBase
  LockPubScreen
  LockPubScreenList
  MakeClass
  MakeScreen
  ModifyIDCMP
  ModifyProp
  MoveScreen
  MoveWindow
  MoveWindowInFrontOf
  NewModifyProp
  NewObject
  NextObject
  NextPubScreen
  ObtainGIRPort
  OffGadget
  OffMenu
  OnGadget
  OnMenu
  OpenScreen
  OpenScreenTagList
  OpenWindow
  OpenWindowTagList
  OpenWorkBench
  PointInImage
  PrintIText
  PubScreenStatus
  QueryOverscan
  RefreshGList
  RefreshGadgets
  RefreshWindowFrame
  ReleaseGIRPort
  RemakeDisplay
  RemoveClass
  RemoveGList
  RemoveGadget
  ReportMouse
  Request
  ResetMenuStrip
  RethinkDisplay
  ScreenDepth
  ScreenPosition
  ScreenToBack
  ScreenToFront
  ScrollWindowRaster
  SetAttrsA
  SetDMRequest
  SetDefaultPubScreen
  SetEditHook
  SetGadgetAttrsA
  SetMenuStrip
  SetMouseQueue
  SetPointer
  SetPrefs
  SetPubScreenModes
  SetWindowPointerA
  SetWindowTitles
  ShowTitle
  SizeWindow
  SysReqHandler
  TimedDisplayAlert
  UnlockIBase
  UnlockPubScreen
  UnlockPubScreenList
  ViewAddress
  ViewPortAddress
  WBenchToBack
  WBenchToFront
  WindowLimits
  WindowToBack
  WindowToFront
  ZipWindow
Include
GuruMeditation
Docs » Autodocs » intuition.library » SetPointer

NAME

	SetPointer -- Specify a pointer sprite image for a window.

SYNOPSIS

	SetPointer( Window, Pointer, Height, Width, XOffset, YOffset )
A0 A1 D0 D1 D2 D3
VOID SetPointer( struct Window *, UWORD *, WORD, WORD, WORD, WORD );

FUNCTION

	Sets up the window with the sprite definition for the pointer.  
Then, whenever the window is the active one, the pointer
image will change to the window's version. If the window is
the active one when this routine is called, the change takes
place immediately.
The XOffset and YOffset parameters are used to offset the
upper-left corner of the hardware sprite image from what Intuition
regards as the current position of the pointer. Another way of
describing it is as the offset from the "hot spot" of the pointer
to the top-left corner of the sprite. For instance, if you specify
offsets of zero, zero, then the top-left corner of your sprite
image will be placed at the mouse position. On the other hand,
if you specify an XOffset of -7 (remember, sprites are 16 pixels
wide) then your sprite will be centered over the mouse position.
If you specify an XOffset of -15, the right-edge of the sprite
will be over the mouse position.

INPUTS

	Window = pointer to the window to receive this pointer definition
Pointer = pointer to the data definition of a sprite
Height = the height of the pointer
Width = the width of the sprite (must be less than or equal to sixteen)
XOffset = the offset for your sprite from the mouse position
YOffset = the offset for your sprite from the mouse position

RESULT

	None

BUGS

SEE ALSO

SetWindowPointerA(), ClearPointer(), ROM Kernel Manual: Libraries

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Future Crew

FC
RZR
RBS
TBL

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se