Recent

Author Topic: Are clipping functions cross-platform?  (Read 2436 times)

jbreits

  • New Member
  • *
  • Posts: 15
    • http://www.breittechnologies.com
Are clipping functions cross-platform?
« on: March 27, 2009, 09:55:42 pm »
I would like to be able to limit drawing on a canvas to a particular region using clipping functions.  I know it can be done in Windows with SelectClipRgn.  However, I'm wondering if this method is cross-platform.  I'm working on a component and would love to be able to use it in Linux as well as windows.

I was looking at the source for the TVirtualTreeView from the Lazarus CCR.  It appears to be using the SelectClipRgn function.  And the wiki page for this component claims it is compatible with Linus (haven't tested myself). 

So can I assume that clipping is cross-platform?

Thanks,
JBreits
--
JBreits

 

TinyPortal © 2005-2018