/*! \brief Sets the decorator's window look \param look New value for the look */ void Decorator::SetLook(DesktopSettings& settings, window_look look, BRegion* updateRect) { _SetLook(settings, look, updateRect); _InvalidateFootprint(); // the border very likely changed }
bool Decorator::SetSettings(const BMessage& settings, BRegion* updateRegion) { if (_SetSettings(settings, updateRegion)) { _InvalidateFootprint(); return true; } return false; }
bool Decorator::SetTabLocation(float location, BRegion* updateRegion) { if (_SetTabLocation(location, updateRegion)) { _InvalidateFootprint(); return true; } return false; }
/*! \brief Updates the value of the decorator title \param string New title value */ void Decorator::SetTitle(const char* string, BRegion* updateRegion) { fTitle.SetTo(string); _SetTitle(string, updateRegion); _InvalidateFootprint(); // the border very likely changed // TODO: redraw? }
void MacDecorator::_SetFlags(uint32 flags, BRegion* updateRegion) { // TODO: we could be much smarter about the update region // get previous extent if (updateRegion != NULL) updateRegion->Include(&GetFootprint()); _DoLayout(); _InvalidateFootprint(); if (updateRegion != NULL) updateRegion->Include(&GetFootprint()); }
void MacDecorator::_FontsChanged(DesktopSettings& settings, BRegion* updateRegion) { // get previous extent if (updateRegion != NULL) updateRegion->Include(&GetFootprint()); _UpdateFont(settings); _DoLayout(); _InvalidateFootprint(); if (updateRegion != NULL) updateRegion->Include(&GetFootprint()); }
/*! \brief Sets the decorator's window flags While this call will not update the screen, it will affect how future updates work and immediately affects input handling. \param flags New value for the flags */ void Decorator::SetFlags(uint32 flags, BRegion* updateRegion) { // we're nice to our subclasses - we make sure B_NOT_{H|V|}_RESIZABLE // are in sync (it's only a semantical simplification, not a necessity) if ((flags & (B_NOT_H_RESIZABLE | B_NOT_V_RESIZABLE)) == (B_NOT_H_RESIZABLE | B_NOT_V_RESIZABLE)) flags |= B_NOT_RESIZABLE; if (flags & B_NOT_RESIZABLE) flags |= B_NOT_H_RESIZABLE | B_NOT_V_RESIZABLE; _SetFlags(flags, updateRegion); _InvalidateFootprint(); // the border might have changed (smaller/larger tab) }
void MacDecorator::_SetLook(DesktopSettings& settings, window_look look, BRegion* updateRegion) { // TODO: we could be much smarter about the update region // get previous extent if (updateRegion != NULL) updateRegion->Include(&GetFootprint()); fLook = look; _UpdateFont(settings); _DoLayout(); _InvalidateFootprint(); if (updateRegion != NULL) updateRegion->Include(&GetFootprint()); }
void Decorator::ResizeBy(BPoint offset, BRegion* dirty) { _ResizeBy(offset, dirty); _InvalidateFootprint(); }
/*! \brief Called whenever the system fonts are changed. */ void Decorator::FontsChanged(DesktopSettings& settings, BRegion* updateRegion) { _FontsChanged(settings, updateRegion); _InvalidateFootprint(); }