Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpwl_scroll_bar.h>
Static Public Attributes | |
static constexpr float | kWidth = 12.0f |
static constexpr uint8_t | kTransparency = 150 |
Static Public Attributes inherited from CPWL_Wnd | |
static const CFX_Color | kDefaultBlackColor |
static const CFX_Color | kDefaultWhiteColor |
Definition at line 92 of file cpwl_scroll_bar.h.
CPWL_ScrollBar::CPWL_ScrollBar | ( | const CreateParams & | cp, |
std::unique_ptr< IPWL_FillerNotify::PerWindowData > | pAttachedData ) |
Definition at line 108 of file cpwl_scroll_bar.cpp.
References CPWL_Wnd::GetCreationParams(), and IPWL_FillerNotify::kArrow.
|
overridedefault |
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 517 of file cpwl_scroll_bar.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 169 of file cpwl_scroll_bar.cpp.
References CFX_FloatRect::bottom, CFX_RenderDevice::DrawStrokeLine(), CPWL_Wnd::GetBackgroundColor(), CPWL_Wnd::GetTransparency(), CPWL_Wnd::GetWindowRect(), CFX_FloatRect::IsEmpty(), CPWL_Wnd::IsVisible(), CFX_FloatRect::left, CFX_FloatRect::right, and CFX_FloatRect::top.
float CPWL_ScrollBar::GetScrollBarWidth | ( | ) | const |
Definition at line 326 of file cpwl_scroll_bar.cpp.
References CPWL_Wnd::IsVisible(), and kWidth.
Referenced by CPWL_Wnd::GetClientRect().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 265 of file cpwl_scroll_bar.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 274 of file cpwl_scroll_bar.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 283 of file cpwl_scroll_bar.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 117 of file cpwl_scroll_bar.cpp.
References CPWL_Wnd::OnDestroy().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 189 of file cpwl_scroll_bar.cpp.
References CFX_FloatRect::CFX_FloatRect(), PWL_SCROLL_PRIVATEDATA::AddBig(), CFX_FloatRect::bottom, CFX_FloatRect::Contains(), CPWL_Wnd::GetClientRect(), CPWL_Wnd::GetTransparency(), CPWL_Wnd::HasFlag(), CPWL_Wnd::InvalidateRect(), CFX_FloatRect::left, CFX_FloatRect::Normalize(), CPWL_Wnd::OnLButtonDown(), CFX_FloatRect::right, CPWL_Wnd::SetTransparency(), PWL_SCROLL_PRIVATEDATA::SubBig(), and CFX_FloatRect::top.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 232 of file cpwl_scroll_bar.cpp.
References CPWL_Wnd::GetTransparency(), CPWL_Wnd::HasFlag(), CPWL_Wnd::InvalidateRect(), kTransparency, CPWL_Wnd::OnLButtonUp(), and CPWL_Wnd::SetTransparency().
|
overridevirtual |
Implements CFX_Timer::CallbackIface.
Definition at line 521 of file cpwl_scroll_bar.cpp.
References PWL_SCROLL_PRIVATEDATA::AddSmall(), PWL_SCROLL_PRIVATEDATA::operator==(), and PWL_SCROLL_PRIVATEDATA::SubSmall().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 128 of file cpwl_scroll_bar.cpp.
References CFX_FloatRect::CFX_FloatRect(), CFX_FloatRect::bottom, CPWL_Wnd::GetClientRect(), CFX_FloatRect::left, CFX_FloatRect::operator=(), CFX_FloatRect::right, CPWL_Wnd::SetVisible(), and CFX_FloatRect::top.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 249 of file cpwl_scroll_bar.cpp.
References PWL_SCROLL_INFO::fBigStep, PWL_SCROLL_INFO::fContentMax, PWL_SCROLL_INFO::fContentMin, PWL_SCROLL_INFO::fPlateWidth, PWL_SCROLL_INFO::fSmallStep, and PWL_SCROLL_INFO::operator==().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 260 of file cpwl_scroll_bar.cpp.
References PWL_SCROLL_INFO::fContentMax.
|
staticconstexpr |
Definition at line 95 of file cpwl_scroll_bar.h.
Referenced by OnLButtonUp().
|
staticconstexpr |
Definition at line 94 of file cpwl_scroll_bar.h.
Referenced by CPWL_Edit::GetClientRect(), GetScrollBarWidth(), CPWL_Edit::RepositionChildWnd(), and CPWL_Wnd::RepositionChildWnd().