/usr/include/tuxcap/WidgetContainer.h is in libtuxcap-dev 1.4.0.dfsg2-2.1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | #ifndef __WIDGETCONTAINER_H__
#define __WIDGETCONTAINER_H__
#include "Common.h"
#include "Rect.h"
#include "Flags.h"
namespace Sexy
{
class Graphics;
class Widget;
class WidgetManager;
typedef std::list<Widget*> WidgetList;
class WidgetContainer
{
public:
WidgetList mWidgets;
WidgetManager* mWidgetManager;
WidgetContainer* mParent;
bool mUpdateIteratorModified;
WidgetList::iterator mUpdateIterator;
uint32_t mLastWMUpdateCount;
int mUpdateCnt;
bool mDirty;
int mX;
int mY;
int mWidth;
int mHeight;
bool mHasAlpha;
bool mClip;
FlagsMod mWidgetFlagsMod;
int mPriority;
int mZOrder;
public:
Widget* GetWidgetAtHelper(int x, int y, int theFlags, bool* found, int* theWidgetX, int* theWidgetY);
bool IsBelowHelper(Widget* theWidget1, Widget* theWidget2, bool* found);
void InsertWidgetHelper(const WidgetList::iterator &where, Widget *theWidget);
public:
WidgetContainer();
virtual ~WidgetContainer();
virtual Rect GetRect();
virtual bool Intersects(WidgetContainer* theWidget);
virtual void AddWidget(Widget* theWidget);
virtual void RemoveWidget(Widget* theWidget);
virtual bool HasWidget(Widget* theWidget);
virtual void DisableWidget(Widget* theWidget);
virtual void RemoveAllWidgets(bool doDelete = false, bool recursive = false);
virtual void SetFocus(Widget* theWidget);
virtual bool IsBelow(Widget* theWidget1, Widget* theWidget2);
virtual void MarkAllDirty();
virtual void BringToFront(Widget* theWidget);
virtual void BringToBack(Widget* theWidget);
virtual void PutBehind(Widget* theWidget, Widget* theRefWidget);
virtual void PutInfront(Widget* theWidget, Widget* theRefWidget);
virtual Point GetAbsPos(); // relative to top level
virtual void MarkDirty();
virtual void MarkDirtyFull();
virtual void MarkDirtyFull(WidgetContainer* theWidget);
virtual void MarkDirty(WidgetContainer* theWidget);
virtual void AddedToManager(WidgetManager* theWidgetManager);
virtual void RemovedFromManager(WidgetManager* theWidgetManager);
virtual void Update();
virtual void UpdateAll(ModalFlags* theFlags);
virtual void UpdateF(float theFrac);
virtual void UpdateFAll(ModalFlags* theFlags, float theFrac);
virtual void Draw(Graphics* g);
virtual void DrawAll(ModalFlags* theFlags, Graphics* g);
virtual void SysColorChangedAll();
virtual void SysColorChanged();
};
};
#endif //__WIDGETCONTAINER_H__
|