github.com/256dpi/max-go@v0.7.0/lib/max/jpatcher_syms.h (about)

     1  #ifndef _JPATCHER_SYMS_H_
     2  #define _JPATCHER_SYMS_H_
     3  
     4  #include "ext_prefix.h"
     5  #include "ext_mess.h"
     6  
     7  BEGIN_USING_C_LINKAGE
     8  
     9  void jpatcher_syms_init(void);
    10  
    11  extern t_symbol *ps_patcher; 
    12  extern t_symbol *ps_jpatchline; 
    13  extern t_symbol *ps_jpatcher; 
    14  extern t_symbol *ps_patcherview; 
    15  extern t_symbol *ps_juiobject;		// attribute who's existence means we are a new style UI object
    16  
    17  extern t_symbol *ps__set;
    18  
    19  // notifications
    20  extern t_symbol *ps_patchernotify;
    21  extern t_symbol *ps_boxnotify;
    22  extern t_symbol *ps_linenotify;
    23  
    24  extern t_symbol *ps_user;
    25  extern t_symbol *ps_defaultname;
    26  
    27  // patchernotify
    28  extern t_symbol *ps_rect;
    29  extern t_symbol *ps_free;
    30  extern t_symbol *ps_imbed; 
    31  extern t_symbol *ps_unimbed; 
    32  extern t_symbol *ps_snaptogrid; 
    33  extern t_symbol *ps_invis; 
    34  extern t_symbol *ps_toolbarvisible;
    35  
    36  // boxnotify
    37  extern t_symbol *ps_newobject;
    38  extern t_symbol *ps_free;		
    39  extern t_symbol *ps_redraw;
    40  extern t_symbol *ps_redrawcontents; 
    41  extern t_symbol *ps_textchanged; 
    42  extern t_symbol *ps_textcolor; 
    43  extern t_symbol *ps_color; 
    44  extern t_symbol *ps_grabfocus; 
    45  extern t_symbol *ps_inletoutlet;
    46  extern t_symbol *ps_fontchanged;
    47  extern t_symbol *ps_fontcolor;
    48  extern t_symbol *ps_bfixwidth; 
    49  extern t_symbol *ps_showcaption;
    50  extern t_symbol *ps_hidecaption;
    51  extern t_symbol *ps_freecontainedview;
    52  extern t_symbol *ps_rebuildcontainedview;
    53  extern t_symbol *ps_viewvisibility;
    54  extern t_symbol *ps_viewvisibilitychanged;
    55  
    56  // linenotify
    57  extern t_symbol *ps_newobject;
    58  extern t_symbol *ps_free;
    59  extern t_symbol *ps_linechanged; 
    60  
    61  // if a box attribute changes a boxnotify message containing the attribute name will be sent. 
    62  // I won't repeat the attributes here as they are listed below. 
    63  
    64  // linenotify
    65  extern t_symbol *ps_newobject;   
    66  
    67  // Attributes of the patcher class
    68  extern t_symbol *ps_box;
    69  extern t_symbol *ps_count;
    70  extern t_symbol *ps_locked;
    71  extern t_symbol *ps_firstobject;
    72  extern t_symbol *ps_lastobject;
    73  extern t_symbol *ps_firstline;
    74  extern t_symbol *ps_firstview; 
    75  extern t_symbol *ps_title;
    76  extern t_symbol *ps_name;
    77  extern t_symbol *ps_filepath; 
    78  extern t_symbol *ps_savefilepath;
    79  extern t_symbol *ps_filename; 
    80  extern t_symbol *ps_dirty;
    81  extern t_symbol *ps_bglocked;
    82  extern t_symbol *ps_bghidden;
    83  extern t_symbol *ps_fghidden;
    84  extern t_symbol *ps_font;
    85  extern t_symbol *ps_bgcolor; 
    86  extern t_symbol *ps_editing_bgcolor;
    87  extern t_symbol *ps_locked_bgcolor;
    88  extern t_symbol *ps_gridsize; 
    89  extern t_symbol *ps_controller;
    90  extern t_symbol *ps_parentpatcher;
    91  extern t_symbol *ps_toppatcher;
    92  extern t_symbol *ps_maxclass;
    93  extern t_symbol *ps_parentclass;
    94  extern t_symbol *ps_scrolloffset;
    95  extern t_symbol *ps_scrollorigin;
    96  extern t_symbol *ps_wind;
    97  extern t_symbol *ps_noedit; 
    98  extern t_symbol *ps_collective; 
    99  extern t_symbol *ps_cansave; 
   100  extern t_symbol *ps_presentation;
   101  
   102  // methods of the patcher class
   103  extern t_symbol *ps_newobject;	
   104  extern t_symbol *ps_newdefault;
   105  extern t_symbol *ps_connect;
   106  extern t_symbol *ps_hiddenconnect;
   107  extern t_symbol *ps_disconnect;
   108  extern t_symbol *ps_apply;
   109  extern t_symbol *ps_applydeep;
   110  extern t_symbol *ps_applyif;
   111  extern t_symbol *ps_applydeepif;
   112  extern t_symbol *ps_remove;
   113  extern t_symbol *ps_getnamed;
   114  extern t_symbol *ps_getlogical;
   115  extern t_symbol *ps_bringtofront;
   116  extern t_symbol *ps_sendtoback;
   117  
   118  // patcher dictionary syms
   119  extern t_symbol *ps_pound_PD;
   120  extern t_symbol *ps_appversion;
   121  extern t_symbol *ps_major;
   122  extern t_symbol *ps_minor;
   123  extern t_symbol *ps_revision;
   124  extern t_symbol *ps_architecture;
   125  extern t_symbol *ps_x86;
   126  extern t_symbol *ps_x64;
   127  extern t_symbol *ps_modernui;
   128  extern t_symbol *ps_dynamiccolor;
   129  
   130  // Attributes of the Maxobj class
   131  extern t_symbol *ps_rect;
   132  extern t_symbol *ps_presentation_rect; 
   133  extern t_symbol *ps_patching_rect; 
   134  extern t_symbol *ps_jp_position;
   135  extern t_symbol *ps_presentation_position; 
   136  extern t_symbol *ps_patching_position; 
   137  extern t_symbol *ps_size;
   138  extern t_symbol *ps_presentation_size; 
   139  extern t_symbol *ps_patching_size; 
   140  extern t_symbol *ps_object;
   141  extern t_symbol *ps_maxclass;
   142  extern t_symbol *ps_patcher;
   143  extern t_symbol *ps_hint; 
   144  extern t_symbol *ps_hidden;		
   145  extern t_symbol *ps_fontname;
   146  extern t_symbol *ps_fontsize;
   147  extern t_symbol *ps_fontface;
   148  extern t_symbol *ps_textcolor;
   149  extern t_symbol *ps_color; 
   150  extern t_symbol *ps_nextobject;
   151  extern t_symbol *ps_prevobject;
   152  extern t_symbol *ps_varname;
   153  extern t_symbol *ps_id; 
   154  extern t_symbol *ps_canhilite;  
   155  extern t_symbol *ps_zorder; 
   156  extern t_symbol *ps_background;
   157  extern t_symbol *ps_ignoreclick; 
   158  extern t_symbol *ps_drawfirstin;
   159  extern t_symbol *ps_outline;
   160  extern t_symbol *ps_growy;
   161  extern t_symbol *ps_growboth;
   162  extern t_symbol *ps_nogrow;
   163  extern t_symbol *ps_drawinlast; 
   164  extern t_symbol *ps_transparent;
   165  extern t_symbol *ps_mousedragdelta;
   166  extern t_symbol *ps_textfield; 
   167  extern t_symbol *ps_presentation_rect;
   168  extern t_symbol *ps_opaque; 
   169  extern t_symbol *ps_useimagebuffer; 
   170  extern t_symbol *ps_hide;
   171  extern t_symbol *ps_show;
   172  extern t_symbol *ps_move;
   173  extern t_symbol *ps_offset;
   174  extern t_symbol *ps_respondtoclick;
   175  
   176  // Methods of the Maxobj class
   177  extern t_symbol *ps_message; 
   178  extern t_symbol *ps_help;
   179  extern t_symbol *ps_subpatcher;
   180  extern t_symbol *ps_understands;
   181  
   182  // attributes of the jpatchline
   183  extern t_symbol *ps_startpoint;
   184  extern t_symbol *ps_endpoint;
   185  extern t_symbol *ps_pending;
   186  extern t_symbol *ps_nummidpoints; 
   187  extern t_symbol *ps_midpoints;
   188  extern t_symbol *ps_box1;
   189  extern t_symbol *ps_outletnum; 
   190  extern t_symbol *ps_box2;
   191  extern t_symbol *ps_inletnum; 
   192  extern t_symbol *ps_hidden;
   193  extern t_symbol *ps_color; 
   194  extern t_symbol *ps_boundingbox; 
   195  extern t_symbol *ps_straightthresh;
   196  extern t_symbol *ps_straightstart;
   197  extern t_symbol *ps_straightend; 
   198  extern t_symbol *ps_nextline; 
   199  
   200  // attributes of the patcherview
   201  extern t_symbol *ps_visible;
   202  extern t_symbol *ps_locked;
   203  extern t_symbol *ps_unlockedinteraction; 
   204  extern t_symbol *ps_zoomfactor;
   205  extern t_symbol *ps_nextview;
   206  extern t_symbol *ps_jgraphics;
   207  extern t_symbol *ps_patcher;
   208  extern t_symbol *ps_topview;
   209  
   210  // methods of the jpatchline
   211  extern t_symbol *ps_insertsegment;
   212  extern t_symbol *ps_removesegment; 
   213  extern t_symbol *ps_setmidpoint;
   214  extern t_symbol *ps_completeconnection; 
   215  
   216  // Messages to UI objects from the view
   217  extern t_symbol *ps_focusgained;
   218  extern t_symbol *ps_focuslost;
   219  extern t_symbol *ps_key;
   220  extern t_symbol *ps_keyfilter; 
   221  extern t_symbol *ps_mouseenter;
   222  extern t_symbol *ps_mousemove;
   223  extern t_symbol *ps_mousedown;
   224  extern t_symbol *ps_mousedrag;
   225  extern t_symbol *ps_mouseup;
   226  extern t_symbol *ps_mousedoubleclick;
   227  extern t_symbol *ps_mousewheel;
   228  extern t_symbol *ps_mouseleave;
   229  extern t_symbol *ps_dropfiles;
   230  extern t_symbol *ps_moved;
   231  extern t_symbol *ps_resized;
   232  extern t_symbol *ps_vis; 
   233  extern t_symbol *ps_bcut; 
   234  extern t_symbol *ps_bcopy; 
   235  extern t_symbol *ps_bpaste; 
   236  extern t_symbol *ps_bpastepic; 
   237  extern t_symbol *ps_bclear; 
   238  extern t_symbol *ps_bundo; 
   239  extern t_symbol *ps_bredo; 
   240  
   241  // Textfield attributes
   242  extern t_symbol *ps_owner;
   243  extern t_symbol *ps_textcolor;
   244  extern t_symbol *ps_textmargins; 
   245  extern t_symbol *ps_editonclick; 
   246  extern t_symbol *ps_selectallonedit;
   247  extern t_symbol *ps_noactivate; 
   248  extern t_symbol *ps_readonly;
   249  extern t_symbol *ps_wordwrap;
   250  extern t_symbol *ps_useellipsis;
   251  extern t_symbol *ps_autoscroll;
   252  extern t_symbol *ps_wantsreturn;
   253  extern t_symbol *ps_wantstab; 
   254  extern t_symbol *ps_underline;
   255  extern t_symbol *ps_autofixwidth;
   256  extern t_symbol *ps_emptytext;
   257  extern t_symbol *ps_justification;
   258  
   259  // jcolor attributes
   260  extern t_symbol *ps_red;
   261  extern t_symbol *ps_green;
   262  extern t_symbol *ps_blue;
   263  extern t_symbol *ps_alpha; 
   264  extern t_symbol *ps_rgba; 
   265  
   266  // scripting names
   267  extern t_symbol *ps_varname_set;
   268  extern t_symbol *ps_varname_unset;
   269  
   270  END_USING_C_LINKAGE
   271  
   272  #endif // #ifndef _JPATCHER_SYMS_H_
   273