Google C++ Style Guide
entire source file after includes, gflags defi- nitions/declarations and forward declarations of classes from other namespaces. // In the .h file namespace mynamespace { // All declarations are within • Do not declare anything in namespace std, including forward declarations of standard library classes. Declaring entities in namespace std is unde- fined behavior, i.e., not portable. To declare entities depend on external variables, and should nearly always exist in a namespace. Rather than creating classes only to group static member functions which do not share static data, use namespaces instead. For0 码力 | 83 页 | 238.71 KB | 1 年前3Game Development for Human Beings
TiledState = function () { 4 "use strict"; 5 Phaser.State.call(this); 6 7 this.prefab_classes = { 8 "player": Platformer.Player.prototype.constructor, 9 "ground_enemy": Platformer create object according to its type 92 if (this.prefab_classes.hasOwnProperty(object.type)) { 93 prefab = new this.prefab_classes[object.type](this, position, object.properties); 94 } constructor. This way, to instantiate a new prefab we check if the type is present in the “prefab_classes” objects, and if so, we call the correct constructor. Notice that this only works because all prefabs0 码力 | 472 页 | 8.46 MB | 10 月前3Kicad 4.0 Plugins
October 31, 2021 Kicad Plugins iii Contents 1 Introduction to the KiCad plugin system 2 1.1 Plugin Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The plugin framework was later generalized so that in the future developers can create different classes of plugins. Currently only 3D plugins are implemented within KiCad but it is envisioned that a PCB it possible for users to implement data Importers and Exporters. 1.1 Plugin Classes Plugins are divided into Plugin Classes since each plugin addresses problems in a specific domain and therefore requires0 码力 | 36 页 | 210.85 KB | 1 年前3Kicad 5.1 Plugins
October 31, 2021 Kicad Plugins iii Contents 1 Introduction to the KiCad plugin system 2 1.1 Plugin Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The plugin framework was later generalized so that in the future developers can create different classes of plugins. Currently only 3D plugins are implemented within KiCad but it is envisioned that a PCB it possible for users to implement data Importers and Exporters. 1.1 Plugin Classes Plugins are divided into Plugin Classes since each plugin addresses problems in a specific domain and therefore requires0 码力 | 36 页 | 204.70 KB | 1 年前3Kicad 5.1 Plugins
The plugin framework was later generalized so that in the future developers can create different classes of plugins. Currently only 3D plugins are implemented within KiCad but it is envisioned that a PCB it possible for users to implement data Importers and Exporters. 1.1. Plugin Classes Plugins are divided into Plugin Classes since each plugin addresses problems in a specific domain and therefore requires to link to KiCad’s scene graph library kicad_3dsg. KiCad’s Scene Graph Library provides a set of classes which can be used to build the Scene Graph Object; the Scene Graph Object is an intermediate data0 码力 | 48 页 | 44.28 KB | 1 年前3Kicad 4.0 Plugins
The plugin framework was later generalized so that in the future developers can create different classes of plugins. Currently only 3D plugins are implemented within KiCad but it is envisioned that a PCB it possible for users to implement data Importers and Exporters. 1.1. Plugin Classes Plugins are divided into Plugin Classes since each plugin addresses problems in a specific domain and therefore requires to link to KiCad’s scene graph library kicad_3dsg. KiCad’s Scene Graph Library provides a set of classes which can be used to build the Scene Graph Object; the Scene Graph Object is an intermediate data0 码力 | 48 页 | 66.10 KB | 1 年前3Google Python Style Guide
Contents Python Language Rules Lint Imports Packages Exceptions Global variables Nested/Local/Inner Classes and Functions List Comprehensions Default Iterators and Operators Generators Lambda Functions Conditional Rules Semicolons Line length Parentheses Indentation Blank Lines Whitespace Shebang Line Comments Classes Strings Files and Sockets TODO Comments Imports formatting Statements Access Control Naming Main through public module level functions; see Naming below. Nested/Local/Inner Classes and Functions link Nested/local/inner classes and functions are fine. Definition: A class can be defined inside of a0 码力 | 30 页 | 94.81 KB | 1 年前3Google Java Style Guide
great effect on learnability, but there is no single correct recipe for how to do it. Different classes may order their members differently. What is important is that each class order its members in some (otherCondition()) { somethingElse(); } else { lastThing(); } } }; A few exceptions for enum classes are given in Section 4.8.1, Enum classes. 4.1.3 Empty blocks: may be concise 5 An empty block or block-like construct Between consecutive members (or initializers) of a class: fields, construc- tors, methods, nested classes, static initializers, instance initializers. 7 • Exception: A blank line between two consecutive0 码力 | 19 页 | 84.76 KB | 1 年前3Pandoc User’s Guide (April 7, 2024)
headings (defaults to 1). --indented-code-classes=CLASSES Specify classes to use for indented code blocks–for example, perl,numberLines or haskell. Multiple classes may be separated by spaces or commas. deletions, and comments, wrapped in spans with insertion, deletion, comment-start, and comment-end classes, respectively. The author and time of change is included. all is useful for 13 Options scripting: defaults file --shift-heading-level-by -1 shift-heading-level-by: -1 --indented-code-classes python indented-code-classes: - python --default-image-extension ".jpg" default-image-extension: '.jpg' --file-scope0 码力 | 168 页 | 475.29 KB | 1 年前3KiCad PCB Editor 7.0
Net and net class controls The Nets tab of the appearance panel shows a list of all nets and net classes in the board. Each net has a visibility control that controls the visibility of that net in the select and highlight nets and net classes via the appearance panel: right-click on a net or net class to show these options in a menu. Below the list of net classes is an expandable panel that contains you to define the track and via dimensions you want to have available while routing tracks. Net classes can be used to define the default dimensions for tracks and vias in different nets (see below) but0 码力 | 129 页 | 7.75 MB | 1 年前3
共 410 条
- 1
- 2
- 3
- 4
- 5
- 6
- 41