On 13/05/14 07:54, Richard Faasen wrote:

I'm not sure what wrapping is exactly and I can't find any xs file that belongs to WxPerl.
wxPerl is a Perl front-end for wxWidgets, which is written in c++.

Depending on how you installed wxPerl, the wrapping files can be in different places:

- if you used cpan, they will be in your cpan folder, which on Linux is a hidden directory called ~/.cpan,
- if you used svn, it will be in the subdirectory specified;
- if you used ppm, it'll be (don't know where ppm puts it's files);

Etc.

Inside those directories are a load of files which create an interface between wxWidgets and the Perl commands.

The main ones (from memory) are XS and ext. A lot of them are generated automatically and these will be probably be overwritten if you modify them.

The main one for cocoa seems to be (on my machine ~/Alien-wxWidgets/wxWidgets-3.0.0/src/cocoa/taskbar.mm.

It looks as though it works in the normal way (ie based on events).

See below.

Anyhow post your code and people can look at it.

Regards

Steve.

// ============================================================================
// wxTaskBarIconWindow
//     Used by all implementations to forward events from the wxMenu
// ============================================================================
class wxTaskBarIconWindow: public wxWindow
{
    DECLARE_EVENT_TABLE()
public:
    wxTaskBarIconWindow(wxTaskBarIconCocoaImpl *taskBarIconImpl)
    :   wxWindow(NULL,-1)
    ,   m_taskBarIconImpl(taskBarIconImpl)
    {   wxASSERT(m_taskBarIconImpl); }

    void OnMenuEvent(wxCommandEvent& event);
protected:
    wxTaskBarIconCocoaImpl *m_taskBarIconImpl;
};

Reply via email to