Add GetDrawData function
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5060 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user