Dillo v3.1.1-98-g318d1f14
|
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) |
Widget * | getTopWidgetAtPoint (int x, int y, core::GettingWidgetAtPointContext *context) |
Widget * | getBottomWidgetAtPoint (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) |
Widget * | getWidgetAtPoint (int x, int y, core::GettingWidgetAtPointContext *context, int startZIndex, int endZIndex) |
Private Attributes | |
Widget * | widget |
lout::container::typed::Vector< Widget > * | childSCWidgets |
int * | zIndices |
int | numZIndices |
See Handling stacking contexts.
Definition at line 19 of file stackingcontextmgr.hh.
dw::core::StackingContextMgr::StackingContextMgr | ( | Widget * | widget | ) |
Definition at line 31 of file stackingcontextmgr.cc.
References childSCWidgets, DBG_OBJ_CREATE, DBG_OBJ_SET_NUM, numZIndices, widget, and zIndices.
dw::core::StackingContextMgr::~StackingContextMgr | ( | ) |
Definition at line 45 of file stackingcontextmgr.cc.
References childSCWidgets, DBG_OBJ_DELETE, and zIndices.
void dw::core::StackingContextMgr::addChildSCWidget | ( | Widget * | widget | ) |
Definition at line 53 of file stackingcontextmgr.cc.
References childSCWidgets, DBG_OBJ_ARRSET_NUM, DBG_OBJ_ARRSET_PTR, DBG_OBJ_ENTER, DBG_OBJ_LEAVE, DBG_OBJ_MSGF, DBG_OBJ_SET_NUM, findZIndex(), dw::core::Widget::getStyle(), numZIndices, widget, dw::core::style::StyleAttrs::zIndex, and zIndices.
Referenced by dw::core::Widget::setParent().
|
private |
Definition at line 123 of file stackingcontextmgr.cc.
References childSCWidgets, DBG_OBJ_ENTER, DBG_OBJ_LEAVE, DBG_OBJ_MSG_END, DBG_OBJ_MSG_START, DBG_OBJ_MSGF, dw::core::Widget::draw(), dw::core::Widget::getStyle(), dw::core::Rectangle::height, dw::core::Widget::intersects(), numZIndices, widget, dw::core::Rectangle::width, dw::core::Rectangle::x, dw::core::Rectangle::y, dw::core::style::StyleAttrs::zIndex, and zIndices.
Referenced by drawBottom(), and drawTop().
|
inline |
Definition at line 56 of file stackingcontextmgr.hh.
References draw().
Referenced by dw::oof::OOFAwareWidget::drawLevel().
|
inline |
Definition at line 58 of file stackingcontextmgr.hh.
References draw().
Referenced by dw::oof::OOFAwareWidget::drawLevel().
|
private |
Definition at line 86 of file stackingcontextmgr.cc.
References numZIndices, and zIndices.
Referenced by addChildSCWidget().
|
inline |
Definition at line 66 of file stackingcontextmgr.hh.
References getWidgetAtPoint().
Referenced by dw::oof::OOFAwareWidget::getWidgetAtPointLevel().
|
inline |
Definition at line 54 of file stackingcontextmgr.hh.
References childSCWidgets.
|
inline |
Definition at line 53 of file stackingcontextmgr.hh.
References numZIndices.
|
inline |
Definition at line 61 of file stackingcontextmgr.hh.
References getWidgetAtPoint().
Referenced by dw::oof::OOFAwareWidget::getWidgetAtPointLevel().
|
private |
Definition at line 156 of file stackingcontextmgr.cc.
References childSCWidgets, DBG_OBJ_ENTER, DBG_OBJ_LEAVE, DBG_OBJ_MSG_END, DBG_OBJ_MSG_START, DBG_OBJ_MSGF, dw::core::Widget::getStyle(), dw::core::Widget::getWidgetAtPoint(), numZIndices, dw::core::style::StyleAttrs::zIndex, and zIndices.
Referenced by getBottomWidgetAtPoint(), and getTopWidgetAtPoint().
|
inlinestatic |
Definition at line 43 of file stackingcontextmgr.hh.
References dw::core::Widget::getParent(), isEstablishingStackingContext(), and widget.
Referenced by dw::oof::OOFPositionedMgr::draw(), dw::oof::OOFFloatsMgr::drawFloats(), dw::Table::drawLevel(), dw::Textblock::drawLine(), dw::oof::OOFFloatsMgr::getFloatWidgetAtPoint(), dw::oof::OOFPositionedMgr::getWidgetAtPoint(), dw::Table::getWidgetAtPointLevel(), and dw::Textblock::getWidgetAtPointLevel().
|
inlinestatic |
Definition at line 37 of file stackingcontextmgr.hh.
References dw::core::Widget::getStyle(), dw::IMPL_POS, dw::core::style::StyleAttrs::position, dw::core::style::POSITION_STATIC, widget, dw::core::style::Z_INDEX_AUTO, and dw::core::style::StyleAttrs::zIndex.
Referenced by handledByStackingContextMgr(), and dw::core::Widget::setStyle().
|
private |
Definition at line 23 of file stackingcontextmgr.hh.
Referenced by addChildSCWidget(), draw(), getNumChildSCWidgets(), getWidgetAtPoint(), StackingContextMgr(), and ~StackingContextMgr().
|
private |
Definition at line 24 of file stackingcontextmgr.hh.
Referenced by addChildSCWidget(), draw(), findZIndex(), getNumZIndices(), getWidgetAtPoint(), and StackingContextMgr().
|
private |
Definition at line 22 of file stackingcontextmgr.hh.
Referenced by addChildSCWidget(), draw(), handledByStackingContextMgr(), isEstablishingStackingContext(), and StackingContextMgr().
|
private |
Definition at line 24 of file stackingcontextmgr.hh.
Referenced by addChildSCWidget(), draw(), findZIndex(), getWidgetAtPoint(), StackingContextMgr(), and ~StackingContextMgr().