Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
dw::core::StackingContextMgr Class Reference

See Handling stacking contexts. More...

#include <stackingcontextmgr.hh>

Public Member Functions

 StackingContextMgr (Widget *widget)
 
 ~StackingContextMgr ()
 
void addChildSCWidget (Widget *widget)
 
int getNumZIndices ()
 
int getNumChildSCWidgets ()
 
void drawBottom (View *view, Rectangle *area, DrawingContext *context)
 
void drawTop (View *view, Rectangle *area, DrawingContext *context)
 
WidgetgetTopWidgetAtPoint (int x, int y, core::GettingWidgetAtPointContext *context)
 
WidgetgetBottomWidgetAtPoint (int x, int y, core::GettingWidgetAtPointContext *context)
 

Static Public Member Functions

static bool isEstablishingStackingContext (Widget *widget)
 
static bool handledByStackingContextMgr (Widget *widget)
 

Private Member Functions

int findZIndex (int zIndex, bool mustExist)
 
void draw (View *view, Rectangle *area, int startZIndex, int endZIndex, DrawingContext *context)
 
WidgetgetWidgetAtPoint (int x, int y, core::GettingWidgetAtPointContext *context, int startZIndex, int endZIndex)
 

Private Attributes

Widgetwidget
 
lout::container::typed::Vector< Widget > * childSCWidgets
 
int * zIndices
 
int numZIndices
 

Detailed Description

See Handling stacking contexts.

Definition at line 19 of file stackingcontextmgr.hh.

Constructor & Destructor Documentation

◆ StackingContextMgr()

dw::core::StackingContextMgr::StackingContextMgr ( Widget widget)

◆ ~StackingContextMgr()

dw::core::StackingContextMgr::~StackingContextMgr ( )

Definition at line 45 of file stackingcontextmgr.cc.

References childSCWidgets, DBG_OBJ_DELETE, and zIndices.

Member Function Documentation

◆ addChildSCWidget()

◆ draw()

◆ drawBottom()

void dw::core::StackingContextMgr::drawBottom ( View view,
Rectangle area,
DrawingContext context 
)
inline

Definition at line 56 of file stackingcontextmgr.hh.

References draw().

Referenced by dw::oof::OOFAwareWidget::drawLevel().

◆ drawTop()

void dw::core::StackingContextMgr::drawTop ( View view,
Rectangle area,
DrawingContext context 
)
inline

Definition at line 58 of file stackingcontextmgr.hh.

References draw().

Referenced by dw::oof::OOFAwareWidget::drawLevel().

◆ findZIndex()

int dw::core::StackingContextMgr::findZIndex ( int  zIndex,
bool  mustExist 
)
private

Definition at line 86 of file stackingcontextmgr.cc.

References numZIndices, and zIndices.

Referenced by addChildSCWidget().

◆ getBottomWidgetAtPoint()

Widget * dw::core::StackingContextMgr::getBottomWidgetAtPoint ( int  x,
int  y,
core::GettingWidgetAtPointContext context 
)
inline

Definition at line 66 of file stackingcontextmgr.hh.

References getWidgetAtPoint().

Referenced by dw::oof::OOFAwareWidget::getWidgetAtPointLevel().

◆ getNumChildSCWidgets()

int dw::core::StackingContextMgr::getNumChildSCWidgets ( )
inline

Definition at line 54 of file stackingcontextmgr.hh.

References childSCWidgets.

◆ getNumZIndices()

int dw::core::StackingContextMgr::getNumZIndices ( )
inline

Definition at line 53 of file stackingcontextmgr.hh.

References numZIndices.

◆ getTopWidgetAtPoint()

Widget * dw::core::StackingContextMgr::getTopWidgetAtPoint ( int  x,
int  y,
core::GettingWidgetAtPointContext context 
)
inline

Definition at line 61 of file stackingcontextmgr.hh.

References getWidgetAtPoint().

Referenced by dw::oof::OOFAwareWidget::getWidgetAtPointLevel().

◆ getWidgetAtPoint()

Widget * dw::core::StackingContextMgr::getWidgetAtPoint ( int  x,
int  y,
core::GettingWidgetAtPointContext context,
int  startZIndex,
int  endZIndex 
)
private

◆ handledByStackingContextMgr()

◆ isEstablishingStackingContext()

static bool dw::core::StackingContextMgr::isEstablishingStackingContext ( Widget widget)
inlinestatic

Member Data Documentation

◆ childSCWidgets

lout::container::typed::Vector<Widget>* dw::core::StackingContextMgr::childSCWidgets
private

◆ numZIndices

int dw::core::StackingContextMgr::numZIndices
private

◆ widget

Widget* dw::core::StackingContextMgr::widget
private

◆ zIndices

int* dw::core::StackingContextMgr::zIndices
private

The documentation for this class was generated from the following files: