(Urgent)Calculating the VisRgn of my windows
(Urgent)Calculating the VisRgn of my windows
- Subject: (Urgent)Calculating the VisRgn of my windows
- From: Ayush Ghai <email@hidden>
- Date: Thu, 14 Jul 2005 01:51:49 -0700
Hi all
How can I calculate the visible region of my windows on screen?? I
want to have a region which has an array of rectangles correspoding to
the visible portion of my windows on screen. I want to do this so as
to catch the screen updates on the screen within that region. I intend
to use CGGetScreenRefreshCallback.
Will the function GetPortVisibleRegion be useful? Will this function
return me the exact visible region corresponding to my window and not
the container box instead? Also I have come to know that it will be
deprecated from mac os x version 1.4 onwards.. Is there any alternate
way to do this?
If you are thinking that why would one want to calculate the visible
region of ones own window then please scroll below to know my reason.
In need of urgent help.
Regards
Ayush Ghai
Actually I am working on a real time collaboration project which has a
functionality of sharing individual applications. So the host selects
the windows on screen which he wants to share with the attendees of
the meeting.The shared windows are then highlighted by drawing my own
red bordered transparent sister windows each of those shared windows.
Then in order to transfer the screen updates corresponding to the
shared windows i need to know the visible region corresponding to
those windows, which I can intersect with the rectangles i get from
the GetScreenRefreshCallback function of quartz. After intersection I
will send the intersected region to the attendees of the meeting. I
hope I am clear till now.
Now the problem is to calculate the visible region for the other
applications windows. I dont know any legal way to do that. So I
though that since my transparent windows are on the top of the other
windows then if i can calculate the visible region of my own windows
then it will effectively be the visible region of the windows the host
wants to share. This is why I am enquiring about any way to calculate
the visible region of my own windows.
Hope this explanation makes things a bit clearer. Please let me know
any possible solution you have to calculate the visible region
correspoding to the shared windows, even if not through my own
transparent red sister windows on top of them.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden