Client skin changing method, device, equipment and computer-readable storage medium
A client replacement and skinning technology, applied in the direction of program control devices, user interface execution, etc., can solve the problems of heavy workload of programmers, inconvenient unified management, low code reusability, etc., to solve the huge workload and facilitate the later stage The effect of maintaining and increasing code reusability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] figure 1 It is a flow chart of the client skin changing method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of client skin changing. The method can be executed by a client skin changing device, which can be implemented by hardware and / or Realized by software, the device can be integrated in a terminal (such as a computer), such as figure 1 As shown, it specifically includes the following steps:
[0026] Step 101, calling the switchSkin interface of the SkinManager object, querying the target array list of the SkinManager object to obtain at least one target skinning control.
[0027] Among them, the SkinManager object is a global management object used by the client for skinning, and the function of the SkinManager object is a target skinning control for global and unified management of skinning. The constructor of the global object is executed first at the beginning of the program (earlier than the program entry po...
Embodiment 2
[0058] figure 2 It is a flow chart of a client skinning method provided by Embodiment 2 of the present invention. On the basis of the above embodiments, this embodiment is optionally based on the calling of the at least one target skinning control and the at least one target skinning control The SkinItemBase base class corresponding to the skin control includes: determining the SkinItemBase base class corresponding to the at least one target skin control according to the at least one target skin control; converting the target skin control pointer corresponding to the target skin control become the base class pointer of the SkinItemBase base class; find and call the SkinItemBase base class based on the base class pointer. Such as figure 2 As shown, the method in this embodiment may specifically include the following steps:
[0059] Step 201, call the switchSkin interface of the SkinManager object, query the target array list of the SkinManager object to obtain at least one ...
Embodiment 3
[0074] The client skin changing device provided by the embodiment of the present invention can execute the client skin changing method provided by any embodiment of the present invention, and the specific structure of the device is as follows: target skin changing control query module 31, base class calling module 32 and skin Set up module 33.
[0075] Wherein, the target skin change control query module 31 is used to call the switchSkin interface of the SkinManager object, query the target array list of the SkinManager object to obtain at least one target skin change control;
[0076] A base class calling module 32, configured to call the SkinItemBase base class corresponding to the at least one target skinning control based on the at least one target skinning control, wherein the target skinning control is instantiated by a target skinning subclass object, the target skinning subclass inherits the SkinItemBase base class;
[0077] The skin setting module 33 is configured to...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com