Add GetDrawData function

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5060 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shadow303
2003-10-16 22:25:06 +00:00
parent c01b1be5a0
commit a9af2b0df0
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -1252,3 +1252,9 @@ printf("\t DONE Layer(%s)::DoResizeTo()...\n", _name->String());
* added 2 new methods - DoMoveTo and DoResizeTo. They move/resize the frame rectangle of Layer class.
In DoResizeTo() I added some code for autoresizing(based on BView's resizeMask parameter) of children. Still, the effective code for resizing need to be written. :-) I could do that, but other things have greater priority. :-)
*/
LayerData* Layer::GetDrawData()
{
_layerdata->fVisibleRegion = _visible;
return _layerdata;
}
+1
View File
@@ -73,6 +73,7 @@ public:
PortLink *GetLink(void);
const char *GetName(void) { return (_name)?_name->String():NULL; }
LayerData *GetLayerData(void) { return _layerdata; }
LayerData *GetDrawData(void);
void SetLayerCursor(ServerCursor *csr);
ServerCursor *GetLayerCursor(void) const;