/src/wrappers/gtk/library/gtk_rc_style.e

http://github.com/tybor/Liberty · Specman e · 60 lines · 45 code · 15 blank · 0 comment · 2 complexity · 45f1e10f46ae279715529ff1132a9a77 MD5 · raw file

  1. indexing
  2. description: "Resource Files -- Routines for handling resource files"
  3. copyright: "[
  4. Copyright (C) 2006 eiffel-libraries team, GTK+ team
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public License
  7. as published by the Free Software Foundation; either version 2.1 of
  8. the License, or (at your option) any later version.
  9. This library is distributed in the hope that it will be useful, but
  10. WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with this library; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  16. 02110-1301 USA
  17. ]"
  18. class GTK_RC_STYLE
  19. inherit
  20. G_OBJECT redefine copy end
  21. insert
  22. GTK_RC_EXTERNALS
  23. creation from_external_pointer, make, copy
  24. feature -- size
  25. struct_size: INTEGER is
  26. external "C inline use <gtk/gtk.h>"
  27. alias "sizeof(GtkRcStyle)"
  28. end
  29. feature {} -- Creation
  30. make is
  31. do
  32. from_external_pointer (gtk_rc_style_new)
  33. end
  34. feature -- Operations
  35. copy (other: like Current) is
  36. do
  37. from_external_pointer (gtk_rc_style_copy (other.handle))
  38. end
  39. parse (a_filename: STRING) is
  40. require
  41. a_filename /= Void
  42. do
  43. gtk_rc_parse (a_filename.to_external)
  44. end
  45. end -- class GTK_RC_STYLE