简体   繁体   English

GUI API的模式或建议

[英]Patterns or recommendations for GUI APIs

We know things like buttons and panels are common to most languages, but are there any officially recognized and used recommendations or patterns for GUI APIs? 我们知道按钮和面板之类的东西对于大多数语言是通用的,但是GUI API是否有任何官方认可和使用的建议或模式? (say, something from W3C maybe?) (例如,也许来自W3C?)

I don't think there is a collection of what you are looking for. 我认为您找不到想要的东西。 But in each of the frameworks you will probably find patterns that are applicable. 但是在每个框架中,您可能会找到适用的模式。 Some might be specific to the runtime architecture that the API is built for but some are fairly general like MVC , Delegation or Decorator . 有些可能是特定于该API构建的运行时体系结构的,但有些则相当通用,例如MVC委派Decorator Here are some links I know to appropriate architecture documents 这是我知道的一些指向适当体系结构文档的链接

I have used a lot GUI frameworks over the last years and I still like the architecture that went into cocoa, it is one frameworks that implements guis in a very object oriented way. 过去几年中,我使用了很多GUI框架,但我仍然喜欢可可中使用的体系结构,这是一种以面向对象的方式实现guis的框架。 Most of the paradigms are applied consistently and repeatedly so that usually if you have figured out a way how to do things it will usually carry over to somewhere else. 大多数范例都是一致且重复地应用的,因此通常,如果您已找到一种方法来做事,它通常会延续到其他地方。

I doesn't think there is any official and formal patterns from standard bodies. 我认为标准机构没有任何正式和正式的模式。 But there is a UI pattern catalog here. 但是这里有一个UI模式目录。 Yahoo also maintains a UI pattern library . 雅虎还维护一个UI模式库

UI design is imho an art -- there's some "do this, don't do that", but not much. UI设计是一门艺术–有一些“做到这一点,不要做到这一点”,但不多。 Nonetheless designing-a-gui on SO has some practical advice. 尽管如此,在SO上设计GUI还是有一些实用建议。
"Officially recognized": try Microsoft ? “官方认可”:试试微软?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM