MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / TrayFlyoutPage

Method TrayFlyoutPage

Xaml/Pages/TrayFlyoutPage.cpp:13–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace winrt::TranslucentTB::Xaml::Pages::implementation
12{
13 TrayFlyoutPage::TrayFlyoutPage(bool hasPackageIdentity) :
14 m_HasPackageIdentity(hasPackageIdentity)
15 {
16 SYSTEM_POWER_STATUS powerStatus;
17 if (GetSystemPowerStatus(&powerStatus))
18 {
19 // 128 means no system battery. assume everything else
20 // means the system has one.
21 m_SystemHasBattery = powerStatus.BatteryFlag != 128;
22 }
23 else
24 {
25 m_SystemHasBattery = true; // assume the system has a battery
26 }
27 }
28
29 void TrayFlyoutPage::SetTaskbarSettings(const txmp::TaskbarState &state, const txmp::TaskbarAppearance &appearance)
30 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected