Real Name
This commit is contained in:
1 parent
94a31b7608
commit
0adf122d1d
553 files changed
+155034
No files matched your search
@@ -0,0 +1,71 @@
|
||||
#ifndef _XPCWidget_h_
|
||||
#define _XPCWidget_h_
|
||||
|
||||
#include "XPWidgets.h"
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
|
||||
class XPCWidget;
|
||||
|
||||
class XPCWidgetAttachment
|
||||
{
|
||||
public:
|
||||
virtual int HandleWidgetMessage(XPCWidget *inObject,
|
||||
XPWidgetMessage inMessage,
|
||||
XPWidgetID inWidget,
|
||||
intptr_t inParam1,
|
||||
intptr_t inParam2) = 0;
|
||||
};
|
||||
|
||||
class XPCWidget
|
||||
{
|
||||
public:
|
||||
XPCWidget(int inLeft,
|
||||
int inTop,
|
||||
int inRight,
|
||||
int inBottom,
|
||||
bool inVisible,
|
||||
const char *inDescriptor,
|
||||
bool inIsRoot,
|
||||
XPWidgetID inParent,
|
||||
XPWidgetClass inClass);
|
||||
XPCWidget(XPWidgetID inWidget, bool inOwnsWidget);
|
||||
virtual ~XPCWidget();
|
||||
|
||||
void SetOwnsWidget(bool inOwnsWidget);
|
||||
void SetOwnsChildren(bool inOwnsChildren);
|
||||
|
||||
operator XPWidgetID() const;
|
||||
|
||||
XPWidgetID Get(void) const;
|
||||
|
||||
void AddAttachment(XPCWidgetAttachment *inAttachment,
|
||||
bool inOwnsAttachment,
|
||||
bool inPrefilter);
|
||||
void RemoveAttachment(XPCWidgetAttachment *inAttachment);
|
||||
|
||||
virtual int HandleWidgetMessage(XPWidgetMessage inMessage,
|
||||
XPWidgetID inWidget,
|
||||
intptr_t inParam1,
|
||||
intptr_t inParam2);
|
||||
|
||||
private:
|
||||
static int WidgetCallback(XPWidgetMessage inMessage,
|
||||
XPWidgetID inWidget,
|
||||
intptr_t inParam1,
|
||||
intptr_t inParam2);
|
||||
|
||||
typedef std::pair<XPCWidgetAttachment *, bool> AttachmentInfo;
|
||||
typedef std::vector<AttachmentInfo> AttachmentVector;
|
||||
|
||||
AttachmentVector mAttachments;
|
||||
XPWidgetID mWidget;
|
||||
bool mOwnsChildren;
|
||||
bool mOwnsWidget;
|
||||
|
||||
XPCWidget();
|
||||
XPCWidget(const XPCWidget &);
|
||||
XPCWidget &operator=(const XPCWidget &);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user