mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-02 18:12:43 +00:00
3DScene mouse event handler partially moved to c++ - part 2
This commit is contained in:
@@ -95,7 +95,7 @@ public:
|
||||
void call() const;
|
||||
void call(int i) const;
|
||||
void call(int i, int j) const;
|
||||
// void call(const std::vector<int> &ints);
|
||||
void call(const std::vector<int>& ints) const;
|
||||
// void call();
|
||||
// void call(int i);
|
||||
// void call(int i, int j);
|
||||
|
||||
@@ -238,9 +238,8 @@ void PerlCallback::call(int i, int j) const
|
||||
LEAVE;
|
||||
}
|
||||
|
||||
/*
|
||||
//##############################################################################################################
|
||||
void PerlCallback::call(const std::vector<int> &ints) const
|
||||
void PerlCallback::call(const std::vector<int>& ints) const
|
||||
//void PerlCallback::call(const std::vector<int> &ints)
|
||||
//##############################################################################################################
|
||||
{
|
||||
@@ -250,16 +249,22 @@ void PerlCallback::call(const std::vector<int> &ints) const
|
||||
ENTER;
|
||||
SAVETMPS;
|
||||
PUSHMARK(SP);
|
||||
AV* av = newAV();
|
||||
//##############################################################################################################
|
||||
for (int i : ints)
|
||||
av_push(av, newSViv(i));
|
||||
XPUSHs(av);
|
||||
{
|
||||
XPUSHs(sv_2mortal(newSViv(i)));
|
||||
}
|
||||
|
||||
// AV* av = newAV();
|
||||
// for (int i : ints)
|
||||
// av_push(av, newSViv(i));
|
||||
// XPUSHs(av);
|
||||
//##############################################################################################################
|
||||
PUTBACK;
|
||||
perl_call_sv(SvRV((SV*)m_callback), G_DISCARD);
|
||||
FREETMPS;
|
||||
LEAVE;
|
||||
}
|
||||
*/
|
||||
|
||||
#ifdef WIN32
|
||||
#ifndef NOMINMAX
|
||||
|
||||
Reference in New Issue
Block a user