Chapter 16Graphical User Interfaces.ppt
Next lecture The next three lectures will show how the standard vector is implemented using basic low-level language facilities. This is where we really get down to the hardware and work our way back up to a more comfortable and productive level of programming. * Stroustrup/Programming Chapter 16Graphical User Interfaces Bjarne Stroustrup /Programming Overview Perspective I/O alternatives GUI Layers of software GUI example GUI code callbacks * Stroustrup/Programming I/O alternatives Use console input and output A strong contender for technical/professional work Command line interface Menu driven interface Graphic User Interface Use a GUI Library To match the “feel” of windows/Mac applications When you need drag and drop, WYSIWYG Event driven program design A web browser – this is a GUI library application HTML / a scripting language For remote access (and more) * Stroustrup/Programming Common GUI tasks Titles / Text Names Prompts User instructions Fields / Dialog boxes Input Output Buttons Let the user initiate actions Let the user select among a set of alternatives e.g. yes/no, blue/green/red, etc. * Stroustrup/Programming Common GUI tasks (cont.) Display results Shapes Text and numbers Make a window “look right” Style and color Note: our windows look different (and appropriate) on different systems More advanced Tracking the mouse Dragging and dropping Free-hand drawing * Stroustrup/Programming GUI From a programming point of view GUI is based on two techniques Object-oriented programming For organizing program parts with common interfaces and common actions Events For connecting an event (like a mouse click) with a program action * Stroustrup/Programming Layers of software When we build software, we usually build upon existing code * Our program Our GUI/Graphics interface library FLTK The operating system Graphics GUI facilities Device driver layer Example of a layer Provides services Uses services Stroustrup/Programming GUI example Window with two
您可能关注的文档
- §3-3 走向成熟.ppt
- 01.ppt-《网络信息安全》.ppt
- 1.5 有理数的乘方1.5.1 乘方.ppt
- 12th U.S.North American Mine Ventilation Symposium.ppt
- 13、义犬复仇.ppt
- 16 Distributed Structures.ppt
- 20.1.2 中位数和众数 (第二课时).ppt
- 2002STIM-LAB Proppant Consortium.ppt
- 2009年初中学业考查历史热点专题复习.ppt
- 2011-LED专利态势及预警分析.ppt
- 中国国家标准 GB/T 6675.9-2025玩具安全 第9部分:化学及类似活动的实验玩具.pdf
- 《GB/T 6675.9-2025玩具安全 第9部分:化学及类似活动的实验玩具》.pdf
- GB/T 46975-2025婴童用品 便携式婴儿睡篮技术要求.pdf
- 中国国家标准 GB/T 46975-2025婴童用品 便携式婴儿睡篮技术要求.pdf
- 《GB/T 46975-2025婴童用品 便携式婴儿睡篮技术要求》.pdf
- 《GB/T 6675.14-2025玩具安全 第14部分:指画颜料要求和测试方法》.pdf
- GB/T 6675.14-2025玩具安全 第14部分:指画颜料要求和测试方法.pdf
- 中国国家标准 GB/T 6675.14-2025玩具安全 第14部分:指画颜料要求和测试方法.pdf
- 中国国家标准 GB/T 33772.3-2025质量评定体系 第3部分:印制板及层压板最终产品检验及过程监督用抽样方案的选择和使用.pdf
- 《GB/T 33772.3-2025质量评定体系 第3部分:印制板及层压板最终产品检验及过程监督用抽样方案的选择和使用》.pdf
原创力文档

文档评论(0)