Where can I find more detailed information about gecko,including every
class ,function defined in gecko,even relationship between classes? I
found it's diffcult to get more detailed information for mozilla
software.Not like some java software,you can get api documents easily
by javadoc.I know lxr,but I am not familliar with it and can't use it
effectively.

I am planning to develop an application based on gecko,which need to
know that the size of every frame in HTML file,the position and the
size of every element in every frame.
I try some code like this,but it dos not work:


               presShell->GetPrimaryFrameFor(content, &frame);
                if (frame)
                {
                        nsRect rect=frame->GetRect();
                        printf("x=%f\ty=%f width=%f height=%f
\n",rect.x,rect.y,rect.width,rect.height);
                }

the rsult is x=0 y=0 width=0 height=0
What's wrong with these codes?Why all 0?

If I want to get the position and size of every element in frame,what
more need I do?
I am newbie to gecko even mozilla.Hope somebody point a direction to
me.Thanks in advance.

_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to