TQt conversion of scintilla for Qt3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ScintillaWidget.h 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Scintilla source code edit control
  2. /** @file ScintillaWidget.h
  3. ** Definition of Scintilla widget for GTK+.
  4. ** Only needed by GTK+ code but is harmless on other platforms.
  5. **/
  6. // Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
  7. // The License.txt file describes the conditions under which this software may be distributed.
  8. #ifndef SCINTILLAWIDGET_H
  9. #define SCINTILLAWIDGET_H
  10. #if PLAT_GTK
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #define SCINTILLA(obj) GTK_CHECK_CAST (obj, scintilla_get_type (), ScintillaObject)
  15. #define SCINTILLA_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, scintilla_get_type (), ScintillaClass)
  16. #define IS_SCINTILLA(obj) GTK_CHECK_TYPE (obj, scintilla_get_type ())
  17. typedef struct _ScintillaObject ScintillaObject;
  18. typedef struct _ScintillaClass ScintillaClass;
  19. struct _ScintillaObject {
  20. GtkContainer cont;
  21. void *pscin;
  22. };
  23. struct _ScintillaClass {
  24. GtkContainerClass parent_class;
  25. void (* command) (ScintillaObject *ttt);
  26. void (* notify) (ScintillaObject *ttt);
  27. };
  28. #if GLIB_MAJOR_VERSION < 2
  29. GtkType scintilla_get_type (void);
  30. #else
  31. GType scintilla_get_type (void);
  32. #endif
  33. GtkWidget* scintilla_new (void);
  34. void scintilla_set_id (ScintillaObject *sci, uptr_t id);
  35. sptr_t scintilla_send_message (ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam);
  36. void scintilla_release_resources(void);
  37. #if GTK_MAJOR_VERSION < 2
  38. #define SCINTILLA_NOTIFY "notify"
  39. #else
  40. #define SCINTILLA_NOTIFY "sci-notify"
  41. #endif
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif
  46. #endif