Plasma
ItemSpace::ItemGroup::Request Class Reference
#include <itemspace.h>
Public Member Functions | |
| Request (int sourceGroup, qreal sourceGroupPushRequested, qreal pushRequested) | |
| void | activate (ItemSpace *itemSpace, ItemGroup *group) |
Public Attributes | |
| bool | m_compensated |
| qreal | m_pushRequested |
| int | m_sourceGroup |
| qreal | m_sourceGroupPushRequested |
Detailed Description
Definition at line 176 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 404 of file itemspace.cpp.
Member Function Documentation
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 416 of file itemspace.cpp.
Member Data Documentation
Definition at line 219 of file itemspace.h.
Definition at line 215 of file itemspace.h.
Definition at line 213 of file itemspace.h.
Definition at line 214 of file itemspace.h.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference