• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Plasma

ItemSpace::ItemGroup::Request

ItemSpace::ItemGroup::Request Class Reference

#include <itemspace.h>

List of all members.


Public Member Functions

void activate (ItemSpace *itemSpace, ItemGroup *group)
 Request (int sourceGroup, qreal sourceGroupPushRequested, qreal pushRequested)

Public Attributes

bool m_compensated
qreal m_pushRequested
int m_sourceGroup
qreal m_sourceGroupPushRequested

Detailed Description

Definition at line 180 of file itemspace.h.


Constructor & Destructor Documentation

ItemSpace::ItemGroup::Request::Request ( int  sourceGroup,
qreal  sourceGroupPushRequested,
qreal  pushRequested 
)

Create a push request.

No calculations will be performed.

Parameters:
sourceGroup the group that posted the request, or -1 if it was posted manually.
sourceGroupPushRequested how much the posting group wanted to move itself when the request was posted (if sourceGroup is -1)
pushRequested how much the group concerned is asked to move

Definition at line 362 of file itemspace.cpp.


Member Function Documentation

void ItemSpace::ItemGroup::Request::activate ( ItemSpace *  itemSpace,
ItemGroup *  group 
)

Perform obstacle searching and post push request to obstacle groups.

This is the main method involved in recursive push calculation.

If an item is found to be in the way of any of the group's items, its ItemGroup will be created if it doesn't have one already, and a new push request will bo posted to it.

If the offending group can not move as much as we need it to, we limit the amount our group wants to move, and future obstacles will be asked to move less than they would have been had there been no obstacle.

Parameters:
group the ItemGroup this push request belongs to

Definition at line 374 of file itemspace.cpp.


Member Data Documentation

bool ItemSpace::ItemGroup::Request::m_compensated

Definition at line 223 of file itemspace.h.

qreal ItemSpace::ItemGroup::Request::m_pushRequested

Definition at line 219 of file itemspace.h.

int ItemSpace::ItemGroup::Request::m_sourceGroup

Definition at line 217 of file itemspace.h.

qreal ItemSpace::ItemGroup::Request::m_sourceGroupPushRequested

Definition at line 218 of file itemspace.h.


The documentation for this class was generated from the following files:
  • itemspace.h
  • itemspace.cpp

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal