all repos — openbox @ e6bfddf849009bef7bbb75be5147b4a533fa1ad2

openbox fork - make it a bit more like ryudo

otk/pseudorendercontrol.hh (raw)

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
31
32
33
34
35
36
37
38
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
#ifndef __pseudorendercontrol_hh
#define __pseudorendercontrol_hh

#include "rendercontrol.hh"

extern "C" {

#ifdef HAVE_STDINT_H
#  include <stdint.h>
#else
#  ifdef HAVE_SYS_TYPES_H
#    include <sys/types.h>
#  endif
#endif

}

#include <vector>

namespace otk {

class PseudoRenderControl : public RenderControl {
private:

  virtual void drawGradientBackground(Surface &sf,
                                      const RenderTexture &texture) const;
 
public:
  PseudoRenderControl(int screen);
  virtual ~PseudoRenderControl();

  virtual void drawBackground(Surface& sf, const RenderTexture &texture) const;
};

}

#endif // __pseudorendercontrol_hh