File: SpecRec.h

package info (click to toggle)
pymol 2.5.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 42,288 kB
  • sloc: cpp: 476,472; python: 76,538; ansic: 29,510; javascript: 6,792; sh: 47; makefile: 24
file content (38 lines) | stat: -rw-r--r-- 940 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once

#include"PyMOLObject.h"
#include"CGO.h"

/**
 * Specification record (a row in the object menu panel)
 */
class SpecRec {
public:
  /* NOTE: must zero-init with CALLOC */
  int type;
  WordType name;                /*only used for selections */
  pymol::CObject* obj;
  SpecRec *next;
  int visible;            /* This is actually when object is "Enabled", not visible */

  ObjectNameType group_name;

  /* not pickled */
  int sele_color;
  int hilight;                  /* 0 = none, 1 = name, 2 = group control (if any) */
  int previous;
  int cand_id;
  SpecRec *group;
  int group_member_list_id;
  int in_scene;
  int in_panel;
  int grid_slot;
  CGO *gridSlotSelIndicatorsCGO;

  void setEnabled(PyMOLGlobals* G, bool enabled);
  const char* baseName() const;
  bool isHidden(bool hide_underscore_names) const;
  bool isHiddenNotRecursive(bool hide_underscore_names) const;
  bool isChildOf(SpecRec const*) const;
};