OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
ComboBox.cpp File Reference
#include "ComboBox.hpp"
#include "Label.hpp"
#include "slic3r/GUI/Widgets/TextInput.hpp"
#include <utility>
#include "slic3r/GUI/Widgets/DropDown.hpp"
#include <wx/clntdata.h>
#include <vector>
#include <wx/arrstr.h>
#include <cstddef>
#include <wx/containr.h>
#include <wx/dcgraph.h>
#include <wx/textctrl.h>
#include <wx/string.h>
#include <wx/gdicmn.h>
#include <wx/event.h>
#include "slic3r/GUI/Widgets/StateColor.hpp"
Include dependency graph for ComboBox.cpp:

Go to the source code of this file.

Functions

static wxWindow * GetScrollParent (wxWindow *pWindow)

Function Documentation

◆ GetScrollParent()

wxWindow * GetScrollParent ( wxWindow * pWindow)
static
36{
37 wxWindow *pWin = pWindow;
38 while (pWin->GetParent()) {
39 auto pWin2 = pWin->GetParent();
40 if (auto top = dynamic_cast<wxScrollHelper *>(pWin2))
41 return dynamic_cast<wxWindow *>(pWin);
42 pWin = pWin2;
43 }
44 return nullptr;
45}

References GetScrollParent().

Referenced by ComboBox::ComboBox(), and GetScrollParent().

Here is the call graph for this function:
Here is the caller graph for this function: