CN114153359A - High-definition zooming method under user-defined window layout - Google Patents
High-definition zooming method under user-defined window layout Download PDFInfo
- Publication number
- CN114153359A CN114153359A CN202111361276.9A CN202111361276A CN114153359A CN 114153359 A CN114153359 A CN 114153359A CN 202111361276 A CN202111361276 A CN 202111361276A CN 114153359 A CN114153359 A CN 114153359A
- Authority
- CN
- China
- Prior art keywords
- scaling
- window
- self
- setting
- defined window
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 230000006978 adaptation Effects 0.000 abstract description 3
- 230000009286 beneficial effect Effects 0.000 abstract description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003321 amplification Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04806—Zoom, i.e. interaction techniques or interactors for controlling the zooming operation
Abstract
A high definition zooming method under a custom window layout comprises the following steps: creating a scaling parameter storage configuration in a linux system; creating a zoom factor storage configuration in the linux system; setting a system scaling parameter; setting a self-defined window scaling attribute; obtaining a zoom factor; and combining the system scaling parameter and the window scaling attribute into a self-defined window. The high-definition zooming method under the user-defined window layout has the following beneficial effects: in the self-defined window, the stability and the applicability of the multi-screen lower interface are realized by the combination adaptation of a self-defined title bar, a frameless window, high-definition zooming and double screens; for the scaling of the user-defined title bar and the frameless window under the double screens in the user-defined window, the problems of interface and mouse click in other linux systems can not occur.
Description
Technical Field
The invention belongs to the technical field of linux systems, and particularly relates to a high-definition zooming method under custom window layout.
Background
With the continuous update of display equipment, high-definition displays gradually enter the public field of vision and are more and more popular, however, the problems of small font of a high-resolution interface and fuzzy of a low-resolution interface exist when the existing linux system is connected with the high-definition displays, so that the technology of adapting the linux system to the high-definition display equipment is emphasized, and whether the linux system can be adapted to the high-definition display equipment marks whether an operating system enters a high-end series or not.
The current mainstream linux operating system scaling method comprises the following steps: the application carries out the amplification and the reduction of the correlation multiple according to the size of the DPI variable value set by the system; the window manager controls the position and size of the application window (including the title bar, window border, etc. of the application window). However, in actual development, the layout of windows is different according to the functions of components and modules, and in order to better implement some interface functions and beautify window display, developers often customize windows, such as: developers customize the title bar, remove interface borders, etc. without using the system-provided control borders and title bar. At this point, a series of problems arise if a zoom function is added.
In the currently known linux operating system, the zooming function is not well adapted to the types of applications such as the customized title bar and the borderless window, and the following problems exist:
(1) when the high-definition zoom is down, such as a 200% zoom double screen, the QT window moves to the right screen, and the mouse can generate the phenomena of dislocation and elegant appearance or window elegant appearance when the window is dragged;
(2) under high-definition zooming, such as 200% zooming and double-screen zooming, the problem of coordinate error acquisition of the QT application can occur, and window dislocation, overlapping and white screen phenomena are caused.
Disclosure of Invention
In order to solve the above problems, the present invention provides a high definition zooming method under a custom window layout, which comprises the steps of:
creating a scaling parameter storage configuration in a linux system;
creating a zoom factor storage configuration in the linux system;
setting a system scaling parameter;
setting a self-defined window scaling attribute;
obtaining a zoom factor;
and combining the system scaling parameter and the window scaling attribute into a self-defined window.
Preferably, the setting of the system scaling parameter comprises the steps of:
obtaining a bottom layer scaling variable in a system;
the values of system scaling variables are set.
Preferably, before the setting the system scaling parameter, the method further comprises the steps of:
creating the custom window on the Linux system;
setting a scaling attribute value of the self-defined window;
and the user-defined window amplifies the corresponding zoom multiple according to the zoom storage configuration and the set attribute value.
Preferably, the obtaining the zoom factor comprises the steps of:
acquiring a zoom factor in a linux system;
and the user-defined window obtains the correct scaling size according to the set scaling multiple and the scaling attribute value.
Preferably, before the obtaining the zoom factor, the method further comprises the steps of:
creating the custom window on the Linux system;
and setting a zooming function attribute for the self-defined window.
The high-definition zooming method under the user-defined window layout has the following beneficial effects:
(1) in the self-defined window, the stability and the applicability of the multi-screen lower interface are realized by the combination adaptation of a self-defined title bar, a frameless window, high-definition zooming and double screens;
(2) for the scaling of the user-defined title bar and the frameless window under the double screens in the user-defined window, the problems of interface and mouse click in other linux systems can not occur.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a high definition zooming method under a custom window layout according to the present invention;
fig. 2 shows DPI values corresponding to different scaling factors in a high definition scaling method under a custom window layout provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings in conjunction with the following detailed description. It should be understood that the description is intended to be exemplary only, and is not intended to limit the scope of the present invention. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present invention.
As shown in fig. 1, in the embodiment of the present application, the present invention provides a high definition zooming method under a custom window layout, where the method includes the steps of:
s1: creating a scaling parameter storage configuration in a linux system;
s2: creating a zoom factor storage configuration in the linux system;
s3: setting a system scaling parameter;
in an embodiment of the present application, the setting of the system scaling parameter includes:
obtaining a bottom layer scaling variable in a system;
scaling attribute setting for custom windows
In the embodiment of the application, when the system scaling parameter is set, firstly, a bottom scaling variable needs to be acquired in the system, and then, scaling attribute setting is performed on a custom window.
In this embodiment of the present application, before the setting of the system scaling parameter, the method further includes the steps of:
creating a scaling parameter storage configuration in the linux;
creating the custom window on the Linux system;
setting a scaling attribute value of the self-defined window;
and the user-defined window amplifies the corresponding zoom multiple according to the zoom storage configuration and the set attribute value.
In the embodiment of the present application, before the system scaling parameter is set, the scaling parameter needs to be stored in the Linux system. Specifically, firstly, a scaling parameter storage configuration is created in the Linux, then the custom window is created on the Linux system, then a scaling attribute value is set for the custom window, and a bottom layer program in the system sets a scaling bottom layer variable (DPI value) according to the set scaling multiple.
S4: setting a self-defined window scaling attribute;
s5: obtaining a zoom factor;
in an embodiment of the present application, the obtaining the zoom factor includes:
acquiring a zoom factor in a linux system;
and setting a scaling attribute of the custom window.
In the embodiment of the application, when the zoom factor is obtained, the zoom factor needs to be obtained in the linux system first, and then the custom window zoom attribute is set.
In this embodiment of the present application, before the obtaining the zoom factor, the method further includes:
creating a zoom factor storage configuration in the linux system;
creating the custom window on the Linux system;
and setting a zooming function attribute for the self-defined window.
In the embodiment of the present application, the zoom factor needs to be stored in the Linux system before the zoom factor is obtained. Specifically, the user-defined window is created on the Linux system, and then a zoom function attribute is set for the user-defined window; a zoom factor storage configuration is then created in the linux system.
S6: and combining the system scaling parameter and the window scaling attribute into a self-defined window.
Fig. 2 provides corresponding DPI values at different zoom factors, where default DPI is 96 when the zoom factor is 100% and DPI is 2X96 is 144 when the zoom factor is 200%.
The high-definition zooming method under the user-defined window layout has the following beneficial effects:
(1) in the self-defined window, the stability and the applicability of the multi-screen lower interface are realized by the combination adaptation of a self-defined title bar, a frameless window, high-definition zooming and double screens;
(2) for the scaling of the user-defined title bar and the frameless window under the double screens in the user-defined window, the problems of interface and mouse click in other linux systems can not occur.
It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explaining the principles of the invention and are not to be construed as limiting the invention. Therefore, any modification, equivalent replacement, improvement and the like made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. Further, it is intended that the appended claims cover all such variations and modifications as fall within the scope and boundaries of the appended claims or the equivalents of such scope and boundaries.
Claims (5)
1. A high definition zooming method under a custom window layout is characterized by comprising the following steps:
creating a scaling parameter storage configuration in a linux system;
creating a zoom factor storage configuration in the linux system;
setting a system scaling parameter;
setting a self-defined window scaling attribute;
obtaining a zoom factor;
and combining the system scaling parameter and the window scaling attribute into a self-defined window.
2. The method for scaling high definition in a custom window layout according to claim 1, wherein the setting of the system scaling parameters comprises the steps of:
obtaining a bottom layer scaling variable in a system;
the values of system scaling variables are set.
3. The method for scaling high definition in a custom window layout according to claim 1, further comprising, before the setting the system scaling parameter, the steps of:
creating the custom window on the Linux system;
setting a scaling attribute value of the self-defined window;
and the user-defined window amplifies the corresponding zoom multiple according to the zoom storage configuration and the set attribute value.
4. The method according to claim 1, wherein the obtaining of the zoom factor comprises:
acquiring a zoom factor in a linux system;
and the user-defined window obtains the correct scaling size according to the set scaling multiple and the scaling attribute value.
5. The method for scaling high definition in a custom window layout according to claim 1, further comprising, before the obtaining the scaling factor, the steps of:
creating the custom window on the Linux system;
and setting a zooming function attribute for the self-defined window.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111361276.9A CN114153359A (en) | 2021-11-17 | 2021-11-17 | High-definition zooming method under user-defined window layout |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111361276.9A CN114153359A (en) | 2021-11-17 | 2021-11-17 | High-definition zooming method under user-defined window layout |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114153359A true CN114153359A (en) | 2022-03-08 |
Family
ID=80456411
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111361276.9A Pending CN114153359A (en) | 2021-11-17 | 2021-11-17 | High-definition zooming method under user-defined window layout |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114153359A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106028117A (en) * | 2016-05-24 | 2016-10-12 | 青岛海信电器股份有限公司 | Image processing method and device |
CN106598404A (en) * | 2015-10-16 | 2017-04-26 | 青岛海信移动通信技术股份有限公司 | Window display method and mobile terminal |
CN107967162A (en) * | 2017-11-22 | 2018-04-27 | 深圳市富途网络科技有限公司 | One kind is based on Windows systematic difference program high-resolution display methods |
CN112199139A (en) * | 2020-09-02 | 2021-01-08 | 成都安易迅科技有限公司 | Adaptive adjustment method and device for system scaling |
WO2021051745A1 (en) * | 2019-09-19 | 2021-03-25 | 青岛海信传媒网络技术有限公司 | Display method and display device |
CN112905287A (en) * | 2021-03-03 | 2021-06-04 | 广州易点智慧出行科技有限公司 | Window text display control method and device, vehicle and readable medium |
-
2021
- 2021-11-17 CN CN202111361276.9A patent/CN114153359A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106598404A (en) * | 2015-10-16 | 2017-04-26 | 青岛海信移动通信技术股份有限公司 | Window display method and mobile terminal |
CN106028117A (en) * | 2016-05-24 | 2016-10-12 | 青岛海信电器股份有限公司 | Image processing method and device |
CN107967162A (en) * | 2017-11-22 | 2018-04-27 | 深圳市富途网络科技有限公司 | One kind is based on Windows systematic difference program high-resolution display methods |
WO2021051745A1 (en) * | 2019-09-19 | 2021-03-25 | 青岛海信传媒网络技术有限公司 | Display method and display device |
CN112199139A (en) * | 2020-09-02 | 2021-01-08 | 成都安易迅科技有限公司 | Adaptive adjustment method and device for system scaling |
CN112905287A (en) * | 2021-03-03 | 2021-06-04 | 广州易点智慧出行科技有限公司 | Window text display control method and device, vehicle and readable medium |
Non-Patent Citations (2)
Title |
---|
俞木发;: "定向优化 玩转Windows 10 DPI缩放", 电脑爱好者, no. 21, 1 November 2017 (2017-11-01), pages 1 - 5 * |
易个小小钡原子: "Linux 用 命令修改dpi, linux 下高 分辨率屏幕设置", Retrieved from the Internet <URL:https://blog.csdn.net/weixin_4 2578963/article/details/116578 251> * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7181699B2 (en) | Dynamic resizing of dialogs | |
US20160292892A1 (en) | Methods and Devices for Interface Display | |
CN112099683B (en) | Wallpaper display method and device and electronic equipment | |
CN108573008B (en) | Method and device for displaying mass points in electronic map | |
CN104238751B (en) | A kind of display methods and electronic equipment | |
CN101446883B (en) | Method for controlling mobile equipment by touch screen and mobile equipment | |
WO2011116601A1 (en) | Device and method for implementing landscape/portrait screen switching of mobile terminal | |
CN112148160B (en) | Floating window display method and device, electronic equipment and computer readable storage medium | |
CN104035664A (en) | Display method and device for user interface of application program | |
US10169307B2 (en) | Method and system for the use of adjustment handles to facilitate dynamic layout editing | |
CN106658139B (en) | Focus control method and device | |
CN110502205B (en) | Picture display edge processing method and device, electronic equipment and readable storage medium | |
CN109298806B (en) | Remote quick interface interaction method and device based on object recognition | |
WO2015184736A1 (en) | Method and terminal for transforming background picture of touchscreen device | |
CN105446676B (en) | Carry out the method and device that large-size screen monitors are shown | |
CN114564263A (en) | Page layout adjusting method and device | |
CN111465917A (en) | Bendable electronic equipment and interface adaptation method thereof | |
WO2018107854A1 (en) | Method and device for displaying window shadow | |
CN110109423B (en) | Water power plant real-time data monitoring system based on Html5 technology | |
CN113886110A (en) | Method for embedding plug-in window of plug-in video into browser | |
CN114153359A (en) | High-definition zooming method under user-defined window layout | |
CN112162800B (en) | Page display method, page display device, electronic equipment and computer readable storage medium | |
US20070113195A1 (en) | Automatic and persistent X window control for multiple applications and multiple windows per application | |
CN105574114A (en) | On-line plotting method based on telecom resource management standard control library | |
CN101377922A (en) | Method for generating and displaying OSD |
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 |