#include <layout.hh>
Classes | |
| class | Anchor |
| class | Emitter |
| class | LinkEmitter |
| class | LinkReceiver |
| class | Receiver |
| Receiver interface different signals. More... | |
Public Member Functions | |
| Layout (Platform *platform) | |
| ~Layout () | |
| void | connectLink (LinkReceiver *receiver) |
| bool | emitLinkEnter (Widget *w, int link, int img, int x, int y) |
| bool | emitLinkPress (Widget *w, int link, int img, int x, int y, EventButton *event) |
| bool | emitLinkRelease (Widget *w, int link, int img, int x, int y, EventButton *event) |
| bool | emitLinkClick (Widget *w, int link, int img, int x, int y, EventButton *event) |
| void | addWidget (Widget *widget) |
| void | setWidget (Widget *widget) |
| void | attachView (View *view) |
| Attach a view to the layout. | |
| void | detachView (View *view) |
| bool | getUsesViewport () |
| int | getWidthViewport () |
| int | getHeightViewport () |
| int | getScrollPosX () |
| int | getScrollPosY () |
| void | scrollTo (HPosition hpos, VPosition vpos, int x, int y, int width, int height) |
| Scrolls all viewports, so that the region [x, y, width, height] is seen, according to hpos and vpos. | |
| void | scroll (ScrollCommand) |
| void | setAnchor (const char *anchor) |
| void | expose (View *view, Rectangle *area) |
| bool | buttonPress (View *view, int numPressed, int x, int y, ButtonState state, int button) |
| This function is called by a view, to delegate a button press event. | |
| bool | buttonRelease (View *view, int numPressed, int x, int y, ButtonState state, int button) |
| This function is called by a view, to delegate a button press event. | |
| bool | motionNotify (View *view, int x, int y, ButtonState state) |
| This function is called by a view, to delegate a motion notify event. | |
| void | enterNotify (View *view, int x, int y, ButtonState state) |
| This function is called by a view, to delegate a enter notify event. | |
| void | leaveNotify (View *view, ButtonState state) |
| This function is called by a view, to delegate a leave notify event. | |
| void | scrollPosChanged (View *view, int x, int y) |
| void | viewportSizeChanged (View *view, int width, int height) |
| int | textWidth (style::Font *font, const char *text, int len) |
| int | nextGlyph (const char *text, int idx) |
| int | prevGlyph (const char *text, int idx) |
| float | dpiX () |
| float | dpiY () |
| style::Font * | createFont (style::FontAttrs *attrs, bool tryEverything) |
| bool | fontExists (const char *name) |
| style::Color * | createColor (int color) |
| style::Tooltip * | createTooltip (const char *text) |
| void | cancelTooltip () |
| Imgbuf * | createImgbuf (Imgbuf::Type type, int width, int height) |
| void | copySelection (const char *text) |
| ui::ResourceFactory * | getResourceFactory () |
| void | connect (Receiver *receiver) |
| FindtextState::Result | search (const char *str, bool caseSens, int backwards) |
| See dw::core::FindtextState::search. | |
| void | resetSearch () |
| See dw::core::FindtextState::resetSearch. | |
| void | setBgColor (style::Color *color) |
| style::Color * | getBgColor () |
Public Attributes | |
| LinkEmitter | linkEmitter |
| lout::misc::ZoneAllocator * | textZone |
Private Types | |
| enum | ButtonEventType { BUTTON_PRESS, BUTTON_RELEASE, MOTION_NOTIFY } |
Private Member Functions | |
| Widget * | getWidgetAtPoint (int x, int y) |
| void | moveToWidget (Widget *newWidgetAtPoint, ButtonState state) |
| void | moveToWidgetAtPoint (int x, int y, ButtonState state) |
| Emit the necessary crossing events, when the mouse pointer has moved to position (x, );. | |
| void | moveOutOfView (ButtonState state) |
| Emit the necessary crossing events, when the mouse pointer has moved out of the view. | |
| bool | processMouseEvent (MousePositionEvent *event, ButtonEventType type, bool mayBeSuppressed) |
| Common processing of press, release and motion events. | |
| bool | buttonEvent (ButtonEventType type, View *view, int numPressed, int x, int y, ButtonState state, int button) |
| void | resizeIdle () |
| void | setSizeHints () |
| void | draw (View *view, Rectangle *area) |
| void | scrollTo0 (HPosition hpos, VPosition vpos, int x, int y, int width, int height, bool scrollingInterrupted) |
| void | scrollIdle () |
| void | adjustScrollPos () |
| void | updateAnchor () |
| char * | addAnchor (Widget *widget, const char *name) |
| char * | addAnchor (Widget *widget, const char *name, int y) |
| void | changeAnchor (Widget *widget, char *name, int y) |
| void | removeAnchor (Widget *widget, char *name) |
| void | setCursor (style::Cursor cursor) |
| void | updateCursor () |
| void | queueDraw (int x, int y, int width, int height) |
| void | queueDrawExcept (int x, int y, int width, int height, int ex, int ey, int ewidth, int eheight) |
| void | queueResize () |
| void | removeWidget () |
Static Private Member Functions | |
| static bool | calcScrollInto (int targetValue, int requestedSize, int *value, int viewportSize) |
Private Attributes | |
| Emitter | emitter |
| Platform * | platform |
| View * | view |
| Widget * | topLevel |
| Widget * | widgetAtPoint |
| style::Color * | bgColor |
| style::Cursor | cursor |
| int | canvasWidth |
| int | canvasAscent |
| int | canvasDescent |
| bool | usesViewport |
| bool | drawAfterScrollReq |
| int | scrollX |
| int | scrollY |
| int | viewportWidth |
| int | viewportHeight |
| bool | canvasHeightGreater |
| int | hScrollbarThickness |
| int | vScrollbarThickness |
| HPosition | scrollTargetHpos |
| VPosition | scrollTargetVpos |
| int | scrollTargetX |
| int | scrollTargetY |
| int | scrollTargetWidth |
| int | scrollTargetHeight |
| char * | requestedAnchor |
| int | scrollIdleId |
| int | resizeIdleId |
| bool | scrollIdleNotInterrupted |
| lout::container::typed::HashTable < lout::object::String, Anchor > * | anchorsTable |
| SelectionState | selectionState |
| FindtextState | findtextState |
Friends | |
| class | Widget |
enum dw::core::Layout::ButtonEventType [private] |
| dw::core::Layout::Layout | ( | Platform * | platform | ) |
References anchorsTable, bgColor, canvasAscent, canvasDescent, canvasWidth, cursor, dw::core::style::CURSOR_DEFAULT, DBG_OBJ_ASSOC, DBG_OBJ_CREATE, drawAfterScrollReq, findtextState, hScrollbarThickness, requestedAnchor, resizeIdleId, scrollIdleId, scrollIdleNotInterrupted, scrollX, scrollY, selectionState, dw::core::SelectionState::setLayout(), dw::core::Platform::setLayout(), textZone, topLevel, usesViewport, view, viewportHeight, viewportWidth, vScrollbarThickness, and widgetAtPoint.
| dw::core::Layout::~Layout | ( | ) |
| char * dw::core::Layout::addAnchor | ( | Widget * | widget, | |
| const char * | name, | |||
| int | y | |||
| ) | [private] |
| char * dw::core::Layout::addAnchor | ( | Widget * | widget, | |
| const char * | name | |||
| ) | [private] |
Used, when the widget is not allocated yet.
Referenced by dw::core::Widget::addAnchor().
| void dw::core::Layout::addWidget | ( | Widget * | widget | ) |
References canvasHeightGreater, findtextState, dw::core::Widget::layout, queueResize(), setSizeHints(), dw::core::FindtextState::setWidget(), and topLevel.
Referenced by setWidget().
| void dw::core::Layout::adjustScrollPos | ( | ) | [private] |
References canvasAscent, canvasDescent, canvasWidth, hScrollbarThickness, lout::misc::max(), lout::misc::min(), scrollX, scrollY, viewportHeight, viewportWidth, and vScrollbarThickness.
Referenced by scrollIdle().
| void dw::core::Layout::attachView | ( | View * | view | ) |
Attach a view to the layout.
It will become a child of the layout, and so it will be destroyed, when the layout will be destroyed.
References dw::core::Platform::attachView(), bgColor, canvasAscent, canvasDescent, canvasWidth, cursor, dw::core::View::getHScrollbarThickness(), dw::core::View::getVScrollbarThickness(), hScrollbarThickness, lout::misc::max(), platform, dw::core::View::scrollTo(), scrollX, scrollY, dw::core::View::setBgColor(), dw::core::View::setCanvasSize(), dw::core::View::setCursor(), dw::core::View::setLayout(), dw::core::View::setViewportSize(), usesViewport, dw::core::View::usesViewport(), viewportHeight, viewportWidth, and vScrollbarThickness.
Referenced by dw::fltk::FltkPreview::FltkPreview(), and dw::fltk::ui::FltkComplexButtonResource::setLayout().
| bool dw::core::Layout::buttonEvent | ( | ButtonEventType | type, | |
| View * | view, | |||
| int | numPressed, | |||
| int | x, | |||
| int | y, | |||
| ButtonState | state, | |||
| int | button | |||
| ) | [private] |
References moveToWidgetAtPoint(), and processMouseEvent().
Referenced by buttonPress(), and buttonRelease().
| bool dw::core::Layout::buttonPress | ( | View * | view, | |
| int | numPressed, | |||
| int | x, | |||
| int | y, | |||
| ButtonState | state, | |||
| int | button | |||
| ) | [inline] |
This function is called by a view, to delegate a button press event.
numPressed is 1 for simple presses, 2 for double presses etc. (more that 2 is never needed), x and y the world coordinates, and button the number of the button pressed.
References BUTTON_PRESS, and buttonEvent().
Referenced by dw::fltk::FltkViewBase::handle().
| bool dw::core::Layout::buttonRelease | ( | View * | view, | |
| int | numPressed, | |||
| int | x, | |||
| int | y, | |||
| ButtonState | state, | |||
| int | button | |||
| ) | [inline] |
This function is called by a view, to delegate a button press event.
Arguments are similar to dw::core::Layout::buttonPress.
References BUTTON_RELEASE, and buttonEvent().
Referenced by dw::fltk::FltkViewBase::handle().
| bool dw::core::Layout::calcScrollInto | ( | int | targetValue, | |
| int | requestedSize, | |||
| int * | value, | |||
| int | viewportSize | |||
| ) | [static, private] |
Referenced by scrollIdle().
| void dw::core::Layout::cancelTooltip | ( | ) | [inline] |
References dw::core::Platform::cancelTooltip(), and platform.
Referenced by dw::fltk::FltkViewBase::handle().
| void dw::core::Layout::changeAnchor | ( | Widget * | widget, | |
| char * | name, | |||
| int | y | |||
| ) | [private] |
| void dw::core::Layout::connect | ( | Receiver * | receiver | ) | [inline] |
References dw::core::Layout::Emitter::connectLayout(), and emitter.
Referenced by dw::core::ui::ComplexButtonResource::init().
| void dw::core::Layout::connectLink | ( | LinkReceiver * | receiver | ) | [inline] |
References dw::core::Layout::LinkEmitter::connectLink(), and linkEmitter.
| void dw::core::Layout::copySelection | ( | const char * | text | ) | [inline] |
References dw::core::Platform::copySelection(), and platform.
Referenced by dw::core::SelectionState::copy().
| style::Color* dw::core::Layout::createColor | ( | int | color | ) | [inline] |
References dw::core::Platform::createColor(), and platform.
Referenced by dw::core::style::Color::create().
| style::Font* dw::core::Layout::createFont | ( | style::FontAttrs * | attrs, | |
| bool | tryEverything | |||
| ) | [inline] |
References dw::core::Platform::createFont(), and platform.
Referenced by dw::core::style::Font::create0().
| Imgbuf* dw::core::Layout::createImgbuf | ( | Imgbuf::Type | type, | |
| int | width, | |||
| int | height | |||
| ) | [inline] |
References dw::core::Platform::createImgbuf(), and platform.
| style::Tooltip* dw::core::Layout::createTooltip | ( | const char * | text | ) | [inline] |
References dw::core::Platform::createTooltip(), and platform.
Referenced by dw::core::style::Tooltip::create().
| void dw::core::Layout::detachView | ( | View * | view | ) |
References dw::core::Platform::detachView(), platform, and dw::core::View::setLayout().
| float dw::core::Layout::dpiX | ( | ) | [inline] |
References dw::core::Platform::dpiX(), and platform.
| float dw::core::Layout::dpiY | ( | ) | [inline] |
References dw::core::Platform::dpiY(), and platform.
References dw::core::Widget::allocation, dw::core::Widget::draw(), drawAfterScrollReq, dw::core::View::finishDrawing(), dw::core::Widget::getHeight(), dw::core::Rectangle::height, dw::core::Rectangle::intersectsWith(), scrollIdleId, dw::core::View::startDrawing(), topLevel, dw::core::Allocation::width, dw::core::Rectangle::width, dw::core::Allocation::x, dw::core::Rectangle::x, dw::core::Allocation::y, and dw::core::Rectangle::y.
Referenced by expose().
| bool dw::core::Layout::emitLinkClick | ( | Widget * | w, | |
| int | link, | |||
| int | img, | |||
| int | x, | |||
| int | y, | |||
| EventButton * | event | |||
| ) | [inline] |
References dw::core::Layout::LinkEmitter::emitClick(), and linkEmitter.
Referenced by dw::core::SelectionState::buttonRelease().
| bool dw::core::Layout::emitLinkEnter | ( | Widget * | w, | |
| int | link, | |||
| int | img, | |||
| int | x, | |||
| int | y | |||
| ) | [inline] |
References dw::core::Layout::LinkEmitter::emitEnter(), and linkEmitter.
| bool dw::core::Layout::emitLinkPress | ( | Widget * | w, | |
| int | link, | |||
| int | img, | |||
| int | x, | |||
| int | y, | |||
| EventButton * | event | |||
| ) | [inline] |
References dw::core::Layout::LinkEmitter::emitPress(), and linkEmitter.
Referenced by dw::core::SelectionState::buttonPress(), and processMouseEvent().
| bool dw::core::Layout::emitLinkRelease | ( | Widget * | w, | |
| int | link, | |||
| int | img, | |||
| int | x, | |||
| int | y, | |||
| EventButton * | event | |||
| ) | [inline] |
References dw::core::Layout::LinkEmitter::emitRelease(), and linkEmitter.
Referenced by dw::core::SelectionState::buttonRelease(), and processMouseEvent().
| void dw::core::Layout::enterNotify | ( | View * | view, | |
| int | x, | |||
| int | y, | |||
| ButtonState | state | |||
| ) |
This function is called by a view, to delegate a enter notify event.
Arguments are similar to dw::core::Layout::buttonPress.
References dw::core::Widget::enterNotify(), moveToWidgetAtPoint(), and widgetAtPoint.
Referenced by dw::fltk::FltkViewBase::handle().
| bool dw::core::Layout::fontExists | ( | const char * | name | ) | [inline] |
References dw::core::Platform::fontExists(), and platform.
Referenced by dw::core::style::Font::exists().
| style::Color* dw::core::Layout::getBgColor | ( | ) | [inline] |
References bgColor.
Referenced by dw::core::Widget::drawWidgetBox(), and dw::core::Widget::getBgColor().
| int dw::core::Layout::getHeightViewport | ( | ) | [inline] |
| ui::ResourceFactory* dw::core::Layout::getResourceFactory | ( | ) | [inline] |
References dw::core::Platform::getResourceFactory(), and platform.
| int dw::core::Layout::getScrollPosX | ( | ) | [inline] |
References scrollX.
| int dw::core::Layout::getScrollPosY | ( | ) | [inline] |
References scrollY.
| bool dw::core::Layout::getUsesViewport | ( | ) | [inline] |
| Widget * dw::core::Layout::getWidgetAtPoint | ( | int | x, | |
| int | y | |||
| ) | [private] |
| int dw::core::Layout::getWidthViewport | ( | ) | [inline] |
| void dw::core::Layout::leaveNotify | ( | View * | view, | |
| ButtonState | state | |||
| ) |
This function is called by a view, to delegate a leave notify event.
Arguments are similar to dw::core::Layout::buttonPress.
References dw::core::Widget::leaveNotify(), moveOutOfView(), and widgetAtPoint.
Referenced by dw::fltk::FltkViewBase::handle().
| bool dw::core::Layout::motionNotify | ( | View * | view, | |
| int | x, | |||
| int | y, | |||
| ButtonState | state | |||
| ) |
This function is called by a view, to delegate a motion notify event.
Arguments are similar to dw::core::Layout::buttonPress.
References MOTION_NOTIFY, moveToWidgetAtPoint(), and processMouseEvent().
Referenced by dw::fltk::FltkViewBase::handle(), and dw::fltk::FltkViewport::positionChanged().
| void dw::core::Layout::moveOutOfView | ( | ButtonState | state | ) | [inline, private] |
Emit the necessary crossing events, when the mouse pointer has moved out of the view.
References moveToWidget().
Referenced by leaveNotify().
| void dw::core::Layout::moveToWidget | ( | Widget * | newWidgetAtPoint, | |
| ButtonState | state | |||
| ) | [private] |
References dw::core::EventCrossing::currentWidget, dw::core::Widget::enterNotify(), dw::core::Widget::getNearestCommonAncestor(), dw::core::Widget::getParent(), dw::core::Widget::getTopLevel(), dw::core::EventCrossing::lastWidget, dw::core::Widget::leaveNotify(), dw::core::MouseEvent::state, updateCursor(), and widgetAtPoint.
Referenced by moveOutOfView(), and moveToWidgetAtPoint().
| void dw::core::Layout::moveToWidgetAtPoint | ( | int | x, | |
| int | y, | |||
| ButtonState | state | |||
| ) | [inline, private] |
Emit the necessary crossing events, when the mouse pointer has moved to position (x, );.
References getWidgetAtPoint(), and moveToWidget().
Referenced by buttonEvent(), enterNotify(), and motionNotify().
| int dw::core::Layout::nextGlyph | ( | const char * | text, | |
| int | idx | |||
| ) | [inline] |
References dw::core::Platform::nextGlyph(), and platform.
Referenced by dw::fltk::FltkWidgetView::drawText().
| int dw::core::Layout::prevGlyph | ( | const char * | text, | |
| int | idx | |||
| ) | [inline] |
References platform, and dw::core::Platform::prevGlyph().
| bool dw::core::Layout::processMouseEvent | ( | MousePositionEvent * | event, | |
| ButtonEventType | type, | |||
| bool | mayBeSuppressed | |||
| ) | [private] |
Common processing of press, release and motion events.
This function depends on that move_to_widget_at_point() has been called before.
References lout::misc::assertNotReached(), BUTTON_PRESS, BUTTON_RELEASE, dw::core::Widget::buttonPress(), dw::core::Widget::buttonRelease(), emitLinkPress(), emitLinkRelease(), dw::core::Widget::getAllocation(), dw::core::Widget::getParent(), dw::core::Widget::isButtonSensitive(), MOTION_NOTIFY, dw::core::Widget::motionNotify(), widgetAtPoint, dw::core::Allocation::x, and dw::core::Allocation::y.
Referenced by buttonEvent(), and motionNotify().
| void dw::core::Layout::queueDraw | ( | int | x, | |
| int | y, | |||
| int | width, | |||
| int | height | |||
| ) | [private] |
| void dw::core::Layout::queueDrawExcept | ( | int | x, | |
| int | y, | |||
| int | width, | |||
| int | height, | |||
| int | ex, | |||
| int | ey, | |||
| int | ewidth, | |||
| int | eheight | |||
| ) | [private] |
References lout::misc::max(), lout::misc::min(), and queueDraw().
Referenced by dw::core::Widget::sizeAllocate().
| void dw::core::Layout::queueResize | ( | ) | [private] |
References dw::core::Platform::addIdle(), dw::core::View::cancelQueueDraw(), platform, resizeIdle(), resizeIdleId, and view.
Referenced by addWidget(), dw::core::Widget::queueResize(), and viewportSizeChanged().
| void dw::core::Layout::removeAnchor | ( | Widget * | widget, | |
| char * | name | |||
| ) | [private] |
References anchorsTable, and lout::container::typed::HashTable< K, V >::remove().
Referenced by dw::core::Widget::removeAnchor().
| void dw::core::Layout::removeWidget | ( | ) | [private] |
References canvasAscent, canvasDescent, canvasWidth, dw::core::Layout::Emitter::emitCanvasSizeChanged(), emitter, findtextState, dw::core::View::queueDrawTotal(), dw::core::SelectionState::reset(), scrollX, scrollY, selectionState, setAnchor(), dw::core::View::setCanvasSize(), dw::core::View::setViewportSize(), dw::core::FindtextState::setWidget(), topLevel, updateAnchor(), updateCursor(), dw::core::View::usesViewport(), view, viewportHeight, viewportWidth, and widgetAtPoint.
Referenced by dw::core::Widget::~Widget().
| void dw::core::Layout::resetSearch | ( | ) | [inline] |
See dw::core::FindtextState::resetSearch.
References findtextState, and dw::core::FindtextState::resetSearch().
| void dw::core::Layout::resizeIdle | ( | ) | [private] |
References dw::core::Requisition::ascent, dw::core::Allocation::ascent, canvasAscent, canvasDescent, canvasHeightGreater, canvasWidth, dw::core::Requisition::descent, dw::core::Allocation::descent, dw::core::Layout::Emitter::emitCanvasSizeChanged(), emitter, hScrollbarThickness, resizeIdleId, dw::core::View::setCanvasSize(), setSizeHints(), dw::core::View::setViewportSize(), dw::core::Widget::sizeAllocate(), dw::core::Widget::sizeRequest(), topLevel, updateAnchor(), usesViewport, view, viewportHeight, viewportWidth, vScrollbarThickness, dw::core::Requisition::width, dw::core::Allocation::width, dw::core::Allocation::x, and dw::core::Allocation::y.
Referenced by queueResize().
| void dw::core::Layout::scroll | ( | ScrollCommand | cmd | ) |
References dw::core::View::scroll(), dw::core::View::usesViewport(), and view.
| void dw::core::Layout::scrollIdle | ( | ) | [private] |
References adjustScrollPos(), calcScrollInto(), drawAfterScrollReq, dw::core::HPOS_CENTER, dw::core::HPOS_INTO_VIEW, dw::core::HPOS_LEFT, dw::core::HPOS_NO_CHANGE, dw::core::HPOS_RIGHT, hScrollbarThickness, dw::core::View::queueDrawTotal(), scrollIdleId, scrollTargetHeight, scrollTargetHpos, scrollTargetVpos, scrollTargetWidth, scrollTargetX, scrollTargetY, dw::core::View::scrollTo(), scrollX, scrollY, view, viewportHeight, viewportWidth, dw::core::VPOS_BOTTOM, dw::core::VPOS_CENTER, dw::core::VPOS_INTO_VIEW, dw::core::VPOS_NO_CHANGE, dw::core::VPOS_TOP, and vScrollbarThickness.
Referenced by scrollTo0().
| void dw::core::Layout::scrollPosChanged | ( | View * | view, | |
| int | x, | |||
| int | y | |||
| ) |
References scrollX, scrollY, setAnchor(), and updateAnchor().
Referenced by dw::fltk::FltkViewport::scrollTo(), and dw::fltk::FltkPreviewWindow::scrollTo().
| void dw::core::Layout::scrollTo | ( | HPosition | hpos, | |
| VPosition | vpos, | |||
| int | x, | |||
| int | y, | |||
| int | width, | |||
| int | height | |||
| ) |
Scrolls all viewports, so that the region [x, y, width, height] is seen, according to hpos and vpos.
References scrollTo0().
Referenced by dw::core::Widget::scrollTo(), and dw::core::Iterator::scrollTo().
| void dw::core::Layout::scrollTo0 | ( | HPosition | hpos, | |
| VPosition | vpos, | |||
| int | x, | |||
| int | y, | |||
| int | width, | |||
| int | height, | |||
| bool | scrollingInterrupted | |||
| ) | [private] |
References dw::core::Platform::addIdle(), platform, scrollIdle(), scrollIdleId, scrollIdleNotInterrupted, scrollTargetHeight, scrollTargetHpos, scrollTargetVpos, scrollTargetWidth, scrollTargetX, scrollTargetY, and usesViewport.
Referenced by scrollTo(), and updateAnchor().
| FindtextState::Result dw::core::Layout::search | ( | const char * | str, | |
| bool | caseSens, | |||
| int | backwards | |||
| ) | [inline] |
See dw::core::FindtextState::search.
References findtextState, and dw::core::FindtextState::search().
| void dw::core::Layout::setAnchor | ( | const char * | anchor | ) |
Sets the anchor to scroll to.
References requestedAnchor, and updateAnchor().
Referenced by removeWidget(), and scrollPosChanged().
| void dw::core::Layout::setBgColor | ( | style::Color * | color | ) |
| void dw::core::Layout::setCursor | ( | style::Cursor | cursor | ) | [private] |
References dw::core::View::setCursor(), and view.
Referenced by dw::core::Widget::setCursor(), and updateCursor().
| void dw::core::Layout::setSizeHints | ( | ) | [private] |
References canvasHeightGreater, hScrollbarThickness, dw::core::Widget::setAscent(), dw::core::Widget::setDescent(), dw::core::Widget::setWidth(), topLevel, viewportHeight, viewportWidth, and vScrollbarThickness.
Referenced by addWidget(), resizeIdle(), and viewportSizeChanged().
| void dw::core::Layout::setWidget | ( | Widget * | widget | ) |
References addWidget(), textZone, topLevel, updateCursor(), widgetAtPoint, and lout::misc::ZoneAllocator::zoneFree().
Referenced by dw::core::ui::ComplexButtonResource::init().
| int dw::core::Layout::textWidth | ( | style::Font * | font, | |
| const char * | text, | |||
| int | len | |||
| ) | [inline] |
References platform, and dw::core::Platform::textWidth().
| void dw::core::Layout::updateAnchor | ( | ) | [private] |
References anchorsTable, lout::container::typed::HashTable< K, V >::get(), dw::core::HPOS_NO_CHANGE, platform, dw::core::Platform::removeIdle(), requestedAnchor, scrollIdleId, scrollIdleNotInterrupted, scrollTo0(), dw::core::VPOS_TOP, and dw::core::Layout::Anchor::y.
Referenced by addAnchor(), changeAnchor(), removeWidget(), resizeIdle(), scrollPosChanged(), and setAnchor().
| void dw::core::Layout::updateCursor | ( | ) | [private] |
References dw::core::style::StyleAttrs::cursor, dw::core::style::CURSOR_DEFAULT, setCursor(), dw::core::Widget::style, and widgetAtPoint.
Referenced by moveToWidget(), removeWidget(), dw::core::Widget::setStyle(), and setWidget().
| void dw::core::Layout::viewportSizeChanged | ( | View * | view, | |
| int | width, | |||
| int | height | |||
| ) |
References canvasHeightGreater, queueResize(), setSizeHints(), usesViewport, viewportHeight, and viewportWidth.
Referenced by dw::fltk::FltkViewport::resize(), and dw::fltk::FltkViewBase::setLayout().
friend class Widget [friend] |
lout::container::typed::HashTable<lout::object::String, Anchor>* dw::core::Layout::anchorsTable [private] |
Referenced by addAnchor(), changeAnchor(), Layout(), removeAnchor(), updateAnchor(), and ~Layout().
style::Color* dw::core::Layout::bgColor [private] |
Referenced by attachView(), getBgColor(), Layout(), setBgColor(), and ~Layout().
int dw::core::Layout::canvasAscent [private] |
Referenced by adjustScrollPos(), attachView(), Layout(), removeWidget(), and resizeIdle().
int dw::core::Layout::canvasDescent [private] |
Referenced by adjustScrollPos(), attachView(), Layout(), removeWidget(), and resizeIdle().
bool dw::core::Layout::canvasHeightGreater [private] |
Referenced by addWidget(), resizeIdle(), setSizeHints(), and viewportSizeChanged().
int dw::core::Layout::canvasWidth [private] |
Referenced by adjustScrollPos(), attachView(), Layout(), removeWidget(), and resizeIdle().
style::Cursor dw::core::Layout::cursor [private] |
Referenced by attachView(), and Layout().
bool dw::core::Layout::drawAfterScrollReq [private] |
Referenced by draw(), Layout(), and scrollIdle().
Emitter dw::core::Layout::emitter [private] |
Referenced by connect(), removeWidget(), and resizeIdle().
FindtextState dw::core::Layout::findtextState [private] |
Referenced by addWidget(), Layout(), removeWidget(), resetSearch(), and search().
int dw::core::Layout::hScrollbarThickness [private] |
Referenced by adjustScrollPos(), attachView(), Layout(), resizeIdle(), scrollIdle(), and setSizeHints().
Referenced by connectLink(), emitLinkClick(), emitLinkEnter(), emitLinkPress(), and emitLinkRelease().
Platform* dw::core::Layout::platform [private] |
char* dw::core::Layout::requestedAnchor [private] |
Referenced by Layout(), setAnchor(), and updateAnchor().
int dw::core::Layout::resizeIdleId [private] |
Referenced by Layout(), queueResize(), resizeIdle(), and ~Layout().
int dw::core::Layout::scrollIdleId [private] |
Referenced by draw(), Layout(), scrollIdle(), scrollTo0(), updateAnchor(), and ~Layout().
bool dw::core::Layout::scrollIdleNotInterrupted [private] |
Referenced by Layout(), scrollTo0(), and updateAnchor().
int dw::core::Layout::scrollTargetHeight [private] |
Referenced by scrollIdle(), and scrollTo0().
HPosition dw::core::Layout::scrollTargetHpos [private] |
Referenced by scrollIdle(), and scrollTo0().
VPosition dw::core::Layout::scrollTargetVpos [private] |
Referenced by scrollIdle(), and scrollTo0().
int dw::core::Layout::scrollTargetWidth [private] |
Referenced by scrollIdle(), and scrollTo0().
int dw::core::Layout::scrollTargetX [private] |
Referenced by scrollIdle(), and scrollTo0().
int dw::core::Layout::scrollTargetY [private] |
Referenced by scrollIdle(), and scrollTo0().
int dw::core::Layout::scrollX [private] |
Referenced by adjustScrollPos(), attachView(), getScrollPosX(), Layout(), removeWidget(), scrollIdle(), and scrollPosChanged().
int dw::core::Layout::scrollY [private] |
Referenced by adjustScrollPos(), attachView(), getScrollPosY(), Layout(), removeWidget(), scrollIdle(), and scrollPosChanged().
Referenced by Layout(), setWidget(), and ~Layout().
Widget* dw::core::Layout::topLevel [private] |
Referenced by addWidget(), draw(), getWidgetAtPoint(), Layout(), removeWidget(), resizeIdle(), setSizeHints(), setWidget(), and ~Layout().
bool dw::core::Layout::usesViewport [private] |
Referenced by attachView(), getUsesViewport(), Layout(), resizeIdle(), scrollTo0(), and viewportSizeChanged().
View* dw::core::Layout::view [private] |
Referenced by Layout(), queueDraw(), queueResize(), removeWidget(), resizeIdle(), scroll(), scrollIdle(), setBgColor(), setCursor(), and ~Layout().
int dw::core::Layout::viewportHeight [private] |
Referenced by adjustScrollPos(), attachView(), getHeightViewport(), Layout(), removeWidget(), resizeIdle(), scrollIdle(), setSizeHints(), and viewportSizeChanged().
int dw::core::Layout::viewportWidth [private] |
Referenced by adjustScrollPos(), attachView(), getWidthViewport(), Layout(), removeWidget(), resizeIdle(), scrollIdle(), setSizeHints(), and viewportSizeChanged().
int dw::core::Layout::vScrollbarThickness [private] |
Referenced by adjustScrollPos(), attachView(), Layout(), resizeIdle(), scrollIdle(), and setSizeHints().
Widget * dw::core::Layout::widgetAtPoint [private] |
Referenced by enterNotify(), Layout(), leaveNotify(), moveToWidget(), processMouseEvent(), removeWidget(), setWidget(), updateCursor(), and ~Layout().
1.5.9