salobj.cxx (9f62ea84) | salobj.cxx (cd426cce) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 154 unchanged lines hidden (view full) --- 163 mnHeight = nHeight; 164 setClippedPosSize(); 165} 166 167// ----------------------------------------------------------------------- 168 169void AquaSalObject::setClippedPosSize() 170{ | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 154 unchanged lines hidden (view full) --- 163 mnHeight = nHeight; 164 setClippedPosSize(); 165} 166 167// ----------------------------------------------------------------------- 168 169void AquaSalObject::setClippedPosSize() 170{ |
171 NSRect aViewRect = { { 0, 0 }, { mnWidth, mnHeight } }; | 171 NSRect aViewRect = NSMakeRect( 0, 0, mnWidth, mnHeight); |
172 if( maSysData.pView ) 173 { 174 NSView *pView = maSysData.pView; 175 [pView setFrame: aViewRect]; 176 } 177 | 172 if( maSysData.pView ) 173 { 174 NSView *pView = maSysData.pView; 175 [pView setFrame: aViewRect]; 176 } 177 |
178 NSRect aClipViewRect = { { mnX, mnY }, { mnWidth, mnHeight } }; 179 NSPoint aClipPt = { 0, 0 }; | 178 NSRect aClipViewRect = NSMakeRect( mnX, mnY, mnWidth, mnHeight); 179 NSPoint aClipPt = NSMakePoint( 0, 0); |
180 if( mbClip ) 181 { 182 aClipViewRect.origin.x += mnClipX; 183 aClipViewRect.origin.y += mnClipY; 184 aClipViewRect.size.width = mnClipWidth; 185 aClipViewRect.size.height = mnClipHeight; 186 aClipPt.x = mnClipX; 187 if( mnClipY == 0 ) --- 54 unchanged lines hidden --- | 180 if( mbClip ) 181 { 182 aClipViewRect.origin.x += mnClipX; 183 aClipViewRect.origin.y += mnClipY; 184 aClipViewRect.size.width = mnClipWidth; 185 aClipViewRect.size.height = mnClipHeight; 186 aClipPt.x = mnClipX; 187 if( mnClipY == 0 ) --- 54 unchanged lines hidden --- |