⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xscomponent.h

📁 Wxpython Implemented on Windows CE, Source code
💻 H
字号:
/*
   Copyright (C) 1996 Scott W. Sadler
   All rights reserved.
*/

/*
   XsComponent.h

   History
      03-Mar-96 1.0; Scott W. Sadler (ssadler@cisco.com)
                     Created         
*/

#ifndef XSCOMPONENT_H
#define XSCOMPONENT_H

// Includes

#include <X11/Intrinsic.h>

// XsComponent class

class XsComponent {

   public:

// Destructor

      virtual  ~XsComponent ( );

// Component manipulation

      virtual  void show ( );             // Show the component
      virtual  void hide ( );             // Hide the component
      
// Component name

      const char *name ( ) const;

// Utilities

      Widget   base ( ) const;
      virtual  operator Widget ( ) const;

// Operators

      Boolean operator == (const XsComponent&);

// Class name

      virtual const char *className ( ) const;

   protected:

// Protected constructor

      XsComponent (const char *name);
      
// Component life-cycle

      virtual void _componentDestroyed ( );
      void  _installDestroyHandler ( );
      void  _removeDestroyHandler ( );
		  
// Resource manager

      void  _setResources (Widget w, const String *);
      void  _getResources (const XtResourceList, int);

// Implementation

      char    *_name;            // Component name
      Widget   _base;            // Base widget

   private:

// Callbacks

      static void _componentDestroyedCallback (Widget, XtPointer, XtPointer);
};
   
// Inline member functions

inline Widget XsComponent::base ( ) const
{
   return (_base);
}

inline const char* XsComponent::name ( ) const
{
   return (_name);
}

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -