matome.hpp

C:\home\SVGCats_src\src\matome.hpp

[目次 | 型・クラス・構造体 | マクロ]

目次

型・クラス・構造体一覧

マクロ一覧


   1|/*********************************************************************** 
   2|  1. <<< まとめ記号{ (Matome) >>>
   3|************************************************************************/
   4|
   5|#ifndef __MATOME_HPP
   6|#define __MATOME_HPP
   7|
   8|
   9|/*-----------------------------------------------------------------*/
  10|/* 2. <<< Interface Area ---------------------------------------- >>> */
  11|/*-----------------------------------------------------------------*/
  12|
  13|/***********************************************************************
  14|  3. <<< [Matome] まとめ記号{ >>>
  15|************************************************************************/
  16|class  Matome : public CadPrim {
  17|public:
  18|  int   m_id;
  19|  bool  m_bInUndoBuf;
  20|  bool  m_bHold;
  21|  bool  m_bSelected;
  22|
  23|  int   m_x1, m_y1, m_x2, m_y2;  /* x1,y1:凸側 */
  24|
  25|  int   m_BorderWidth;
  26|  int   m_BorderColor;
  27|
  28|  Matome();
  29|  ~Matome();
  30|
  31|  void  print( const char* title );
  32|  int   GetID();
  33|  void  SetID( int id );
  34|  int   GetTypeID();
  35|  char*  GetTypeNameJp();
  36|  char*  GetTypeNameEn();
  37|  void   SetBInUndoBuf( bool b );
  38|  char*  GetLinkURL();
  39|  char*  GetIdLabel();
  40|
  41|  void  OutSVG( CadPrim_SaveParam* p );
  42|  void  Draw( CDC*, CadPrim_DrawParam* p );
  43|  void  DrawHandles( CDC*, CadPrim_DrawParam* p, COLORREF color, bool bDrawFrame );
  44|  void  copy( CadPrim*, ListX* prims );
  45|  void  copyStyle( CadPrim*, ListX* prims );
  46|  bool  isEqual( CadPrim* );
  47|  CadPrim*  GetNewCopy( ListX* prims );
  48|  int   GetSerializedSize();
  49|  void  CopyToSerial( void* a );
  50|  void  CopyFromSerial( void* a );
  51|
  52|  int   GetHitHandleNum( int x, int y, int zoom, int mode, int* dx, int* dy, int* diff, int* arrow );
  53|  void  Move( int dx, int dy );
  54|  void  MoveByHandle( int iHandle, int x, int y, bool bShift, bool bRotate );
  55|  void  GetCenterOfHandle( int iHandle, int* x, int* y );
  56|  void  SetHold( bool );
  57|  bool  GetHold();
  58|  bool  IsHoldable();
  59|  void  SetSelected( bool );
  60|  bool  GetSelected();
  61|  bool  IsMultiSelect( Rect* rect );
  62|  int   GetForAlign( int iPos );
  63|  void  SetForAlign( int iPos, int value );
  64|  int   GetForFitSize( int iAttr );
  65|  void  SetForFitSize( int iAttr, int value );
  66|  void  OnCreated();
  67|
  68|  int   GetNProp();
  69|  int   GetProp( int iProp, bool bJapanese, char* name, int name_size, char* value, int value_size,
  70|    const char* path, void** option );
  71|  void  SetProp( int iProp, const char* value, const char* path );
  72|  bool  IsNeedUnicode();
  73|};
  74|
  75|#define  Matome_TypeID  6
  76|
  77|
  78|
  79|/*-----------------------------------------------------------------*/
  80|/* 4. <<< Mapping Area ------------------------------------------ >>> */
  81|/*-----------------------------------------------------------------*/
  82|
  83|
  84|#endif
  85|
  86| 
  87|