📅  最后修改于: 2020-11-18 07:45:58             🧑  作者: Mango
图形用户界面(GUI)通过一些图形组件提供用户交互。例如,我们的基础操作系统还通过窗口,框架,面板,按钮,文本字段,TextArea,列表框,组合框,标签,复选框等提供了GUI。这些都称为组件。使用这些组件,我们可以为应用程序创建交互式用户界面。
GUI为最终用户响应引发的事件提供结果。GUI完全基于事件。例如,单击按钮,关闭窗口,打开窗口,在文本区域中键入内容等。这些活动称为events.GUI,最终用户可以更轻松地使用应用程序。这也使它们变得有趣。
Term | Description |
---|---|
Component | Component is an object having a graphical representation that can be displayed on the screen and that can interact with the user. For examples buttons, checkboxes, list and scrollbars of a graphical user interface. |
Container | Container object is a component that can contain other components.Components added to a container are tracked in a list. The order of the list will define the components’ front-to-back stacking order within the container. If no index is specified when adding a component to a container, it will be added to the end of the list. |
Panel | Panel provides space in which an application can attach any other components, including other panels. |
Window | Window is a rectangular area which is displayed on the screen. In different window we can execute different program and display different data. Window provide us with multitasking environment. A window must have either a frame, dialog, or another window defined as its owner when it’s constructed. |
Frame | A Frame is a top-level window with a title and a border. The size of the frame includes any area designated for the border. Frame encapsulates window. It and has a title bar, menu bar, borders, and resizing corners. |
Canvas | Canvas component represents a blank rectangular area of the screen onto which the application can draw. Application can also trap input events from the use from that blank area of Canvas component. |
以下是基于GUI的应用程序的一些示例。
自动柜员机(ATM)
机票售票系统
火车站问讯处
移动应用
导航系统
GUI提供图形图标进行交互,而CUI(字符用户界面)提供简单的基于文本的界面。
GUI使应用程序更具娱乐性和趣味性,而CUI则没有。
每次我们必须输入任务命令时,GUI都在CUI中提供单击和执行环境。
新用户可以通过视觉指示器轻松地与图形用户界面进行交互,但是在字符用户界面中却很难。
GUI提供了许多文件系统和操作系统的控件,而在CUI中,您必须使用难以记住的命令。
GUI中的Windows概念允许用户一次查看,操纵和控制多个应用程序,而在CUI中,用户可以一次控制一个任务。
GUI提供了多任务环境,就像CUI一样,但是CUI却不像GUI那样容易。
使用GUI可以更轻松地控制和导航操作系统,这在命令用户界面中变得非常慢。 GUI可以轻松自定义。