Esempio n. 1
0
/*!	\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
}
Esempio n. 2
0
bool
Decorator::SetSettings(const BMessage& settings, BRegion* updateRegion)
{
	if (_SetSettings(settings, updateRegion)) {
		_InvalidateFootprint();
		return true;
	}
	return false;
}
Esempio n. 3
0
bool
Decorator::SetTabLocation(float location, BRegion* updateRegion)
{
	if (_SetTabLocation(location, updateRegion)) {
		_InvalidateFootprint();
		return true;
	}
	return false;
}
Esempio n. 4
0
/*!	\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?
}
Esempio n. 5
0
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());
}
Esempio n. 6
0
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());
}
Esempio n. 7
0
/*!	\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)
}
Esempio n. 8
0
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());
}
Esempio n. 9
0
void
Decorator::ResizeBy(BPoint offset, BRegion* dirty)
{
	_ResizeBy(offset, dirty);
	_InvalidateFootprint();
}
Esempio n. 10
0
/*!	\brief Called whenever the system fonts are changed.
*/
void
Decorator::FontsChanged(DesktopSettings& settings, BRegion* updateRegion)
{
	_FontsChanged(settings, updateRegion);
	_InvalidateFootprint();
}