SourceForge logo
SourceForge logo
Menu

wxlua-users

From: Mateusz C. <cza...@gm...> - 2009年01月19日 22:48:47
Hello!
I'd like to draw a polygon. I found the wxDC:DrawPolygonsList() method, but
I can't get it to work. It requires a wxList as a first argument - which, as
far as I understand, should be a list of wxPoints. However, wxLua's
implementation of wxList seems to allow only wxObjects as it's elements,
while wxPoint is not a descendant of wxObject. Does it mean I can't draw
polygons at all? Or am I missing something?
Thanks in advance
- Mateusz Czapliński
From: John L. <jla...@gm...> - 2009年01月21日 04:37:48
2009年1月19日 Mateusz Czaplinski <cza...@gm...>:
> Hello!
> I'd like to draw a polygon. I found the wxDC:DrawPolygonsList() method, but
> I can't get it to work. It requires a wxList as a first argument - which, as
> far as I understand, should be a list of wxPoints. However, wxLua's
> implementation of wxList seems to allow only wxObjects as it's elements,
> while wxPoint is not a descendant of wxObject. Does it mean I can't draw
> polygons at all? Or am I missing something?
You're right, there is no way to put wxPoints into a wxList. This is a
oversight, I'll add it for the next version in the next few weeks.
-John
From: Mateusz C. <cza...@gm...> - 2009年01月22日 22:18:17
On Wed, Jan 21, 2009 at 5:37 AM, John Labenski <jla...@gm...> wrote:
> You're right, there is no way to put wxPoints into a wxList. This is a
> oversight, I'll add it for the next version in the next few weeks.
>
Ok, thanks!
Mateusz Czapliński
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /