CN110187881A - A kind of abnormity window creation method, system, device and computer storage medium - Google Patents
A kind of abnormity window creation method, system, device and computer storage medium Download PDFInfo
- Publication number
- CN110187881A CN110187881A CN201910481940.XA CN201910481940A CN110187881A CN 110187881 A CN110187881 A CN 110187881A CN 201910481940 A CN201910481940 A CN 201910481940A CN 110187881 A CN110187881 A CN 110187881A
- Authority
- CN
- China
- Prior art keywords
- window
- windows
- shape
- target
- abnormity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
This application discloses a kind of special-shaped window creation method, system, device and computer storage mediums to create the primary window of Windows applied to the equipment of installation Windows operating system;Obtain the shape of target abnormity window;Trimming operation is carried out to the primary window of Windows according to the shape of target abnormity window, obtains target abnormity window.Abnormity window creation method provided by the present application, after creating the primary window of Windows, directly the primary window of Windows is cut according to the shape of the target abnormity window of acquisition, obtain target abnormity window, so that the equipment of Windows operating system can create target abnormity window without CSS style, to which clearly special-shaped window can also be created in the case where dwm component is closed, user experience is improved.Abnormity window creation system, device and computer readable storage medium provided by the present application also solve the problems, such as relevant art.
Description
Technical field
This application involves field of computer technology, more specifically to a kind of special-shaped window creation method, system, dress
It sets and computer storage medium.
Background technique
In the equipment of installation Windows operating system, in order to guarantee user experience, creation is needed to meet user's perception
Special-shaped window, and information processing is carried out by special-shaped window.A kind of existing special-shaped window creation method is: using CSS
Pixel needed for (Cascading Style Sheets, cascading style sheets) pattern calculates the special-shaped window of the creation on rectangle
Calculated pixel is carried out transparence and virtualization is handled, obtains required special-shaped window with this by point.
CSS referred to herein is that one kind is used to show HTML (application of standard generalized markup language) or XML (mark
The a subset of quasi- generalized markup language) etc. files pattern computer language, CSS not only can statically modified web page, also
Various scripting languages can be cooperated dynamically to be formatted to webpage each element, can typesetting to element position in webpage into
Row Pixel-level accurately controls, and supports almost all of font size pattern, possesses the energy to web object and model pattern editor
Power.
However, the dwm component in equipment Windows system is relied primarily on when CSS style realization transparence, and Windows
System may close dwm component due to the aging of the outmoded of itself or configuration, so that the special-shaped window of creation goes out current situation
Portion's Huaping phenomenon, influences user experience.Dwm component referred to herein is one in windows Vista and windows 7
New Parent is established on WPF core graphic layer assembly basis, is changed in Vista and the screen pixels of use above program
Display mode, visual effect hairiness bezel, the 3D window transformation animation, window overturning and the high-resolution support that dwm is provided,
Most obvious one feature has: the real-time thumbnail of taskbar window;The effect that Alt-Tab and Win-Tab Macintosh is seen.
In conclusion how to improve user is that current those skilled in the art are urgently to be resolved to the experience property of special-shaped window
Problem.
Summary of the invention
The purpose of the application is to provide a kind of special-shaped window creation method, can solve how to improve use to a certain extent
The technical issues of family is to the experience property of special-shaped window.Present invention also provides a kind of special-shaped window creation system, device and calculating
Machine readable storage medium storing program for executing.
To achieve the goals above, the application provides a kind of special-shaped window creation method, is applied to installation Windows operation
The equipment of system, comprising:
Create the primary window of Windows;
Obtain the shape of target abnormity window;
Trimming operation is carried out to the primary window of the Windows according to the shape of the target abnormity window, is obtained described
Target abnormity window.
Preferably, the shape according to the target abnormity window carries out cutting behaviour to the primary window of the Windows
Make, comprising:
According to the shape of the target abnormity window, trimming operation is carried out to the primary window of the Windows by GDI.
Preferably, the shape according to the target abnormity window carries out cutting behaviour to the primary window of the Windows
Make, comprising:
According to the shape of the target abnormity window, cutting behaviour is carried out to the primary window of the Windows by GDI++
Make.
Preferably, the shape according to the target abnormity window carries out cutting behaviour to the primary window of the Windows
After work, further includes:
It is communicated by libuv with the target abnormity window based on electron program.
Preferably, the process communicated by libuv with the target abnormity window based on electron program
In, comprising:
By callback mechanism by the target message event call-back in the target abnormity window to the electron program
In handled.
Preferably, the shape for obtaining target abnormity window, comprising:
In the shape database of itself special-shaped window, the shape of the target abnormity window is determined according to received instruction
Shape.
Preferably, the shape for obtaining target abnormity window, comprising:
Shape received from the target abnormity window for passing port transmission with it.
To achieve the above object, the application further provides for a kind of special-shaped window creation system, is applied to installation Windows
The equipment of operating system, comprising:
First creation module, for creating the primary window of Windows;
First obtains module, for obtaining the shape of target abnormity window;
First cuts module, carries out for the shape according to the target abnormity window to the primary window of the Windows
Trimming operation obtains the target abnormity window.
Preferably, the first cutting module includes:
First cuts unit, primary to the Windows by GDI for the shape according to the target abnormity window
Window carries out trimming operation.
Preferably, the first cutting module includes:
Second cuts unit, former to the Windows by GDI++ for the shape according to the target abnormity window
Raw window carries out trimming operation.
Preferably, further includes:
First communication module cuts module according to the shape of the target abnormity window to described for described first
After the primary window of Windows carries out trimming operation, based on electron program by libuv and the target abnormity window into
Row communication.
Preferably, the first communication module includes:
First readjustment unit, is based on electron program for the first communication module and passes through libuv and the target
During special-shaped window is communicated, by callback mechanism by the target message event call-back in the target abnormity window extremely
It is handled in the electron program.
Preferably, the first acquisition module includes:
First determination unit, for determining institute according to received instruction in the shape database of itself special-shaped window
State the shape of target abnormity window.
Preferably, the first acquisition module includes:
First receiving unit, for the shape received from the target abnormity window for passing port transmission with it.
To achieve the above object, the application further provides for a kind of special-shaped window creating device, and described device includes storage
Device and processor are stored with the special-shaped window creation program that can be run on the processor, the abnormity on the memory
Window creation program realizes as above any method when being executed by the processor.
To achieve the above object, the application further provides for a kind of computer readable storage medium, described computer-readable
Special-shaped window creation program is stored on storage medium, the abnormity window creation program can be held by one or more processor
Row, to realize as above any special-shaped window creation method.
A kind of special-shaped window creation method provided by the present application, applied to the equipment of installation Windows operating system, creation
The primary window of Windows;Obtain the shape of target abnormity window;According to the shape of target abnormity window to the primary window of Windows
Mouth carries out trimming operation, obtains target abnormity window.A kind of special-shaped window creation method provided by the present application, is creating
After the primary window of Windows, directly the primary window of Windows is cut according to the shape of the target abnormity window of acquisition,
Target abnormity window is obtained, namely makes the equipment of Windows operating system that can create target abnormity without CSS style
Window improves user experience to can also create clearly target abnormity window in the case where dwm component is closed.This
A kind of special-shaped window creation system, device and the computer readable storage medium that application provides also solve the problems, such as relevant art.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is the flow diagram of the application first embodiment;
Fig. 2 is the flow diagram of the application second embodiment;
Fig. 3 is the flow diagram of the application 3rd embodiment;
Fig. 4 is the flow diagram of the application fourth embodiment;
Fig. 5 is the structural schematic diagram that the special-shaped window that one embodiment of the application discloses creates system;
Fig. 6 is the schematic diagram of internal structure for the special-shaped window creating device that one embodiment of the application discloses.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein
Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that
Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit
In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce
The other step or units of product or equipment inherently.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot
It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the
One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment
Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution
Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims
Protection scope within.
The application provides a kind of special-shaped window creation method, the equipment applied to installation Windows operating system.
Referring to Fig.1, Fig. 1 is the flow diagram of the application first embodiment.
In the first embodiment, this method comprises:
S101 creates the primary window of Windows.
In practical application, the equipment for installing Windows operating system can first create the primary window of Windows, specifically,
The equipment for installing Windows operating system can create the primary window of Windows after receiving extraneous instruction, be also possible to certainly
Body judgement just creates the primary window of Windows after meeting preset condition.It should be pointed out that Windows (Microsoft Windows)
Operating system is a set of operating system of MS's research and development;Installation Windows operating system involved in the application
Equipment can be computer, server etc.;Primary window refers to the window frame provided without using Microsoft, oneself adapter tube window
Message loop, the window for the operations such as handle it and distribute to message;The primary window of Windows refers to Windows operation system
The lower primary window created of system.
S102 obtains the shape of target abnormity window.
In practical application, since the shape of the primary window of the Windows of creation is mostly the shapes such as the rectangle of rule,
The shape of the primary window of Windows may not meet the requirement of user etc., for example not meet the esthetic requirement etc. of user, so needing
Creation meets the special-shaped window of the requirements such as user, and therefore, the equipment for installing Windows operating system need to obtain target abnormity window
Shape, specifically, can judge whether to receive special-shaped window creation instruction after creating the primary window of Windows, if
Special-shaped window creation instruction is received, then obtains the shape of target abnormity window again.
S103 carries out trimming operation to the primary window of Windows according to the shape of target abnormity window, obtains target abnormity
Window.
In practical application, after the equipment for installing Windows operating system gets the shape of target abnormity window,
To carry out trimming operation to the primary window of Windows according to the shape of target abnormity window, target abnormity window, Ye Jiben are obtained
The primary window clipping of Window is target abnormity window by trimming operation by application.
A kind of special-shaped window creation method provided by the present application, applied to the equipment of installation Windows operating system, creation
The primary window of Windows;Obtain the shape of target abnormity window;According to the shape of target abnormity window to the primary window of Windows
Mouth carries out trimming operation, obtains target abnormity window.A kind of special-shaped window creation method provided by the present application, is creating
After the primary window of Windows, directly the primary window of Windows is cut according to the shape of the target abnormity window of acquisition,
Target abnormity window is obtained, namely makes the equipment of Windows operating system that can create target abnormity without CSS style
Window improves user experience to can also create clearly target abnormity window in the case where dwm component is closed.
It is the flow diagram of the application second embodiment referring to Fig. 2, Fig. 1.
In a second embodiment, this method comprises:
S201 creates the primary window of Windows.
S202 obtains the shape of target abnormity window.
S203 carries out trimming operation to the primary window of Windows by GDI, obtains according to the shape of target abnormity window
Target abnormity window.
In a second embodiment, for the ease of carrying out trimming operation to the primary window of Windows, can come by tool pair
The primary window of Windows is cut, namely carries out cutting behaviour to the primary window of Windows according to the shape of target abnormity window
When making, trimming operation can be carried out to the primary window of Windows by GDI according to the shape of target abnormity window.The application institute
The GDI (Graphics Device Interface, graphical device interface) being related to is mainly responsible for the letter between system and mapping program
Breath exchange, handles the image and images outputting of all Windows programs.
It is the flow diagram of the application 3rd embodiment referring to Fig. 3, Fig. 3.
In the third embodiment, this method comprises:
S301 creates the primary window of Windows.
S302 obtains the shape of target abnormity window.
S303 carries out trimming operation to the primary window of Windows by GDI++, obtains according to the shape of target abnormity window
To target abnormity window.
In the first embodiment, for the ease of carrying out trimming operation to the primary window of Windows, and guarantee to cut efficiency
And effect can be different according to target when the shape according to target abnormity window carries out trimming operation to the primary window of Windows
The shape of shape window carries out trimming operation to the primary window of Windows by GDI++.GDI++ involved in the application is one
The open source software library that Windows itself core component GDI carries out font rendering is substituted, by injecting the dynamic of oneself to all processes
State chained library intercepts the work of Windows GDI (gdi32.dll), turns to be executed by oneself to carry out font rendering, in efficiency and
It is more powerful than GDI in diversity.
It is the flow diagram of the application fourth embodiment referring to Fig. 4, Fig. 4.
In the fourth embodiment, this method comprises:
S401 creates the primary window of Windows.
S402 obtains the shape of target abnormity window.
S403 carries out trimming operation to the primary window of Windows according to the shape of target abnormity window, obtains target abnormity
Window.
S404 is communicated by libuv with target abnormity window based on electron program.
In the first embodiment, target abnormity window is managed for the ease of user etc., and also to convenient for using
Family etc. by target abnormity window carry out information exchange, the shape according to target abnormity window to the primary window of Windows into
After row trimming operation, it is also based on electron program and is communicated by libuv with target abnormity window.It should refer to
Out, electron program involved in the application is one and is constructed cross-platform desktop using JavaScript, HTML and CSS and answered
With Technical Architecture, allows developer that HTML, CSS and JavaScript building can be used based on Chromium and Node.js and answer
With;Libuv involved in the application is a multi-platform Support Library, is absorbed in asynchronous I/O, is mainly Node.js exploitation
's;Node.js is the development platform for allowing JavaScript to operate in server-side, allow JavaScript become with PHP,
Python, Perl, Ruby etc. service end instruction scripting language on an equal footing;Node is one based on Chrome
The platform that JavaScript is established when running, the network application for easily building fast response time, being easy to extend, and Node
Using event-driven, Non-Blocking I/O model and be able to light weight and efficiently, be suitble on distributed apparatus operation data intensive
Application in real time.
In the fourth embodiment, for the ease of handling the message in target abnormity window, it is being based on electron
It, can will be in target abnormity window by callback mechanism during program is communicated by libuv with target abnormity window
Target message event call-back handled into electron program.
In first to fourth embodiment, the shape of acquisition target abnormity window for convenience is obtaining target abnormity
When the shape of window, target abnormity window can be determined according to received instruction in the shape database of itself special-shaped window
The shape of mouth.Namely the equipment itself of installation Windows operating system can create the data for preserving the shape of special-shaped window
Library can obtain the shape of target abnormity window when needed directly in own database, specifically, installation Windows behaviour
The shape database of special-shaped window can be shown to user by the human-computer interaction interface of itself by the equipment for making system, and really
The shape for the target abnormity window that user selects in the database is made, and then gets the shape of target abnormity window.
In first to fourth embodiment, itself possible design object abnormity window of user, so installation Windows operation
The equipment of system can receive the target abnormity window of itself upwards transmission port transmission when obtaining the shape of target abnormity window
Shape.Namely user oneself can draw the shape of target abnormity window, then be transferred to installation Windows behaviour by upwards transmission port
Make the equipment of system.
On the other hand, the application provides a kind of special-shaped window creation system.
It is that the special-shaped window that one embodiment of the application discloses creates the structural schematic diagram of system referring to Fig. 5, Fig. 5.
A kind of special-shaped window provided by the present application creates system, can be with applied to the equipment of installation Windows operating system
Include:
First creation module 501, for creating the primary window of Windows;
First obtains module 502, for obtaining the shape of target abnormity window;
First cuts module 503, carries out cutting behaviour to the primary window of Windows for the shape according to target abnormity window
Make, obtains target abnormity window.
A kind of special-shaped window provided by the present application creates system, the equipment applied to Windows operating system is installed, and first
Cutting module may include:
First cuts unit, for the shape according to target abnormity window, is carried out by GDI to the primary window of Windows
Trimming operation.
A kind of special-shaped window provided by the present application creates system, the equipment applied to Windows operating system is installed, and first
Cutting module may include:
Second cuts unit, for the shape according to target abnormity window, by GDI++ to the primary window of Windows into
Row trimming operation.
A kind of special-shaped window provided by the present application creates system, applied to the equipment of installation Windows operating system, may be used also
To include:
First communication module cuts module according to the shape of target abnormity window to the primary window of Windows for first
After carrying out trimming operation, communicated by libuv with target abnormity window based on electron program.
A kind of special-shaped window provided by the present application creates system, the equipment applied to Windows operating system is installed, and first
Communication module may include:
First readjustment unit, is based on electron program for first communication module and passes through libuv and target abnormity window
During being communicated, by callback mechanism by the target message event call-back in target abnormity window to electron program
In handled.
A kind of special-shaped window provided by the present application creates system, the equipment applied to Windows operating system is installed, and first
Obtaining module may include:
First determination unit, for determining mesh according to received instruction in the shape database of itself special-shaped window
Mark the shape of special-shaped window.
A kind of special-shaped window provided by the present application creates system, the equipment applied to Windows operating system is installed, and first
Obtaining module may include:
First receiving unit, for the shape received from the target abnormity window for passing port transmission with it.
On the other hand, the application provides a kind of special-shaped window creating device.
It is the schematic diagram of internal structure for the special-shaped window creating device that one embodiment of the application discloses referring to Fig. 6, Fig. 6.
In the present embodiment, special-shaped window creating device 1 can be PC (Personal Computer, PC), can also
To be that smart phone, tablet computer, palm PC, portable computer, intelligent router, mine machine, network storage equipment terminal are set
It is standby.
The abnormity window creating device 1 can be the node of composition CDN network or block chain network.
The abnormity window creating device 1 may include memory 11, processor 12 and bus 13.
Wherein, memory 11 includes at least a type of readable storage medium storing program for executing, and readable storage medium storing program for executing includes flash memory, hard
Disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, CD etc..Memory 11 exists
It can be the internal storage unit of special-shaped window creating device 1 in some embodiments, such as the abnormity window creating device 1 is hard
Disk.Memory 11 is also possible to the External memory equipment of special-shaped window creating device 1, such as special-shaped window in further embodiments
The plug-in type hard disk being equipped in mouth creating device 1, intelligent memory card (Smart Media Card, SMC), secure digital
(Secure Digital, SD) card, flash card (Flash Card) etc..Further, memory 11 can also both include abnormity
The internal storage unit of window creating device 1 also includes External memory equipment.Memory 11 can be not only used for storage and be installed on
The application software and Various types of data of special-shaped window creating device 1, such as the code etc. of special-shaped window creation program 01, can also use
In temporarily storing the data that has exported or will export.
Processor 12 can be in some embodiments a central processing unit (Central Processing Unit,
CPU), controller, microcontroller, microprocessor or other data processing chips, the program for being stored in run memory 11
Code or processing data, such as execute special-shaped window creation program 01 etc..
The bus 13 can be Peripheral Component Interconnect standard (peripheral component interconnect, abbreviation
PCI) bus or expanding the industrial standard structure (extended industry standard architecture, abbreviation EISA)
Bus etc..The bus can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, in Fig. 6 only with one slightly
Line indicates, it is not intended that an only bus or a type of bus.
Further, special-shaped window creating device can also include network interface 14, and network interface 14 optionally can wrap
Wireline interface and/or wireless interface (such as WI-FI interface, blue tooth interface) are included, commonly used in setting in the device 1 with other electronics
Communication connection is established between standby.
Optionally, which can also include user interface, and user interface may include display
(Display), input unit such as keyboard (Keyboard), optional user interface can also include standard wireline interface,
Wireless interface.Optionally, in some embodiments, it is aobvious to can be light-emitting diode display, liquid crystal display, touch control type LCD for display
Show that device and OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touch device etc..Wherein, display
Can also it is appropriate be known as display screen or display unit, for be shown in the information handled in special-shaped window creating device 1 and
For showing visual user interface.
Fig. 6 illustrates only the video code conversion device 1 with component 11-14 and special-shaped window creation program 01, this field
Technical staff may include it is understood that the structure shown in Fig. 6 does not constitute the restriction to special-shaped window creating device 1
Certain components or different component layouts are perhaps combined than illustrating less perhaps more components.
A kind of computer readable storage medium provided by the present application is stored with video code conversion on computer readable storage medium
Program, video code conversion program can be executed by one or more processor, to realize video described in any embodiment as above
Code-transferring method.
Computer readable storage medium referred to herein includes random access memory (RAM), memory, read-only memory
(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field
Any other form of storage medium well known to interior.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.
The computer program product includes one or more computer instructions.Load and execute on computers the meter
When calculation machine program instruction, entirely or partly generate according to process or function described in the embodiment of the present invention.The computer can
To be general purpose computer, special purpose computer, computer network or other programmable devices.The computer instruction can be deposited
Storage in a computer-readable storage medium, or from a computer readable storage medium to another computer readable storage medium
Transmission, for example, the computer instruction can pass through wired (example from a web-site, computer, server or data center
Such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave) mode to another website
Website, computer, server or data center are transmitted.The computer readable storage medium can be computer and can deposit
Any usable medium of storage either includes that the data storages such as one or more usable mediums integrated server, data center are set
It is standby.The usable medium can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or partly lead
Body medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
It should be noted that the serial number of the above embodiments of the invention is only for description, do not represent the advantages or disadvantages of the embodiments.And
The terms "include", "comprise" herein or any other variant thereof is intended to cover non-exclusive inclusion, so that packet
Process, device, article or the method for including a series of elements not only include those elements, but also including being not explicitly listed
Other element, or further include for this process, device, article or the intrinsic element of method.Do not limiting more
In the case where, the element that is limited by sentence "including a ...", it is not excluded that including process, device, the article of the element
Or there is also other identical elements in method.
The foregoing description of the disclosed embodiments makes those skilled in the art can be realized or use the application.To this
A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can
Without departing from the spirit or scope of the application, to realize in other embodiments.Therefore, the application will not be limited
It is formed on the embodiments shown herein, and is to fit to consistent with the principles and novel features disclosed in this article widest
Range.
Claims (10)
1. a kind of abnormity window creation method, which is characterized in that the equipment applied to installation Windows operating system, comprising:
Create the primary window of Windows;
Obtain the shape of target abnormity window;
Trimming operation is carried out to the primary window of the Windows according to the shape of the target abnormity window, obtains the target
Special-shaped window.
2. the method according to claim 1, wherein the shape according to the target abnormity window is to described
The primary window of Windows carries out trimming operation, comprising:
According to the shape of the target abnormity window, trimming operation is carried out to the primary window of the Windows by GDI.
3. the method according to claim 1, wherein the shape according to the target abnormity window is to described
The primary window of Windows carries out trimming operation, comprising:
According to the shape of the target abnormity window, trimming operation is carried out to the primary window of the Windows by GDI++.
4. method according to any one of claims 1 to 3, which is characterized in that described according to the target abnormity window
Shape carries out the Windows primary window after trimming operation, further includes:
It is communicated by libuv with the target abnormity window based on electron program.
5. according to the method described in claim 4, it is characterized in that, it is described based on electron program by libuv with it is described
During target abnormity window is communicated, comprising:
By callback mechanism by the target message event call-back in the target abnormity window into the electron program into
Row processing.
6. according to the method described in claim 4, it is characterized in that, the shape for obtaining target abnormity window, comprising:
In the shape database of itself special-shaped window, the shape of the target abnormity window is determined according to received instruction.
7. according to the method described in claim 4, it is characterized in that, the shape for obtaining target abnormity window, comprising:
Shape received from the target abnormity window for passing port transmission with it.
8. a kind of abnormity window creates system, which is characterized in that the equipment applied to installation Windows operating system, comprising:
First creation module, for creating the primary window of Windows;
First obtains module, for obtaining the shape of target abnormity window;
First cuts module, cuts for the shape according to the target abnormity window to the primary window of the Windows
Operation, obtains the target abnormity window.
9. a kind of abnormity window creating device, which is characterized in that described device includes memory and processor, on the memory
It is stored with the special-shaped window creation program that can be run on the processor, the abnormity window creation program is by the processor
Method as described in any one of claim 1 to 7 is realized when execution.
10. a kind of computer readable storage medium, which is characterized in that be stored with special-shaped window on the computer readable storage medium
Mouthful creation program, it is described abnormity window creation program can be executed by one or more processor, with realize as claim 1 to
Special-shaped window creation method described in any one of 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910481940.XA CN110187881B (en) | 2019-06-04 | 2019-06-04 | Special-shaped window creation method, system, device and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910481940.XA CN110187881B (en) | 2019-06-04 | 2019-06-04 | Special-shaped window creation method, system, device and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110187881A true CN110187881A (en) | 2019-08-30 |
CN110187881B CN110187881B (en) | 2023-09-05 |
Family
ID=67720237
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910481940.XA Active CN110187881B (en) | 2019-06-04 | 2019-06-04 | Special-shaped window creation method, system, device and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110187881B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111061808A (en) * | 2019-12-13 | 2020-04-24 | 深圳迅策科技有限公司 | Asynchronous distributed server based on libuv |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101667123A (en) * | 2009-09-24 | 2010-03-10 | 中兴通讯股份有限公司 | Realization method of irregular window and mobile handheld device |
CN103513857A (en) * | 2012-06-28 | 2014-01-15 | 北京奇虎科技有限公司 | Method and device for processing messages in irregular window |
CN105302569A (en) * | 2015-11-18 | 2016-02-03 | 网易(杭州)网络有限公司 | Method and device used for generating special-shaped window |
CN106469045A (en) * | 2015-08-14 | 2017-03-01 | 中兴通讯股份有限公司 | The method for drafting of graphic user interface GUI and device |
CN106998431A (en) * | 2017-04-20 | 2017-08-01 | 威创集团股份有限公司 | A kind of combination opens the method and system of special-shaped window |
-
2019
- 2019-06-04 CN CN201910481940.XA patent/CN110187881B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101667123A (en) * | 2009-09-24 | 2010-03-10 | 中兴通讯股份有限公司 | Realization method of irregular window and mobile handheld device |
CN103513857A (en) * | 2012-06-28 | 2014-01-15 | 北京奇虎科技有限公司 | Method and device for processing messages in irregular window |
CN106469045A (en) * | 2015-08-14 | 2017-03-01 | 中兴通讯股份有限公司 | The method for drafting of graphic user interface GUI and device |
CN105302569A (en) * | 2015-11-18 | 2016-02-03 | 网易(杭州)网络有限公司 | Method and device used for generating special-shaped window |
CN106998431A (en) * | 2017-04-20 | 2017-08-01 | 威创集团股份有限公司 | A kind of combination opens the method and system of special-shaped window |
Non-Patent Citations (2)
Title |
---|
孙晓飞等: "基于Visual C++的异形窗口及数据库便携技术的研究及应用", 《电脑知识与技术》 * |
潘从祥等: "基于Node.js的TurtleBot机器人JavaScript API设计", 《信息技术》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111061808A (en) * | 2019-12-13 | 2020-04-24 | 深圳迅策科技有限公司 | Asynchronous distributed server based on libuv |
Also Published As
Publication number | Publication date |
---|---|
CN110187881B (en) | 2023-09-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220067268A1 (en) | Systems and methods for remote dashboard image generation | |
US10254848B2 (en) | Cross-platform data visualizations using common descriptions | |
US7856596B2 (en) | Method and system for separation of content and layout definitions in a display description | |
US8384726B1 (en) | Selective rendering of off-screen content | |
US8365086B2 (en) | System and method for building graphical instrument panels | |
US8881032B1 (en) | Grouped tab document interface | |
US20170091159A1 (en) | Programmatic native rendering of structured content | |
CN104685466A (en) | Browser-level background page for providing multiple views | |
US20140082471A1 (en) | Displaying a Syntactic Entity | |
CA3155636C (en) | Dynamic typesetting | |
CN110532488A (en) | Webpage rendering method, device and electronic equipment | |
CN107533568A (en) | It is determined that the system and method using zoom level | |
US20200249965A1 (en) | Display Device with Built-In Web Browser for Graphical User Interface in an Embedded System | |
CN110506267A (en) | The rendering of digital assembly background | |
CN108205456A (en) | Window rendering intent, equipment and the storage medium of a kind of striding course | |
CN112631474B (en) | Method and device for moving elements in page, medium and equipment | |
CN110187881A (en) | A kind of abnormity window creation method, system, device and computer storage medium | |
CN111198738A (en) | Mobile terminal page display method and device and electronic equipment | |
CN112395535A (en) | Image lazy loading method and device, medium and electronic equipment | |
US9141342B2 (en) | Programmatic conversion of support documentation into executable programs | |
CN109213981A (en) | The demonstration of various electronic equipments cooperates | |
CN113656533A (en) | Tree control processing method and device and electronic equipment | |
US10650187B2 (en) | Visual path resolution in a context separated authoring environment of a REST- and component-based content management system | |
CN112700555A (en) | High configurable configuration 3D data visualization implementation method, electronic device and storage medium | |
CN109783100B (en) | Method and device for checking user interface element attribute and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |