MCPcopy Create free account
hub / github.com/SFML/SFML / createFromSystem

Method createFromSystem

src/SFML/Window/Cursor.cpp:99–109  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

97
98////////////////////////////////////////////////////////////
99std::optional<Cursor> Cursor::createFromSystem(Type type)
100{
101 Cursor cursor;
102 if (!cursor.m_impl->loadFromSystem(type))
103 {
104 // Error message generated in called function.
105 return std::nullopt;
106 }
107
108 return cursor;
109}
110
111
112////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

loadFromSystemMethod · 0.45

Tested by

no test coverage detected