Krita Source Code Documentation
Loading...
Searching...
No Matches
AppmodelFunctions Struct Reference

Public Member Functions

 AppmodelFunctions ()
 
template<typename T , typename U >
cast_to_function (U v) noexcept
 
 ~AppmodelFunctions ()=default
 

Static Public Member Functions

static const AppmodelFunctionsinstance ()
 

Public Attributes

QLibrary dllKernel32
 
pGetCurrentPackageFamilyName_t getCurrentPackageFamilyName {}
 
pGetCurrentPackageFullName_t getCurrentPackageFullName {}
 

Detailed Description

Definition at line 76 of file KisWindowsPackageUtils.cpp.

Constructor & Destructor Documentation

◆ AppmodelFunctions()

AppmodelFunctions::AppmodelFunctions ( )
inline

Definition at line 93 of file KisWindowsPackageUtils.cpp.

94 : dllKernel32("kernel32.dll")
95 {
97 cast_to_function<pGetCurrentPackageFamilyName_t>(dllKernel32.resolve("GetCurrentPackageFamilyName"));
99 cast_to_function<pGetCurrentPackageFullName_t>(dllKernel32.resolve("GetCurrentPackageFullName"));
100 }
pGetCurrentPackageFamilyName_t getCurrentPackageFamilyName
pGetCurrentPackageFullName_t getCurrentPackageFullName

References dllKernel32, getCurrentPackageFamilyName, and getCurrentPackageFullName.

◆ ~AppmodelFunctions()

AppmodelFunctions::~AppmodelFunctions ( )
default

Member Function Documentation

◆ cast_to_function()

template<typename T , typename U >
T AppmodelFunctions::cast_to_function ( U v)
inlinenoexcept

Definition at line 82 of file KisWindowsPackageUtils.cpp.

83 {
84 return reinterpret_cast<T>(reinterpret_cast<void *>(v));
85 }
qreal v

References v.

◆ instance()

static const AppmodelFunctions & AppmodelFunctions::instance ( )
inlinestatic

Definition at line 87 of file KisWindowsPackageUtils.cpp.

88 {
89 static const AppmodelFunctions s{};
90 return s;
91 }

Member Data Documentation

◆ dllKernel32

QLibrary AppmodelFunctions::dllKernel32

Definition at line 79 of file KisWindowsPackageUtils.cpp.

◆ getCurrentPackageFamilyName

pGetCurrentPackageFamilyName_t AppmodelFunctions::getCurrentPackageFamilyName {}

Definition at line 77 of file KisWindowsPackageUtils.cpp.

77{};

◆ getCurrentPackageFullName

pGetCurrentPackageFullName_t AppmodelFunctions::getCurrentPackageFullName {}

Definition at line 78 of file KisWindowsPackageUtils.cpp.

78{};

The documentation for this struct was generated from the following file: