PageRenderTime 47ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/editor/Face.cs

http://github.com/toshok/shelisp
C# | 184 lines | 149 code | 29 blank | 6 comment | 0 complexity | 098b9d0a3948c7d14de60de2e7b65f5a MD5 | raw file
Possible License(s): GPL-3.0
  1. using System;
  2. using Shelisp;
  3. namespace Shemacs.Editor {
  4. class Face : Shelisp.Object {
  5. // elisp manual says this is a macro?
  6. [LispBuiltin ("defface", MinArgs = 3)]
  7. public static Shelisp.Object Fdefface (L l, Shelisp.Object face, Shelisp.Object spec, Shelisp.Object doc, params Shelisp.Object[] rest)
  8. {
  9. Console.WriteLine ("defface not implemented"); return L.Qnil;
  10. }
  11. [LispBuiltin ("set-face-attribute", MinArgs = 2)]
  12. public static Shelisp.Object Fset_face_attribute (L l, Shelisp.Object face, Shelisp.Object frame, params Shelisp.Object[] arguments)
  13. {
  14. Console.WriteLine ("set-face-attribute not implemented"); return L.Qnil;
  15. }
  16. [LispBuiltin ("face-attribute-relative-p", MinArgs = 2)]
  17. public static Shelisp.Object Fface_attribute_relative_p (L l, Shelisp.Object attribute, Shelisp.Object value)
  18. {
  19. Console.WriteLine ("face-attribute-relative-p not implemented"); return L.Qnil;
  20. }
  21. [LispBuiltin ("face-all-attributes", MinArgs = 1)]
  22. public static Shelisp.Object Fface_all_attributes (L l, Shelisp.Object face, Shelisp.Object frame)
  23. {
  24. Console.WriteLine ("face-all-attributes not implemented"); return L.Qnil;
  25. }
  26. [LispBuiltin ("merge-face-attribute", MinArgs = 3)]
  27. public static Shelisp.Object Fmerge_face_attribute (L l, Shelisp.Object attribute, Shelisp.Object value1, Shelisp.Object value2)
  28. {
  29. Console.WriteLine ("merge-face-attribute not implemented"); return L.Qnil;
  30. }
  31. [LispBuiltin ("set-face-foreground", MinArgs = 2)]
  32. public static Shelisp.Object Fset_face_foreground (L l, Shelisp.Object face, Shelisp.Object color, Shelisp.Object frame)
  33. {
  34. Console.WriteLine ("set-face-foreground not implemented"); return L.Qnil;
  35. }
  36. [LispBuiltin ("set-face-background", MinArgs = 2)]
  37. public static Shelisp.Object Fset_face_background (L l, Shelisp.Object face, Shelisp.Object color, Shelisp.Object frame)
  38. {
  39. Console.WriteLine ("set-face-background not implemented"); return L.Qnil;
  40. }
  41. [LispBuiltin ("set-face-stipple", MinArgs = 2)]
  42. public static Shelisp.Object Fset_face_stipple (L l, Shelisp.Object face, Shelisp.Object pattern, Shelisp.Object frame)
  43. {
  44. Console.WriteLine ("set-face-stipple not implemented"); return L.Qnil;
  45. }
  46. [LispBuiltin ("set-face-font", MinArgs = 2)]
  47. public static Shelisp.Object Fset_face_font (L l, Shelisp.Object face, Shelisp.Object font, Shelisp.Object frame)
  48. {
  49. Console.WriteLine ("set-face-font not implemented"); return L.Qnil;
  50. }
  51. [LispBuiltin ("set-face-bold-p", MinArgs = 2)]
  52. public static Shelisp.Object Fset_face_bold_p (L l, Shelisp.Object face, Shelisp.Object bold_p, Shelisp.Object frame)
  53. {
  54. Console.WriteLine ("set-face-bold-p not implemented"); return L.Qnil;
  55. }
  56. [LispBuiltin ("set-face-italic-p", MinArgs = 2)]
  57. public static Shelisp.Object Fset_face_italic_p (L l, Shelisp.Object face, Shelisp.Object italic_p, Shelisp.Object frame)
  58. {
  59. Console.WriteLine ("set-face-italic-p not implemented"); return L.Qnil;
  60. }
  61. [LispBuiltin ("set-face-underline-p", MinArgs = 2)]
  62. public static Shelisp.Object Fset_face_underline_p (L l, Shelisp.Object face, Shelisp.Object underline_p, Shelisp.Object frame)
  63. {
  64. Console.WriteLine ("set-face-underline-p not implemented"); return L.Qnil;
  65. }
  66. [LispBuiltin ("set-face-inverse-video-p", MinArgs = 2)]
  67. public static Shelisp.Object Fset_face_inverse_video_p (L l, Shelisp.Object face, Shelisp.Object inverse_video_p, Shelisp.Object frame)
  68. {
  69. Console.WriteLine ("set-face-inverse-video-p not implemented"); return L.Qnil;
  70. }
  71. [LispBuiltin ("invert-face", MinArgs = 1)]
  72. public static Shelisp.Object Finvert_face (L l, Shelisp.Object face, Shelisp.Object frame)
  73. {
  74. Console.WriteLine ("invert-face not implemented"); return L.Qnil;
  75. }
  76. [LispBuiltin ("face-foreground", MinArgs = 1)]
  77. public static Shelisp.Object Fface_foreground (L l, Shelisp.Object face, Shelisp.Object frame, Shelisp.Object inherit)
  78. {
  79. Console.WriteLine ("face-foreground not implemented"); return L.Qnil;
  80. }
  81. [LispBuiltin ("face-background", MinArgs = 1)]
  82. public static Shelisp.Object Fface_background (L l, Shelisp.Object face, Shelisp.Object frame, Shelisp.Object inherit)
  83. {
  84. Console.WriteLine ("face-background not implemented"); return L.Qnil;
  85. }
  86. [LispBuiltin ("face-stipple", MinArgs = 1)]
  87. public static Shelisp.Object Fface_stipple (L l, Shelisp.Object face, Shelisp.Object frame, Shelisp.Object inherit)
  88. {
  89. Console.WriteLine ("face-stipple not implemented"); return L.Qnil;
  90. }
  91. [LispBuiltin ("face-bold-p", MinArgs = 1)]
  92. public static Shelisp.Object Fface_bold_p (L l, Shelisp.Object face, Shelisp.Object frame, Shelisp.Object inherit)
  93. {
  94. Console.WriteLine ("face-bold-p not implemented"); return L.Qnil;
  95. }
  96. [LispBuiltin ("face-italic-p", MinArgs = 1)]
  97. public static Shelisp.Object Fface_italic_p (L l, Shelisp.Object face, Shelisp.Object frame, Shelisp.Object inherit)
  98. {
  99. Console.WriteLine ("face-italic-p not implemented"); return L.Qnil;
  100. }
  101. [LispBuiltin ("face-underline-p", MinArgs = 1)]
  102. public static Shelisp.Object Fface_underline_p (L l, Shelisp.Object face, Shelisp.Object frame, Shelisp.Object inherit)
  103. {
  104. Console.WriteLine ("face-underline-p not implemented"); return L.Qnil;
  105. }
  106. [LispBuiltin ("face-inverse-video-p", MinArgs = 1)]
  107. public static Shelisp.Object Fface_invert_video_p (L l, Shelisp.Object face, Shelisp.Object frame, Shelisp.Object inherit)
  108. {
  109. Console.WriteLine ("face-inverse-video-p not implemented"); return L.Qnil;
  110. }
  111. // comes from xfaces.c
  112. [LispBuiltin (DocString = @"Set font selection order for face font selection to ORDER.
  113. ORDER must be a list of length 4 containing the symbols `:width',
  114. `:height', `:weight', and `:slant'. Face attributes appearing
  115. first in ORDER are matched first, e.g. if `:height' appears before
  116. `:weight' in ORDER, font selection first tries to find a font with
  117. a suitable height, and then tries to match the font weight.
  118. Value is ORDER.")]
  119. public static Shelisp.Object Finternal_set_font_selection_order (L l, Shelisp.Object order)
  120. {
  121. Console.WriteLine ("internal-set-font-selection-order not implemented"); return L.Qnil;
  122. }
  123. // comes from xfaces.c
  124. [LispBuiltin (DocString = @"Define alternative font families to try in face font selection.
  125. ALIST is an alist of (FAMILY ALTERNATIVE1 ALTERNATIVE2 ...) entries.
  126. Each ALTERNATIVE is tried in order if no fonts of font family FAMILY can
  127. be found. Value is ALIST.")]
  128. public static Shelisp.Object Finternal_set_alternative_font_family_alist (L l, Shelisp.Object alist)
  129. {
  130. Console.WriteLine ("internal-set-alternative-font-family-alist not implemented"); return L.Qnil;
  131. }
  132. // comes from xfaces.c
  133. [LispBuiltin (DocString = @"Define alternative font registries to try in face font selection.
  134. ALIST is an alist of (REGISTRY ALTERNATIVE1 ALTERNATIVE2 ...) entries.
  135. Each ALTERNATIVE is tried in order if no fonts of font registry REGISTRY can
  136. be found. Value is ALIST.")]
  137. public static Shelisp.Object Finternal_set_alternative_font_registry_alist (L l, Shelisp.Object alist)
  138. {
  139. Console.WriteLine ("internal-set-alternative-font-registry-alist not implemented"); return L.Qnil;
  140. }
  141. // comes from xfaces.c
  142. [LispBuiltin (DocString = @"Return non-nil if FACE names a face.
  143. FACE should be a symbol or string.
  144. If optional second argument FRAME is non-nil, check for the
  145. existence of a frame-local face with name FACE on that frame.
  146. Otherwise check for the existence of a global face.")]
  147. public static Shelisp.Object Finternal_lisp_face_p (L l, Shelisp.Object face, Shelisp.Object frame)
  148. {
  149. Console.WriteLine ("internal-lisp-face-p not implemented"); return L.Qnil;
  150. }
  151. // comes from xfaces.c
  152. [LispBuiltin (DocString = "List of global face definitions (for internal use only.)")]
  153. public static Shelisp.Object Vface_new_frame_defaults = L.Qnil;
  154. }
  155. }