guit  0.1
 All Classes Functions Variables Typedefs Enumerations Friends
gscript.hpp
1 //
2 // Dynamic loading of Guit scripts
3 // Guit GUI Toolkit
4 // Copyright © 2019-2020 Eric Lecolinet. All rights reserved.
5 // http://www.telecom-paris.fr/~elc
6 //
7 
8 #ifndef Guit_Script_hpp
9 #define Guit_Script_hpp
10 #include <gobjectbase.hpp>
11 namespace guit {
12 
14 class GLoader {
15 public:
19  static Gadget* loadFile(GString const& filename,
20  GObjectBase* = {},
21  GTextAttributes* = {});
22 
24  static Gadget* loadBuffer(GString const& buffer,
25  GObjectBase* = {},
26  GTextAttributes* = {});
27 
29  static Gadget* load(std::istream& stream,
30  GObjectBase* = {},
31  GTextAttributes* = {},
32  GString const& streamname = "");
33 };
34 
35 }
36 #endif