Thrive
AlphaHitWindow.h
1 #pragma once
2 
3 #include <CEGUI/widgets/PushButton.h>
4 #include "cegui_types.h"
5 
6 
7 class AlphaHitWindow : public CEGUI::PushButton
8 {
9 public:
11  static const CEGUI::String WidgetTypeName;
12 
14  AlphaHitWindow(const CEGUI::String& type, const CEGUI::String& name);
17 
18  // overridden from Window base class
19  bool
20  isHit(
21  const CEGUIVector2& position,
22  const bool allow_disabled = false
23  ) const override;
24 
25 protected:
27  bool renderingEndedHandler(const CEGUI::EventArgs& args);
28  // overridden from Window base class
29  bool testClassName_impl(const CEGUI::String& class_name) const;
30 
32  uint32_t* d_hitTestBuffer;
36  CEGUI::Sizef d_hitBufferSize;
39 };
bool renderingEndedHandler(const CEGUI::EventArgs &args)
handler to copy rendered data to a memory buffer
Definition: AlphaHitWindow.cpp:61
Definition: AlphaHitWindow.h:7
static const CEGUI::String WidgetTypeName
Window factory name.
Definition: AlphaHitWindow.h:11
CEGUI::Sizef d_hitBufferSize
Dimensions in pixels of the data in the hit test buffer.
Definition: AlphaHitWindow.h:36
uint32_t * d_hitTestBuffer
Pointer to buffer holding the render data.
Definition: AlphaHitWindow.h:32
size_t d_hitBufferCapacity
Size of the hit test buffer (i.e. its capacity)
Definition: AlphaHitWindow.h:34
AlphaHitWindow(const CEGUI::String &type, const CEGUI::String &name)
Constructor.
Definition: AlphaHitWindow.cpp:12
bool d_hitBufferInverted
whether data in hit test buffer is inverted.
Definition: AlphaHitWindow.h:38
~AlphaHitWindow()
Destructor.
Definition: AlphaHitWindow.cpp:31