aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/api/service/svcs/svc_tooltips.h
blob: c359114609141940e708e8afeaa6ffc2d836a38d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef _SVC_TOOLTIPS_H
#define _SVC_TOOLTIPS_H

#include <bfc/dispatch.h>
#include <api/service/services.h>

class NOVTABLE svc_toolTipsRenderer : public Dispatchable {
public:
  static FOURCC getServiceType() { return WaSvc::TOOLTIPSRENDERER; }

  int spawnTooltip(const wchar_t *text);

  enum {
    SPAWNTOOLTIP        =10,
  };
};

inline int svc_toolTipsRenderer::spawnTooltip(const wchar_t *text) {
  return _call(SPAWNTOOLTIP, 0, text);
}

class NOVTABLE svc_toolTipsRendererI : public svc_toolTipsRenderer {
public:
  virtual int spawnTooltip(const wchar_t *text)=0;

protected:
  RECVS_DISPATCH;
};

#endif