File indexing completed on 2025-03-02 05:11:58
0001 /* 0002 SPDX-FileCopyrightText: 2021 Dan Leinir Turthra Jensen <admin@leinir.dk> 0003 0004 SPDX-License-Identifier: LGPL-2.0-only 0005 */ 0006 0007 #pragma once 0008 0009 class CursorTheme; 0010 /** Applies a given theme, using XFixes, XCursor and KGlobalSettings. 0011 @param theme The cursor theme to be applied. It is save to pass 0 here 0012 (will result in \e false as return value). 0013 @param size The size hint that is used to select the cursor size. 0014 @returns If the changes could be applied. Will return \e false if \e theme is 0015 0 or if the XFixes and XCursor libraries aren't available in the required 0016 version, otherwise returns \e true. */ 0017 bool applyTheme(const CursorTheme *theme, const int size);