Where are wxDefaultSize wxDefaultPosition documented and defined?

904 views
Skip to first unread message

Bob

unread,
Nov 29, 2007, 3:02:37 PM11/29/07
to wx-u...@lists.wxwidgets.org

I'm sure I'm overlooking the obvious, but looking through the documentation
and egreping the headers, I could not find where items
like wxDefaultSize and wxDefaultPosition are defined (which file?),
nor documented (where?).  Their usage and appearance is extensive,
but documentation sparse.



Vadim Zeitlin

unread,
Nov 30, 2007, 5:01:25 PM11/30/07
to wx-u...@lists.wxwidgets.org
On Thu, 29 Nov 2007 15:02:37 -0500 Bob <wxwi...@gmail.com> wrote:

B> I'm sure I'm overlooking the obvious, but looking through the documentation
B> and egreping the headers, I could not find where items
B> like wxDefaultSize and wxDefaultPosition are defined (which file?),
B> nor documented (where?). Their usage and appearance is extensive,
B> but documentation sparse.

I couldn't find where they were documented neither so maybe they're
missing but OTOH:

1. I don't know where would be the logical place to add them (wxPoint and
wxSize or some new section for global constants?)

2. I don't really see what can be said about them, beyond the fact that
they exist and are used as default arguments by many wx functions

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/


Vadim Zeitlin

unread,
Dec 3, 2007, 3:54:28 PM12/3/07
to wx-u...@lists.wxwidgets.org
On Mon, 3 Dec 2007 12:48:22 -0500 Bob <wxwi...@gmail.com> wrote:

B> On 11/30/07, Vadim Zeitlin <va...@wxwidgets.org> wrote:
B> >


B> > On Thu, 29 Nov 2007 15:02:37 -0500 Bob <wxwi...@gmail.com> wrote:
B> >

B> > ...some new section for global constants?)
B>
B> That is where I was expecting to find them. They are after all global
B> constants.

Yes, maybe we do need to have such section...

B> > 2. I don't really see what can be said about them, beyond the fact that
B> > they exist and are used as default arguments by many wx functions
B>
B>
B> Do they have default values? What are they?

(-1, -1)

B> Do they change with platforms, as I would expect them to?

No, they don't.

B> Regardless where are they actually defined at?

src/common/gdicmn.cpp

Bob

unread,
Dec 3, 2007, 12:48:22 PM12/3/07
to wx-u...@lists.wxwidgets.org
On 11/30/07, Vadim Zeitlin <va...@wxwidgets.org> wrote:
On Thu, 29 Nov 2007 15:02:37 -0500 Bob <wxwi...@gmail.com> wrote:

...some new section for global constants?)

That is where I was expecting to find them.  They are after all global constants.

2. I don't really see what can be said about them, beyond the fact that
   they exist and are used as default arguments by many wx functions
Do they have default values?  What are they?
Do they change with platforms, as I would expect them to?

Regardless where are they actually defined at?
In a file or as part of the wxWidgets build process?


Reply all
Reply to author
Forward
0 new messages