CN104142758B - An embedded window management method and apparatus - Google Patents

An embedded window management method and apparatus Download PDF

Info

Publication number
CN104142758B
CN104142758B CN 201410395996 CN201410395996A CN104142758B CN 104142758 B CN104142758 B CN 104142758B CN 201410395996 CN201410395996 CN 201410395996 CN 201410395996 A CN201410395996 A CN 201410395996A CN 104142758 B CN104142758 B CN 104142758B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
window
region
update
area
image
Prior art date
Application number
CN 201410395996
Other languages
Chinese (zh)
Other versions
CN104142758A (en )
Inventor
梁文森
苏镇扬
Original Assignee
福建星网视易信息系统有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Grant date

Links

Abstract

本发明公开一种嵌入式窗口管理方法及装置,该嵌入式窗口管理方法包括步骤:将屏幕分隔成两个以上窗口,所述每个窗口包括图片、窗口区域和剪切区域,所述窗口区域用于指示窗口在屏幕的显示位置,所述剪切区域用于指示窗口内图片的具体显示部分;将预显示的文件转化成图片,并将所述图片加载到对应的窗口中更新屏幕显示区域,将与屏幕显示区域重叠的窗口图片更新到显存。 The present invention discloses a method and device for managing an embedded window, the window embedded management method comprising: a screen divided into two or more windows, each window including the picture window region, and the clipping region, the window region for indicating a display position of the screen window, the specific cutout region display section for indicating the window image; file is converted into the pre-image display, and the picture is loaded into the corresponding area of ​​the window to update the screen display , the screen will display the picture area of ​​overlapping windows update to memory. 本发明实现在图形用户界面窗口中分屏滚动播放图片。 The present invention is implemented in a graphical user interface window carved screen scrolling images.

Description

一种嵌入式窗口管理方法及装置 An embedded window management method and apparatus

技术领域 FIELD

[0001]本发明涉及界面窗口显示领域,特别是涉及一种嵌入式窗口管理方法及装置。 [0001] The present invention relates to a screen window, and more particularly, to a method and apparatus for managing an embedded window.

背景技术 Background technique

[0002]图形用户界面或图形用户接口(Graphical User Interface,GUI)是指采用图形方式显示的计算机操作环境用户接口。 [0002] The graphical user interface or graphical user interface (Graphical User Interface, GUI) refers to a graphical display of a user interface of a computer operating environment. 与早期计算机使用的命令行界面相比,图形界面对于用户来说更为简便易用。 Compared with the early computer use command-line interface, graphical user interface for easier use. GUI的广泛应用是当今计算机发展的重大成就之一,它极大地方便了非专业用户的使用人们从此不再需要死记硬背大量的命令,取而代之的是可用通过窗口、菜单、按键等方式来方便地进行操作。 Widely used GUI is one of the major achievements of today's computer development, it is very easy for people to use non-professional users no longer need to memorize a lot of command and replaced by used to facilitate the windows, menus, buttons, etc. to operate. 而嵌入式GUI具有下面几个方面的基本要求:轻型、占用资源少、高性能、高可靠性、便于移植、可配置等特点。 And having the following basic requirements embedded GUI aspects: lightweight, small footprint, high performance, high reliability, easy to transplant, etc. can be configured.

[0003]目前,几乎没有单独的面向嵌入式的窗口管理系统,嵌入式窗口管理系统一般都是作为GUI系统的一个组件一起提供的。 [0003] At present, almost no separate window management system for embedded, inset window management system is generally provided as a unit with the GUI system. 这种系统主要用于界面交互场景,因此无法实现分屏播放多媒体素材,特别是滚动播放。 This system is mainly used for interface interaction scenarios, and therefore can not split-screen play multimedia material, especially scrolling.

发明内容 SUMMARY

[0004] 本发明所要解决的技术问题是:提供一种嵌入式窗口管理方法,该方法能够实现在图形用户界面窗口中分屏滚动播放图片。 [0004] The present invention solves the technical problem: to provide an embedded window management method that can be implemented in a graphical user interface window carved screen scrolling images.

[0005] 为了解决上述技术问题,本发明采用的技术方案为: [0005] In order to solve the above problems, the present invention adopts the technical solution as follows:

[0006] 一种嵌入式窗口管理方法,包括步骤: [0006] An embedded window management method, comprising the steps of:

[0007] 将屏幕分隔成两个以上窗口,所述每个窗口包括图片、窗口区域和剪切区域,所述窗口区域用于指示窗口在屏幕的显示位置,所述剪切区域用于指示窗口内图片的具体显示部分; [0007] The screen is divided into two or more windows, each window including the picture window region, and the clipping region, the window area for displaying the position indication window on the screen, a window for indicating the cutting area DETAILED within a picture display portion;

[0008] 将预显示的文件转化成图片,并将所述图片加载到对应的窗口中; [0008] The document image is converted to a pre-show, and the picture is loaded into the corresponding window;

[0009]更新屏幕显示区域,将与屏幕显示区域重叠的窗口图片更新到显存。 [0009] Update the screen display area, the screen image display region overlapping windows to update memory.

[0010]本发明的另一技术方案为,一种嵌入式窗口管理装置,该装置包括分屏模块、加载牛吴块和显不t旲块; [0010] Another aspect of the present invention is that an embedded window management apparatus, the apparatus comprising a split-screen module, loading blocks and bovine Wu t Dae not significantly block;

[0011]所述分屏模块用于将屏幕分隔成两个以上窗口,所述每个窗口包括图片、窗口区域和剪切区域,所述窗口区域用于指示窗口在屏幕的显示位置,所述剪切区域用于指示窗口内图片的具体显示部分; [0011] The split-screen module for a screen is divided into two or more windows, each window including the picture window region, and the clipping region, the window area for displaying the position indication window on the screen, the DETAILED cutout region display section for indicating the picture window;

[0012] 所述加载模块用于将预显示的文件转化成图片,并将所述图片加载到对应的窗口中; File [0012] The pre-loading means for displaying the image converted to, and the picture is loaded into the corresponding window;

[0013] 显示模块用于更新屏幕显示区域,将与屏幕显示区域重叠的窗口图片更新到显存。 [0013] The display module for updating the screen display area, the screen image display region overlapping windows to update memory.

[0014]本发明的有益效果在于:区别于现有技术中嵌入式图形用户界面窗口内只用于界面交互,无法实现分屏滚动播放多媒体素材,本发明通过引入剪切区域,通过按一定步长更新剪切区域,使剪切区域指示图片的不同部分,并将剪切区域内的内容加载至显存中,使窗口内沿不同万向滚删片,从職现在_用户界醜口中滚动撤图片。 [0014] Advantageous effects of the present invention is that: different from the prior art embedded graphical user interface window used only for the interactive interface, split screen scrolling can not be achieved multimedia material, by introducing a cutout region, by the present invention, certain steps size updating the cutout region, the shearing region indicating different portions of the picture, and the contents inside the clipping region is loaded into memory in the roll sheet in different puncturing universal window, the user interface level now _ rolling withdrawal mouth ugly image.

附图说明丨=丨方式中嵌入式窗口管理方法的执行流程图; 「00171闻if 头f万式中嵌入式窗口管理装置的功能框图; 「n_ 一头f方式中窗口之间以及窗口与子窗口之间的逻辑关系图; L洲一买i方式中_屏幕显示区域的执行_图; 什发明—买施方式中_屏幕显示区域时,计算处于屏幕显示区域的窗口图片区域的公式; ^01°L m图6为本发明—实施方式中按纖步长修改剪倾域起始麵無_效果的执行流程图; _1]图7为本发明—实施方式中采雌口与子窗口,耐通过修改剪憾域和窗口区域配合实现滚动效果的示例图; BRIEF DESCRIPTION OF THE Shu = flowchart performed in the embodiment Shu embedded window management method; a functional block "00171 heard if the first embedded f Wan wherein window management means; window between" f n_ an embodiment and a window and the child window FIG logical relationship between; L Chau in a buy embodiment i _ _ display an execution screen of FIG region; even invention - Buy embodiment applied _ screen display area is calculated in the formula displayed in the window region of the image area; ^ 01 ° L m the present invention. FIG. 6 - embodiments described flowchart is executed without the effect of the pour-domain start _ surface modification step by shear web; _1] FIG. 7 of the present invention - embodiment taken female port subwindows resistance by modifying the window area and the shear field regret example of FIG mating rolling effect achieved;

[0022] 主要标号说明: [0022] Main Reference Numerals:

[0023] 10-分屏模块;2〇—加载模块;3〇—显示模块。 [0023] 10- split-screen module; 2〇- loading module; 3〇- display module.

具体实施方式 Detailed ways

[0024]为详细说明本发明的技术内容、构造特征、所实现目的及效果,以下结合实施方式并配合附图详予说明。 [0024] The teachings of the present invention in detail, structural features, objects and effects of the implementation, the following embodiments in conjunction with the accompanying drawings and to be described in detail.

[0025]本发明最关键的构思在于:引入剪切区域,使剪切区域指示图片的具体显示部分, 通过更新剪切区域达到窗口内滚动播放图片。 [0025] The key concept of the present invention is that: the introduction of the cutout region, the shearing region of the specific image indicating the display portion, the cutout region by updating achieve scrolling within the image window.

[0026]请参阅图1,一种嵌入式窗口管理方法,包括步骤: [0026] Referring to FIG 1, an embedded window management method, comprising the steps of:

[0027] S1、将屏幕分隔成两个以上窗口,所述每个窗口包括图片、窗口区域和剪切区域, 所述窗口区域用于指示窗口在屏幕的显示位置,所述剪切区域用于指示窗口内图片的具体显示部分; [0027] S1, the screen is divided into two or more windows, each window including the picture window region, and the clipping region, the window area for displaying the position indication window on the screen, the area for cutting indicating the specific image display window portion;

[0028] S2、将预显示的文件转化成图片,并将所述图片加载到对应的窗口中; [0028] S2, the file is converted into the pre-image display, and the picture is loaded into the corresponding window;

[0029] S3、更新屏幕显示区域,将与屏幕显示区域重叠的窗口图片更新到显存。 [0029] S3, update the screen display area, the screen image display region overlapping windows to update memory.

[0030] 从上述描述可知,本发明的有益效果在于:本发明通过引入剪切区域,通过按一定步长更新剪切区域,使剪切区域指示图片的不同部分,并将剪切区域内的内容加载至显存中,使窗口内沿不同方向滚动播放图片,从而实现在图形用户界面窗口中滚动播放图片。 [0030] apparent from the above description, the present invention is that the beneficial effects: the present invention by introducing a cutout region, by a certain step size updating the cutout region, so that different portions of the image area indicates a shear and the shear zone content loaded into memory in the picture window scrolling in different directions, in order to achieve scrolling images in a graphical user interface window. [0031] 进一步的,在本实施方式中,所述步骤S3后还包括步骤S4:更改窗口区域;通过更改窗口区域可以达到修改窗口图片在屏幕的显示位置和可视部分。 [0031] Further, in the present embodiment, further comprising the step after step S3 S4: Change the window region; display position on the screen can be achieved and the visible portion of the window image modified by changing the window area.

[0032] 在所述更新屏幕显示区域步骤之前还包括以下步骤:更换窗口区域内图片或按预设步长更新剪切区域。 [0032] Before the step of updating the screen display area further comprises the step of: replacing the window region or preset image cropping area update step.

[0033] 进一步的,请参阅图6,在本实施方式中,所述按预设步长更新剪切区域的具体步骤包括: [0033] Further, please refer to FIG. 6, in the present embodiment, the specific step by a predetermined step size updating cropping area comprises:

[0034] 设置所述剪切区域的位移量为x_scorllindex,其中,x_scorlljndex的初值为〇; Displacement amount [0034] of the shear zone is disposed x_scorllindex, wherein, x_scorlljndex initial value is square;

[0035] 按预设步长更新所述剪切区域,计算所述剪切区域的位移量x_SC〇rll_indeX; [0035] The step of updating the preset cutting area, calculates the displacement amount of the shear region x_SC〇rll_indeX;

[0036]判断剪切区域更新过程中,其剩余宽度是否小于一个预设步长,若是,则播放结束,若否,则继续按预设步长向剪切方向更新所述剪切区域。 [0036] Analyzing the shearing area update procedure in which the remaining width is smaller than a predetermined step, and if yes, end play, if not, continue to step updates the predetermined area cut in the shearing direction.

[0037] 在本实施方式中,设置剪切区域的起始位置为所述图片的起始地址,按预设步长更新剪切区域,将图片在新剪切区域的内容更新到显存中进行播放。 [0037] In the present embodiment, by setting the start address of the cutout region of the starting picture, the update step according to a preset cutting area, the cutting area in the new image content is updated to the memory is performed play. 所述更新剪切区域的方向为剪切区域从图片的左侧向图片的右侧移动,从而实现图片在窗口中从右向左滚动播放,在其他实施方式中,所述更新剪切区域的方向可以是从图片的右侧向左侧移动、从图片的下侧向上侧移动或从图片的上侧向下侧移动,从而实现窗口内沿不同方向滚动播放图片。 The update region is the direction of shear cut area is moved from the left to the right picture image in order to achieve picture window scrolling from right to left, in other embodiments, the shear area update direction may be moved to the left from the right side of the picture, moving picture from the lower side to side or from the lower side to the image side of the movement, in order to achieve scrolling in different directions within the image window.

[0038] 进一步的,所述更改窗口区域,实现滚动的具体步骤包括: [0038] Further, the window area change to achieve scrolling specifically comprises:

[0039] 预设窗口的窗口区域的宽度是主窗口的窗口区域的宽度的两倍,窗口的窗口g域起始位置与主窗口的窗口区域起始位置重合; [0039] preset window width of the window region is twice the width of the window region of the main window, the window and the window g domain starting position of the main window coincides with the start position of the window region;

[0040] 然后按预设步长向左更新窗口的窗口区域超始位置,窗口的窗口区域超过主窗口的窗口区域无效,从而实现窗口的图片从右向左滚动。 Invalid [0040] and press preset steps to update the window to the left window area over the window area starting position, the window over the main window of the window area, in order to achieve a picture window scrolling from right to left.

[0041] 预设子窗口的窗口区域的宽度是窗口的窗口区域的宽度的两倍,子窗口的窗口区域起始位置与窗口的窗口区域起始位置重合; The width of the window region [0041] Default child window is twice the width of the window area of ​​the window, the window area of ​​the window starting position of a sub-window coincides with the start position of the window region;

[0042] 然后按预设步长向左更新子窗口的窗口区域超始位置,子窗口的窗口区域超过窗口的窗口区域无效,从而实现子窗口的图片从右向左滚动。 [0042] and then press the preset step left sub-window update window area over the window area starting position, the sub-window over the window of the window area invalid, thus to achieve sub-picture window scrolling from right to left.

[0043] 在本实施方式中,所述更改窗口区域的起始坐标为从右侧向左侧移动,从而实现图片从右向左滚动播放,在其他实施方式中,所述更改窗口区域的方向可以是从左侧向右侧移动、从下侧向上侧移动或从上侧向下侧移动,从而实现沿不同方向滚动播放图片。 [0043] In the present embodiment, the change window region start coordinates to move from right to left, from right to left in order to achieve scrolling images, in other embodiments, the window area change direction may be moved from the lower side moving from the left to the right side or from the upper side to the lower side of the movement, in order to achieve scrolling images in different directions.

[0044] 进一步的,请参阅图3在本实施方式中,所述窗口为同一数组的元素,所述窗口设置有子窗口,所述每个窗口的子窗口形成一双向链表,所述子窗口包括图片、所述窗口区域和剪切区域。 [0044] Further, see FIG. 3 in the present embodiment, the window elements of the same array, the window is provided with a sub-window, each sub-window of the window to form a doubly linked list, the sub-window including pictures, the window region and the shearing region.

[0045]所述窗口采用数组管理,一共可激活128个窗口,坐标越大,窗口越上层;子窗口采用链表管理,窗口和他所有的子窗口形成一个双向链表,头结点为窗口;离窗口越远的子窗口,窗口越上层。 [0045] The window array management using total window 128 may be activated, the greater the coordinate, the upper window; linked list management sub-window, all the windows and his child windows forming a doubly linked list, the first node of the window; from the farther the window a child window, the upper window. 所述窗口设有一个特殊元素,用于标识窗口是否激活;子窗口设有两个特殊元素用于指示该子窗口的前结点和后结点。 The window is provided with a special element for identifying whether to activate the window; child window provided with a front junction two special elements for indicating the sub-window and after the end point. 窗口0也叫做主窗口,所述主窗口用于在更新屏幕显示区域时,将窗口、以及窗口所包含的子窗口的内容更新到主窗口;通过所述主窗口将窗口、以及窗口所包含的子窗口的内容更新到显存;所述主窗口与显存的大小可以不一样,将数据更新到显存时,将自动缩放。 0, also called the window of the main window, a main window for updating the screen display area, the content of the sub window is a window, and a window included in the update to the main window; through the window of the main window, and the window that contains updating the content of the sub window memory; and when the memory size of the main window can be different, update the data to the memory, automatically scaled. 其中,窗口的窗口区域超过主窗口的窗口区域的部分无效,子窗口的窗口区域超过窗口的窗口区域的部分无效。 Wherein a portion of the window area of ​​the window over the main window of the window region is invalid, the window region part subwindow in window area than invalid.

[0046]在窗口中增设子窗口提高了窗口的显示能力,采用数组管理和链表管理大大方便了窗口之间以及窗口与子窗口的操作与管理。 [0046] The additional sub-window display in the window improves the ability of the window, and uses an array management list management greatly facilitate the management and operation between the windows and the window and the child window.

[0047]本实施方式提供的针对窗口及子窗口的主要接口(API)包括:创建窗口、创建子窗口、销毁窗口、销毁子窗口、加载图片、取消加载图片、修改剪切区域、修改窗口区域和更新屏幕显示区域。 [0047] The embodiment provides for the main window and sub-window interface (API) include: create a window, create a child window, destroy the window, destroy the child window, Load picture, cancel Load picture, modify the clipping region, modify the window area and update the screen display area.

[0048]本实施方式提供的主要API包括:创建和销毁(父/子)窗口,加载图片,取消加载图片,修改图片剪切区域,更新屏幕显示区域。 [0048] The main API present embodiment include: creation and destruction (parent / child) window, Load picture, cancel Load picture, edit picture clipping region, update the screen display area.

[0049]创建窗口,需要传入数组坐标(范围1〜127,窗口0是主窗口),如果当前窗口未激活,就激活当前窗口并返回成功;否则返回错误; [0049] create a window, you need to pass an array of coordinates (range 1~127, 0 window is the main window), if the current window is not activated, activate the current window and return success; otherwise it returns an error;

[0050] 创建子窗口,需要传入前结点和后结点;子窗口需要动态分配,然后返回动态分配的子窗口; [0050] creating a child window, and the need to pass before the node after the node; subwindow be dynamically allocated, and then returns dynamically assigned sub-window;

[0051] 加载图片,将图片以及图片的剪切区域传递给指定窗口; [0051] Load picture, and the picture image is transmitted to the shear area designation window;

[0052] 修改图片剪切区域,如果窗口未加载过图片,直接返回错误;否则将新剪切区保存到窗口结点中,当应用程序更新显示区域时,将显示图片在新剪切区部分的内容; [0052] The modified image clipping region, if the window image is not loaded too, direct return error; otherwise the window will be saved to the new node in the shear zone, when the application updates the display area, the image displayed in the new clipping region portion Content;

[0053] 修改窗口区域,当应用程序更新显示区域时,将取消息图片在原来窗口区域的显示,同时显示图片在新的窗口区域内。 [0053] Modify window region, when the application updates the display area, the message will take the original image in the display area of ​​the window while displaying the picture in a new window region.

[0054] 进一步的,请参阅图4、图5在本实施方式中,更新屏幕显示区域的具体步骤包括: [0054] Further, see FIGS. 4 and 5 in the present embodiment, the specific steps to update the screen display area comprises:

[0055] 遍历所述窗口以及窗口所包含的子窗口,确定处于激活状态的窗口以及所述窗口所包含的子窗口; [0055] traversing the sub-window and a window included in the window, the window in the active state determining sub-window and the windows included;

[0056] 计算更新区域与所述处于激活状态的窗口以及所述窗口所包含的子窗口的重叠部分; Overlap portion [0056] Calculation of the update region active window and a sub window to said window comprising;

[0057] 通过所述窗口区域、剪切区域和所述重叠部分计算出图片重叠区域; [0057] The region through said window, and said cutting region overlapping portion overlapped region image is calculated;

[0058] 将所述图片重叠区域的图片更新到主窗口; [0058] The overlap region of the picture image update to the main window;

[0059] 将主窗口更新区域的图片更新到显存的相应区域。 [0059] The main window is updated to the image update region of the corresponding memory area.

[0060] 因应用程序需经常对屏幕界面进行更新,本更新屏幕显示区域的技术方案可以在设有多层窗口子的图形界面上实现动态更新显示区域的画面。 [0060] depending on the application needs to be updated frequently screen interface, this aspect updates the screen display area may dynamically update the screen display area is provided on the sub-window multi-layered graphical interface.

[0061] 本发明提供的另一技术方案为: [0061] Another aspect of the present invention provides for:

[0062] 请参阅图2,一种嵌入式窗口管理装置,包括分屏模块10、加载模块2〇和显示模块30; [0062] Referring to FIG 2, an embedded window management apparatus 10 comprises a split-screen module, the load module and the display module 30 2〇;

[0063] 所述分屏模块10用于将屏幕分隔成两个以上窗口,所述每个窗口包括图片、窗口区域和剪切区域,所述窗口区域用于指示窗口在屏幕的显示位置,所述剪切区域用于指示窗口内图片的具体显示部分; [0063] 10 for the screen is divided into two or more windows, each window including the picture window region, and the clipping region, the window area for displaying the position indication window on the screen split-screen module, the DETAILED display section for indicating said cutout region within a picture window;

[0064] 所述加载模块20用于将预显示的文件转化成图片,并将所述图片加载到对应的窗口中; [0064] The module 20 for loading the file into the pre-conversion image is displayed, and the picture is loaded into the corresponding window;

[0065] 显示模块30用于更新屏幕显示区域,将与屏幕显示区域重叠的窗口图片更新到显存;本实施方式通过引入剪切区域,通过按一定步长更新剪切区域,使剪切区域指示图片的不同部分,并将剪切区域内的内容加载至显存中,从而实现在窗口内沿不同方向滚动播放图片的效果。 [0065] The display module 30 for updating the screen display area, the screen image display region overlapping windows update to memory; embodiment according to the present embodiment by introducing the cutout region, by a certain step size updating the cutout region, the shearing region indicated different part of the image, the contents in the memory and loaded into a cutout region in order to achieve scrolling in the image in different directions within the window effect.

[0066] 进一步的,在本实施方式中,所述嵌入式窗口管理装置还包括窗口更改模块,所述窗口更改模块用于更改窗口区域;通过更改窗口区域可以达到修改窗口图片在屏幕的显示位置和可视部分。 [0066] Further, in the present embodiment, the embedded window management apparatus further comprises a window module changes, the window change means for changing the window region; Modify window can be achieved in the image display screen by changing the position of the window area and the visible part.

[0067] 进一步的,所述显示模块30按预设步长更新剪切区域,包括设置单元、更新单元和判断单元; [0067] Further, the display module 30 updates the step size according to a preset cutting region, comprising a setting unit, determination unit, and an update unit;

[0068] 所述设置单元用于设置所述剪切区域的位移量为x_scorll_index,其中,x_ scorlljndex 的初值为〇; Displacement amount [0068] The setting unit for setting the cutting area is x_scorll_index, wherein, x_ scorlljndex square of the initial value;

[0069] 所述更新单元用于按预设步长更新所述剪切区域,计算所述剪切区域的位移量x_ scorll_index; [0069] The updating unit for updating the step size according to a preset cutting area, calculates the displacement amount of the cutout region x_ scorll_index;

[0070] 所述判断单元用于判断剪切区域更新过程中,其剩余宽度是否小于一个预设步长,若是,则播放结束,若否,则继续按预设步长向剪切方向更新所述剪切区域。 [0070] determination means for determining the shear area update procedure in which the remaining width is smaller than a predetermined step, and if yes, end play, if not, continues to update the shearing direction according to a preset step size said clipping region.

[0071] 进一步的,所述窗口为同一数组的元素,所述窗口设置有子窗口,所述每个窗口的子窗口形成一双向链表,所述子窗口包括图片、所述窗口区域和剪切区域。 [0071] Further, the array elements in the same window, the window is provided with a sub-window, each sub-window of the window to form a doubly linked list, said image comprising a sub-window, the window region and the shearing region.

[0072] 进一步的,还包括更新屏幕显示区域模块,所述更新屏幕显示区域模块包括遍历单元、第一计算单元、第二计算单元、缩放单元和显存更新单元; [0072] Further, further comprising updating the screen display area of ​​the module, the module updates the screen display area comprises a traversing unit, a first calculation unit, a second calculation unit, the scaling unit and memory update unit;

[0073] 所述遍历单元用于遍历所述窗口以及窗口所包含的子窗口,确定处于激活状态的窗口以及所述窗口所包含的子窗口; [0073] The traversing unit for traversing the window and the child window window comprises determining the window and the child window included in the window in the active state;

[0074] 所述第一计算单元用于计算更新区域与所述处于激活状态的窗口以及所述窗口所包含的子窗口的重叠部分; [0074] The first calculation means for calculating the update region in the overlapping portion of the sub-window, and the window activation state comprises the window;

[0075] 所述第二计算单元用于通过所述窗口区域、剪切区域和所述重叠部分计算出图片重叠部分(cacl_clip_rect); [0075] by the second calculation unit for the window area, and said shear area image overlapping portion overlapped portion is calculated (cacl_clip_rect);

[0076] 所述缩放单元用于将所述图片重叠(cacl_clip_rect)区域的图片更新到主窗口; [0076] The image scaling unit for the overlap (cacl_clip_rect) updating of the image area to the main window;

[0077] 所述显存更新单元用于将主窗口更新区域的图片更新到显存的相应区域。 [0077] The memory updating means for updating the main window picture area corresponding to the update of the memory area.

[0078]下面结合一些示例来说明本发明 [0078] Some examples will be described below in connection with the present invention

[0079] 示例1:创建和销毁窗口 [0079] Example 1: Creating and destroying the window

[0080] 创建窗口:主要参数为数组坐标和窗口区域;通过数组坐标检查数组元素是否激活,如果未激活,就将数组元素标志改为激活,同时返回成功,否则返回错误; [0080] create a window: The main argument is an array coordinates and window areas; coordinate array is activated by checking the array elements, if not active, it will mark the array elements instead activated, and returns success, otherwise it returns an error;

[0081] 当销毁窗口:主要参数为数组坐标;通过数组坐标检查数组元素是否激活,如果激活,就将数组元素标志改为未激活,同时返回成功,否则返回错误; [0081] When destroying the window: The main argument is an array coordinates; check whether activated by an array coordinate array elements, if activated, will sign changed to inactive array elements, returning success, otherwise it returns an error;

[0082] 当创建子窗口:主要参数为前窗口结点和窗口区域;通过动态申请新窗口结点,然后将新窗口结点加入前窗口结点后面,构成双向链表; [0082] When creating a child window: Specifications front window and the window region nodes; dynamic nodes to request a new window, the new window is then added behind the front window node junction, constituting doubly linked list;

[0083] 当销毁子窗口:主要参数为子窗口结点;将子窗口结点从双向链表中移除,然后释放子窗口结点占用的内存。 [0083] When the child window destruction: Main parameters of the child window node; sub window memory node is removed from the doubly linked list, and then release the occupied subwindow node.

[0084] 示例2:加载图片 [0084] Example 2: Load picture

[0085] 加载图片所需的参数包括:窗口、图片数据、剪切区; Parameter [0085] needed for loading image comprising: a window, picture data, the shear zone;

[0086]判断窗口是否已经加载过图片,若是,则直接返回错误,若否,则将图片数据和剪切区保存到窗口结点中。 Whether [0086] It is determined through the image window has loaded, if yes, directly returns an error, if not, the node saved in the window and then the picture data clipping region.

[0087] 示例3:修改图片剪切区域,实现滚动播放图片 [0087] Example 3: Modify the image cropping area, to achieve scrolling image

[0088] 修改图片剪切区域所涉及的参数包括:窗口和剪切区域; Parameter [0088] The modified image cropping area includes: a window region and shear;

[0089] 1)判断窗口是否已加载图片,若否,则返回错误,若是,则将新剪切区保存到窗口结点中,当应用程序更新显示区域时,将显示图片在新剪切区部分的内容。 [0089] 1) determines whether the window image is loaded, and if not, an error is returned, and if so, to save a new window will be the node in the shear zone, when the application updates the display area, the image displayed in the new clipping region content section. 请参阅图6,假设有一个窗口,窗口区域为(x,y,width,height),x_scorll jndex = 0,每次檢动像素为mv; Refer to FIG. 6, it is assumed there is a window, the window region (x, y, width, height), x_scorll jndex = 0, each subject moving pixels Music Videos;

[0090] 2)加载一张宽为width*3,高为height的图片给窗口,初始化剪切区域为(〇,〇, width,height); [0090] 2) loading a wide width * 3, the image height height to the window, initializing the area (square, square, width, height);

[0091] 3)当x_scroll_index>width*2时,跳到4);否则,更新剪切区域为(x_scroll_ index,0,width,height),同时将图片在新剪切区域的内容更新到显存,x_scroll_index+ =mv,重复步骤3); [0091] 3) When x_scroll_index> width * 2, the skip 4); otherwise, update shear region (x_scroll_ index, 0, width, height), while the image content cropping area update to the new memory, x_scroll_index + = mv, repeating step 3);

[0092] 4)播放结束。 [0092] 4) show ends.

[0093] 不例4:请参阅图4,更新屏幕显不区域 [0093] Example 4 is not: Refer to FIG. 4, the screen update area is not significant

[0094] 更新屏幕显示区域所涉及的参数包括:更新的区域; [0094] The parameter update the screen display area includes: area update;

[0095] 1)将主窗口的更新区域update_reCt填充透明色,接着需要从窗口1开始检查到127,将处于激活状态且处于更新区域内的窗口和子窗口图片更新到主窗口; [0095] 1) The main window update_reCt update region filled with a transparent color, and then needs to check the window from 1 to 127, and in the active picture windows and child windows within the update area update to the main window;

[0096] 2)当正在检查的窗口处于未激活状态,跳到5);否则,如果窗口区域和更新区域没有重叠部分,跳到5);否则,计算出重叠部分cacl_rect。 [0096] 2) When the window is being checked in an inactive state, jump to 5); otherwise, if the window region and the update area is not overlapped portion, skip 5); otherwise, the overlapped portion is calculated cacl_rect. 然后通过窗口区域,剪切区域和cacl_rect计算出cacl_clip_rect (参考图5,主要用于计算图片显示的部分);最后将cacl— clip_rect区域的图片缩放到主窗口的cacl_rect区域; Then through the window region, and the clipping region is calculated cacl_rect cacl_clip_rect (refer to FIG. 5, the main part of the calculation for the picture display); finally the image is scaled to the area cacl- clip_rect cacl_rect area of ​​the main window;

[0097] 3)当正在检查的窗口有子窗口,如果窗口区域和窗口区域以及更新区域没有重叠部分,跳到4);否则,计算出重叠部分cacl_rect。 [0097] 3) Check the window when there is a child window, if the window area and window area and an update area without overlapping portion, skip to 4); otherwise, the overlapped portion is calculated cacl_rect. 然后通过窗口区域,剪切区域和cacl_rect 计算出cacl_clip_rect (cacl—clip_rect主要用于计算图片显示的部分);最后将cacl_ clip_rect区域的图片缩放到主窗口的cacl_rect区域; Then through the window region, and the clipping region is calculated cacl_rect (cacl-clip_rect section is intended primarily for image display) cacl_clip_rect; Finally, the image is scaled to the area cacl_ clip_rect cacl_rect area of ​​the main window;

[0098] 4)如果窗口还有子窗口,再跳到3); [0098] 4) If the window there is a child window, and then jump to 3);

[0099] 5)判断是否有下一个窗口,如果有跳到2); [0099] 5) determining whether there is a window, if skip 2);

[0100] 6)将主窗口更新区域的图片更新到显存的相应区域。 [0100] 6) The main window picture to update the update region of the corresponding memory area.

[0101]示例5:请参阅图7,采用窗口和子窗口配合,修改剪切区域和窗口区域配合,实现走马灯效果,可以用于需要播放走马灯场景。 [0101] Example 5: Referring to FIG. 7, with the use of windows and child windows, and the window region modified with the cutout region, to achieve the effect of a revolving door, revolving door can be used for a scene to be played.

[0102] 1)预设屏幕显示区域为(x,y,w,h),图片大小为(〇,〇,img_w,img_h),图片宽度img_w不小于显示区域宽度w,图片高度img_h等于显示区域高度h; [0102] 1) a preset screen area (x, y, w, h), image size (square, square, img_w, img_h), is not less than the image width img_w display area width w, equal to the display area of ​​picture height img_h height h;

[0103] 2)第一张图片和第二张图片用背景色填充,从第三张图片开始写文本; [0103] 2) the first picture and the second picture is filled with the background color, the text starts writing the third image;

[0104] 3)创建一个窗口,窗口的窗口区域为(X,y,w,h),窗口图片为第一张图片,剪切区域为(〇,〇,w,h); [0104] 3) create a window, the window is a window area (X, y, w, h), the window image is the first image, the shear area (square, square, w, h);

[0105] 4)创建一个子窗口1,子窗口1的窗口区域为(x,y,w,h),窗口图片为第二张图片, 剪切区域为(img_w-w,0,w,h); [0105] 4) 1 to create a child window, the child window is a window region (x, y, w, h), the window image is the second picture, the shear area (img_w-w, 0, w, h );

[0106] 5)创建一个子窗口2,子窗口2的窗口区域为(x+w,y,w,h),窗口图片为第三张图片,剪切区域为(〇,〇,w,h); [0106] 5) creates a child window 2, a child window of the window area 2 (x + w, y, w, h), the window image is the third image, the shear area (square, square, w, h );

[0107] 6)假设位移为scroll_index = 0;步长为scroll_mv; [0107] 6) assumed displacement scroll_index = 0; step size scroll_mv;

[0108] 7)当scroll_index<w,修改子窗口1的窗口区域为(x—scr〇ii_index,y,w,h),子窗口2的窗口区域为(x+w-scroll—index,y,w,h);当w<scroll_index〈img_w,不再改变窗口区域,而是修改子窗口2的剪切区域为(scroll_index-w,0,w,h); [0108] 7) When scroll_index <w, modify the sub-window is a window region (x-scr〇ii_index, y, w, h), the child window is the window area 2 (x + w-scroll-index, y, w, h); when w <scroll_index <img_w, the window area does not change, but the modified sub-window region 2 is cut (scroll_index-w, 0, w, h);

[0109] 8)当scroll-index>img_w,文本未滚完,置子窗口1的窗口区域为(x,y,w,h),窗口图片换为子窗口2的图片,剪切区域为(img一ww,0,w,h),置子窗口2的窗口区域为(x+w,y, w,h),窗口图片换为新的图片,剪切区域为(〇,〇,w,h),跳到e);如果文本已经滚完,播放结束。 [0109] 8) When the scroll-index> img_w, text roll is not finished, the sub-set of Windows region 1 (x, y, w, h), the window image replaced with the sub-window picture 2, a shear region ( img a ww, 0, w, h), the sub-set of windows region 2 (x + w, y, w, h), the window image replaced with the new image, the shear area (square, square, w, h), skip e); if the text has been completed roll, play ends.

[0110]综上所述,本发明提供的嵌入式窗口管理方法及装置能够实现在图片用户界面中分屏滚动播放图片,所述嵌入式图片用户界面中的窗口包括多层子窗口,每个子窗口都可滚动播放图片,并且通过主窗口可实现在多层窗口部分或完全重叠时更新屏幕显示区域。 [0110] In summary, a method and apparatus embedded window management provided by the present invention can be realized in the image scrolling screen user interface images carved, the embedded image user interface window comprises a multi-layer sub-window, each sub- images can be scrolling window, and the window can be achieved through the main screen display area update multilayer window overlap partially or fully. [0111]以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 [0111] The foregoing is only embodiments of the present invention, not intended to limit the scope of the present invention, all utilize the present specification and drawings taken equivalent structures or equivalent process, or other direct or indirect application Related technical fields shall fall within the scope of protection of the present invention.

Claims (6)

  1. 1. 一种嵌入式窗口管理方法,其特征在于,包括步骤: 将屏幕分隔成两个以上窗口,所述每个窗口包括图片、窗口区域和剪切区域,所述窗口区域用于指示窗口在屏幕的显示位置,所述剪切区域用于指示窗口内图片的具体显示部分; 将预显示的文件转化成图片,并将所述图片加载到对应的窗口中; 更新屏幕显示区域,将与屏幕显示区域重叠的窗口图片更新到显存; 所述窗口为同一数组的元素,所述窗口设置有子窗口,所述每个窗口的子窗口形成一双向链表,所述子窗口包括图片、所述窗口区域和剪切区域; 主窗口用于在更新屏幕显示区域时,将窗口、以及窗口所包含的子窗口的内容更新到主窗口;通过所述主窗口将窗口、以及窗口所包含的子窗口的内容更新到显存; 所述更新屏幕显示区域,具体为: 遍历所述窗口以及窗口所包含的子窗口,确 An embedded window management method, comprising the steps of: a screen divided into two or more windows, each window including the picture window region, and the clipping region, the window area for indicating window specific position of the screen display section displays, in the cutting area for indicating a window image; file is converted into the pre-image display, and the picture is loaded into the corresponding window; update the screen display area, the screen image display region overlaps the window to update the memory; the array elements in the same window, the window is provided with a sub-window, each sub-window of the window to form a doubly linked list, said image comprising a sub-window, the window region and a cutout region; main window for updating the screen display area, the content of the sub window is a window, and a window included in the update to the main window; child window of the main window by the window, and the window that contains the to update the contents of memory; updating the screen display region, in particular: to traverse the sub-window and a window included in the window, indeed 定处于激活状态的窗口以及所述窗口所包含的子窗口; 计算更新区域与所述处于激活状态的窗口以及所述窗口所包含的子窗口的重叠部分; 通过所述窗口区域、剪切区域和所述重叠部分计算出图片重叠区域; 将所述图片重叠区域的图片更新到主窗口; 将主窗口更新区域的图片更新到显存的相应区域。 Window and the child window included in the window set in an active state; calculate an updated region in the overlapping portion of the sub-window, and the window activation state comprises the window; through said window region, and the clipping region the computed image overlap portion overlapping area; the picture image overlapping window areas to the master; the main window to update picture update region of the corresponding memory area.
  2. 2. 根据权利要求1所述的嵌入式窗口管理方法,其特征在于,在所述更新屏幕显示区域步骤之前还包括以下步骤:更换窗口区域内图片或按预设步长更新剪切区域。 2. Embedded window management method according to claim 1, wherein, prior to said step of updating the screen display area further comprises the step of: replacing the window region or preset image cropping area update step.
  3. 3. 根据权利要求2所述的嵌入式窗口管理方法,其特征在于,按预设步长更新剪切区域的具体步骤包括: 设置所述剪切区域的位移量,其中,位移量的初值为〇; 按预设步长更新所述剪切区域,计算所述剪切区域的位移量; 判断剪切区域更新过程中,其剩余宽度是否小于一个预设步长,若是,则播放结束,若否,则继续按预设步长向剪切方向更新所述剪切区域。 3. Embedded window management method according to claim 2, characterized in that the concrete steps according to a preset cutting area update step comprises: setting the amount of displacement of the cutout region, wherein the displacement amount of the initial value it is square; update step according to a preset region of the cutout, calculates the displacement amount of the cutout region; Analyzing shear area update procedure in which the remaining width is smaller than a predetermined step, and if yes, end play, If not, the updating continues according to a preset step length in the shearing direction of the shearing region.
  4. 4. 根据权利要求1所述的嵌入式窗口管理方法,其特征在于,还包括创建窗口、创建子窗口、销毁窗口、销毁子窗口、加载图片、取消加载图片、修改剪切区域和更新屏幕显示区域。 The inset window management method according to claim 1, characterized in that, further comprising creating a window, creating a child window, the window is destroyed, the destruction of the child window, loading images, unloads picture, modify the cutout region and updates the screen display region.
  5. 5. —种嵌入式窗口管理装置,其特征在于,包括分屏模块、加载模块和显示模块; 所述分屏模块用于将屏幕分隔成两个以上窗口,所述每个窗口包括图片、窗口区域和剪切区域,所述窗口区域用于指示窗口在屏幕的显示位置,所述剪切区域用于指示窗口内图片的具体显示部分; 所述加载模块用于将预显示的文件转化成图片,并将所述图片加载到对应的窗口中; 所述显示模块用于更新屏幕显示区域,将与屏幕显示区域重叠的窗口图片更新到显存; 所述窗口为同一数组的元素,所述窗口设置有子窗口,所述每个窗口的子窗口形成一双向链表,所述子窗口包括图片、所述窗口区域和剪切区域; 还包括主窗口;所述主窗口用于在更新屏幕显示区域时,将窗口、以及窗口所包含的子窗口的内容更新到主窗口;通过所述主窗口将窗口、以及窗口所包含的子 5. - Species embedded window management apparatus, wherein the module comprises a split-screen, the load module and a display module; means for the screen split-screen is divided into two or more windows, each window including the pictures, the window region and the clipping region, said window display area for indicating the position of the window screen, the display portion cutout region specific for the indicator window image; load module file for the pre-displayed image converted to and the picture is loaded into the corresponding window; the display module is configured to update the screen display area, the screen image display region overlapping windows to update the memory; the array elements in the same window, the window is provided have child windows, each window of the sub-window forming a doubly linked list, said image comprising a sub-window, the window region and the shearing region; further comprising a main window; the main window for updating the screen display area the content of the sub window is a window, and a window included in the update to the main window; through the window of the main window, and the window that contains the sub- 口的内容更新到显存; 所述更新屏幕显示区域模块包括遍历单元、第一计算单元、第二计算单元、缩放单元和显存更新单元; 所述遍历单元用于遍历所述窗口以及窗口所包含的子窗口,确定处于激活状态的窗口以及所述窗口所包含的子窗口; 所述第一计算单元用于计算更新区域与所述处于激活状态的窗口以及所述窗口所包含的子窗口的重叠部分; 所述第二计算单元用于通过所述窗口区域、剪切区域和所述重叠部分计算出图片重叠区域; 所述缩放单元用于将所述图片重叠区域的图片更新到主窗口; 所述显存更新单元用于将主窗口更新区域的图片更新到显存的相应区域。 Port to update the contents of the memory; updating the screen display area comprises a traversing module unit, a first calculation unit, a second calculation unit, the scaling unit and memory update unit; said traversing means for traversing the window and the window that contains window and sub-window of the window comprising a sub-window is determined in an active state; a first calculating means for calculating the update child window of the window and the window region in the active state contained overlapping portion ; means for calculating said second region through said window, and a cutout area of ​​said overlap region of overlapping images is calculated; the scaling means for converting the picture image overlap area update to the main window; the memory update means for updating the main window picture area corresponding to the update of the memory area.
  6. 6.根据权利要求5所述的嵌入式窗口管理装置,其特征在于,所述显示模块包括设置单元、更新单元和判断单元; 所述设置单元用于设置所述剪切区域的位移量,其中,所述位移量的初值为0; 所述更新单元用于按预设步长更新所述剪切区域,计算所述剪切区域的位移量; 所述判断单元用于判断剪切区域更新过程中,其剩余宽度是否小于一个预设步长,若是,贝U播放结束,若否,则继续按预设步长向剪切方向更新所述剪切区域。 6. embedded window management apparatus according to claim 5, wherein the display module includes a setting unit, updating unit, and determining unit; the amount of displacement of the setting means for setting a clipping region, wherein , the initial value of the shift amount is zero; the update unit for updating the step size according to a preset cutting area, calculates the displacement amount of the cutout region; determining means for determining the shear area update process, the width of which is smaller than a predetermined remaining step, if, shellfish U playback ends, if not, continue to step updates the predetermined area cut in the shearing direction.
CN 201410395996 2014-08-13 2014-08-13 An embedded window management method and apparatus CN104142758B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201410395996 CN104142758B (en) 2014-08-13 2014-08-13 An embedded window management method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201410395996 CN104142758B (en) 2014-08-13 2014-08-13 An embedded window management method and apparatus

Publications (2)

Publication Number Publication Date
CN104142758A true CN104142758A (en) 2014-11-12
CN104142758B true CN104142758B (en) 2017-07-04

Family

ID=51851955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201410395996 CN104142758B (en) 2014-08-13 2014-08-13 An embedded window management method and apparatus

Country Status (1)

Country Link
CN (1) CN104142758B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045569A (en) * 2015-05-15 2015-11-11 广东小天才科技有限公司 Movement control method and apparatus in scene

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493751A (en) * 2009-02-09 2009-07-29 深圳市步科电气有限公司 Multi-window manager of embedded graph system
CN101819594A (en) * 2010-04-23 2010-09-01 四川长虹电器股份有限公司 Method for realizing marquee effect in embedded browser
CN102081949A (en) * 2009-11-26 2011-06-01 上海熙讯电子科技有限公司 Embedded multimedia playing system
CN102193740A (en) * 2011-06-16 2011-09-21 珠海全志科技有限公司 Method for generating multilayer windows in embedded graphical interface system
CN102479534A (en) * 2010-11-30 2012-05-30 方正国际软件(北京)有限公司 Picture playing method and system thereof
CN102609229A (en) * 2012-02-16 2012-07-25 中国科学院声学研究所 Graph parallel-updating method for embedded multi-window application

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493751A (en) * 2009-02-09 2009-07-29 深圳市步科电气有限公司 Multi-window manager of embedded graph system
CN102081949A (en) * 2009-11-26 2011-06-01 上海熙讯电子科技有限公司 Embedded multimedia playing system
CN101819594A (en) * 2010-04-23 2010-09-01 四川长虹电器股份有限公司 Method for realizing marquee effect in embedded browser
CN102479534A (en) * 2010-11-30 2012-05-30 方正国际软件(北京)有限公司 Picture playing method and system thereof
CN102193740A (en) * 2011-06-16 2011-09-21 珠海全志科技有限公司 Method for generating multilayer windows in embedded graphical interface system
CN102609229A (en) * 2012-02-16 2012-07-25 中国科学院声学研究所 Graph parallel-updating method for embedded multi-window application

Also Published As

Publication number Publication date Type
CN104142758A (en) 2014-11-12 application

Similar Documents

Publication Publication Date Title
US20060020903A1 (en) Window split system and method
US20120304108A1 (en) Multi-application environment
US20120304092A1 (en) Multi-application environment
US20100042933A1 (en) Region selection control for selecting browser rendered elements
US20060253795A1 (en) System and method and application program interface for scrolling
US20120256949A1 (en) Backing store memory management for rendering scrollable webpage subregions
JP2005222553A (en) Method and system for automatically displaying content of window on display that has changed orientation
US20080295019A1 (en) Document with Sidebars
CN101834938A (en) Device and method for realizing horizontal/vertical screen switching of mobile terminal
US20130111330A1 (en) Accelerated compositing of fixed position elements on an electronic device
CN102117290A (en) Method and system used for showing page elements in webpage
CN101882432A (en) Focus element display method, device and digital television receiving terminal
JP2007241410A (en) Display device and display control method
US20120278712A1 (en) Multi-input gestures in hierarchical regions
CN104050422A (en) Method and device for displaying information content
US7512892B2 (en) Method and system for displaying and interacting with paginated content
US20090106653A1 (en) Adaptive document displaying apparatus and method
US8140996B2 (en) System for endless loop scrolling and display
CN103853417A (en) Rolling and pagination display method and device for network dynamic picture
US8448074B2 (en) Method and apparatus for providing portioned web pages in a graphical user interface
US20090118008A1 (en) Game device, image processing method, and information recording medium
JP2009289205A (en) Display control device, display control method, display control program, and storage medium
EP2360562A1 (en) Image processing device, information processing device, image processing method, and information processing method
JP2005258882A (en) Character input support method and character input support program
US20110252309A1 (en) Optimizations for hybrid word processing and graphical content authoring

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01