PageRenderTime 52ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 1ms

/editor/Frame.cs

http://github.com/toshok/shelisp
C# | 89 lines | 74 code | 15 blank | 0 comment | 1 complexity | a497e65bbd59a4b675394606ea394f57 MD5 | raw file
Possible License(s): GPL-3.0
  1. using Shelisp;
  2. namespace Shemacs.Editor {
  3. class Frame : Object {
  4. public Frame (L l)
  5. {
  6. }
  7. public Shelisp.Object buffer_list;
  8. public Shelisp.Object buried_buffer_list;
  9. public static Shelisp.Object Vframe_list = L.Qnil;
  10. [LispBuiltin (DocString = "Return a list of all live frames.")]
  11. public static Shelisp.Object Fframe_list (L l)
  12. {
  13. var frames = Sequence.Fcopy_sequence (l, Vframe_list);
  14. #if HAVE_WINDOW_SYSTEM
  15. if (FRAMEP (tip_frame))
  16. frames = Fdelq (tip_frame, frames);
  17. #endif
  18. return frames;
  19. }
  20. [LispBuiltin (DocString = @"Non-nil if window system changes focus when you move the mouse.
  21. You should set this variable to tell Emacs how your window manager
  22. handles focus, since there is no way in general for Emacs to find out
  23. automatically. See also `mouse-autoselect-window'.")]
  24. public static bool focus_follows_mouse = false;
  25. [LispBuiltin (DocString = @"Alist of default values for frame creation.
  26. These may be set in your init file, like this:
  27. (setq default-frame-alist '((width . 80) (height . 55) (menu-bar-lines . 1)))
  28. These override values given in window system configuration data,
  29. including X Windows' defaults database.
  30. For values specific to the first Emacs frame, see `initial-frame-alist'.
  31. For window-system specific values, see `window-system-default-frame-alist'.
  32. For values specific to the separate minibuffer frame, see
  33. `minibuffer-frame-alist'.
  34. The `menu-bar-lines' element of the list controls whether new frames
  35. have menu bars; `menu-bar-mode' works by altering this element.
  36. Setting this variable does not affect existing frames, only new ones.")]
  37. public static Shelisp.Object Vdefault_frame_alist = L.Qnil;
  38. [LispBuiltin (DocString = @"If non-nil, clickable text is highlighted when mouse is over it.
  39. If the value is an integer, highlighting is only shown after moving the
  40. mouse, while keyboard input turns off the highlight even when the mouse
  41. is over the clickable text. However, the mouse shape still indicates
  42. when the mouse is over clickable text.")]
  43. public static Shelisp.Object Vmouse_highlight = L.Qt;
  44. [LispBuiltin (DocString = @"If non-nil, make pointer invisible while typing.
  45. The pointer becomes visible again when the mouse is moved.")]
  46. public static Shelisp.Object Vmake_pointer_invisible = L.Qt;
  47. [LispBuiltin (DocString = @"Functions to be run before deleting a frame.
  48. The functions are run with one arg, the frame to be deleted.
  49. See `delete-frame'.
  50. Note that functions in this list may be called just before the frame is
  51. actually deleted, or some time later (or even both when an earlier function
  52. in `delete-frame-functions' (indirectly) calls `delete-frame'
  53. recursively).")]
  54. public static Shelisp.Object Vdelete_frame_functions = L.Qnil;
  55. [LispBuiltin (DocString = @"Non-nil if Menu-Bar mode is enabled.
  56. See the command `menu-bar-mode' for a description of this minor mode.
  57. Setting this variable directly does not take effect;
  58. either customize it (see the info node `Easy Customization')
  59. or call the function `menu-bar-mode'.")]
  60. public static bool menu_bar_mode = true;
  61. [LispBuiltin (DocString = @"Non-nil if Tool-Bar mode is enabled.
  62. See the command `tool-bar-mode' for a description of this minor mode.
  63. Setting this variable directly does not take effect;
  64. either customize it (see the info node `Easy Customization')
  65. or call the function `tool-bar-mode'.")]
  66. public static bool tool_bar_mode =
  67. #if HAVE_WINDOW_SYSTEM
  68. tool_bar_mode = true;
  69. #else
  70. tool_bar_mode = false;
  71. #endif
  72. }
  73. }