1 // Generated by gmmproc 2.46.1 -- DO NOT MODIFY!
2 
3 
4 #include <glibmm.h>
5 
6 #include <gtksourceviewmm/style.h>
7 #include <gtksourceviewmm/private/style_p.h>
8 
9 
10 /* style.cc
11  *
12  * Copyright (C) 2007 The gtksourceviewmm team.
13  * Copyright (C) 2009, 2010, 2011 Krzesimir Nowak
14  *
15  * This library is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU Library General Public
17  * License as published by the Free Software Foundation; either
18  * version 2 of the License, or (at your option) any later version.
19  *
20  * This library is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
23  * Library General Public License for more details.
24  *
25  * You should have received a copy of the GNU Library General Public
26  * License along with this library; if not, write to the Free
27  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28  */
29 
30 #include <gtksourceview/gtksourcestyle.h>
31 
32 namespace
33 {
34 } // anonymous namespace
35 
36 
37 namespace Glib
38 {
39 
wrap(GtkSourceStyle * object,bool take_copy)40 Glib::RefPtr<Gsv::Style> wrap(GtkSourceStyle* object, bool take_copy)
41 {
42   return Glib::RefPtr<Gsv::Style>( dynamic_cast<Gsv::Style*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
43   //We use dynamic_cast<> in case of multiple inheritance.
44 }
45 
46 } /* namespace Glib */
47 
48 
49 namespace Gsv
50 {
51 
52 
53 /* The *_Class implementation: */
54 
init()55 const Glib::Class& Style_Class::init()
56 {
57   if(!gtype_) // create the GType if necessary
58   {
59     // Glib::Class has to know the class init function to clone custom types.
60     class_init_func_ = &Style_Class::class_init_function;
61 
62     // This is actually just optimized away, apparently with no harm.
63     // Make sure that the parent type has been created.
64     //CppClassParent::CppObjectType::get_type();
65 
66     // Create the wrapper type, with the same class/instance size as the base type.
67     register_derived_type(gtk_source_style_get_type());
68 
69     // Add derived versions of interfaces, if the C type implements any interfaces:
70 
71   }
72 
73   return *this;
74 }
75 
76 
class_init_function(void * g_class,void * class_data)77 void Style_Class::class_init_function(void* g_class, void* class_data)
78 {
79   const auto klass = static_cast<BaseClassType*>(g_class);
80   CppClassParent::class_init_function(klass, class_data);
81 
82 
83 }
84 
85 
wrap_new(GObject * object)86 Glib::ObjectBase* Style_Class::wrap_new(GObject* object)
87 {
88   return new Style((GtkSourceStyle*)object);
89 }
90 
91 
92 /* The implementation: */
93 
gobj_copy()94 GtkSourceStyle* Style::gobj_copy()
95 {
96   reference();
97   return gobj();
98 }
99 
Style(const Glib::ConstructParams & construct_params)100 Style::Style(const Glib::ConstructParams& construct_params)
101 :
102   Glib::Object(construct_params)
103 {
104 
105 }
106 
Style(GtkSourceStyle * castitem)107 Style::Style(GtkSourceStyle* castitem)
108 :
109   Glib::Object((GObject*)(castitem))
110 {}
111 
112 
Style(Style && src)113 Style::Style(Style&& src) noexcept
114 : Glib::Object(std::move(src))
115 {}
116 
operator =(Style && src)117 Style& Style::operator=(Style&& src) noexcept
118 {
119   Glib::Object::operator=(std::move(src));
120   return *this;
121 }
122 
~Style()123 Style::~Style() noexcept
124 {}
125 
126 
127 Style::CppClassType Style::style_class_; // initialize static member
128 
get_type()129 GType Style::get_type()
130 {
131   return style_class_.init().get_type();
132 }
133 
134 
get_base_type()135 GType Style::get_base_type()
136 {
137   return gtk_source_style_get_type();
138 }
139 
140 
copy() const141 Glib::RefPtr<Style> Style::copy() const
142 {
143   return Glib::wrap(gtk_source_style_copy(const_cast<GtkSourceStyle*>(gobj())));
144 }
145 
146 
property_background() const147 Glib::PropertyProxy_ReadOnly< Glib::ustring > Style::property_background() const
148 {
149   return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "background");
150 }
151 
property_background_set() const152 Glib::PropertyProxy_ReadOnly< bool > Style::property_background_set() const
153 {
154   return Glib::PropertyProxy_ReadOnly< bool >(this, "background-set");
155 }
156 
property_bold() const157 Glib::PropertyProxy_ReadOnly< bool > Style::property_bold() const
158 {
159   return Glib::PropertyProxy_ReadOnly< bool >(this, "bold");
160 }
161 
property_bold_set() const162 Glib::PropertyProxy_ReadOnly< bool > Style::property_bold_set() const
163 {
164   return Glib::PropertyProxy_ReadOnly< bool >(this, "bold-set");
165 }
166 
property_foreground() const167 Glib::PropertyProxy_ReadOnly< Glib::ustring > Style::property_foreground() const
168 {
169   return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "foreground");
170 }
171 
property_foreground_set() const172 Glib::PropertyProxy_ReadOnly< bool > Style::property_foreground_set() const
173 {
174   return Glib::PropertyProxy_ReadOnly< bool >(this, "foreground-set");
175 }
176 
property_italic() const177 Glib::PropertyProxy_ReadOnly< bool > Style::property_italic() const
178 {
179   return Glib::PropertyProxy_ReadOnly< bool >(this, "italic");
180 }
181 
property_italic_set() const182 Glib::PropertyProxy_ReadOnly< bool > Style::property_italic_set() const
183 {
184   return Glib::PropertyProxy_ReadOnly< bool >(this, "italic-set");
185 }
186 
property_line_background() const187 Glib::PropertyProxy_ReadOnly< Glib::ustring > Style::property_line_background() const
188 {
189   return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "line-background");
190 }
191 
property_line_background_set() const192 Glib::PropertyProxy_ReadOnly< bool > Style::property_line_background_set() const
193 {
194   return Glib::PropertyProxy_ReadOnly< bool >(this, "line-background-set");
195 }
196 
property_strikethrough() const197 Glib::PropertyProxy_ReadOnly< bool > Style::property_strikethrough() const
198 {
199   return Glib::PropertyProxy_ReadOnly< bool >(this, "strikethrough");
200 }
201 
property_strikethrough_set() const202 Glib::PropertyProxy_ReadOnly< bool > Style::property_strikethrough_set() const
203 {
204   return Glib::PropertyProxy_ReadOnly< bool >(this, "strikethrough-set");
205 }
206 
property_underline() const207 Glib::PropertyProxy_ReadOnly< bool > Style::property_underline() const
208 {
209   return Glib::PropertyProxy_ReadOnly< bool >(this, "underline");
210 }
211 
property_underline_set() const212 Glib::PropertyProxy_ReadOnly< bool > Style::property_underline_set() const
213 {
214   return Glib::PropertyProxy_ReadOnly< bool >(this, "underline-set");
215 }
216 
217 
218 } // namespace Gsv
219 
220 
221