NO-OP: whitespace
authorRobin Gareus <robin@gareus.org>
Thu, 11 Apr 2019 00:32:45 +0000 (02:32 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 11 Apr 2019 00:32:45 +0000 (02:32 +0200)
libs/gtkmm2ext/gtkmm2ext/utils.h

index 7e5cc005e0708abe2ee6983814c16d91f073a39f..efe43ca6c353ee03749ae1a8ec06bbb660568436 100644 (file)
@@ -37,7 +37,7 @@
 #include "gtkmm2ext/visibility.h"
 
 namespace Cairo {
-        class Context;
+       class Context;
 }
 
 namespace Gtk {
@@ -51,7 +51,7 @@ namespace Gtk {
 namespace Gtkmm2ext {
        LIBGTKMM2EXT_API void init (const char*);
 
-        LIBGTKMM2EXT_API bool event_inside_widget_window (Gtk::Widget& widget, GdkEvent* ev);
+       LIBGTKMM2EXT_API bool event_inside_widget_window (Gtk::Widget& widget, GdkEvent* ev);
 
        LIBGTKMM2EXT_API std::string fit_to_pixels (const std::string&, int pixel_width, Pango::FontDescription& font, int& actual_width, bool with_ellipses = false);
        LIBGTKMM2EXT_API std::pair<std::string, double> fit_to_pixels (cairo_t *, std::string, double);
@@ -59,16 +59,16 @@ namespace Gtkmm2ext {
        LIBGTKMM2EXT_API void pixel_size (const std::string& str, const Pango::FontDescription& font, int& width, int& height);
 
        LIBGTKMM2EXT_API void get_ink_pixel_size (Glib::RefPtr<Pango::Layout>,
-                                                 int& width, int& height);
+                                                 int& width, int& height);
 
 
        LIBGTKMM2EXT_API void get_pixel_size (Glib::RefPtr<Pango::Layout>,
-                                             int& width, int& height);
+                                             int& width, int& height);
 
-       LIBGTKMM2EXT_API void set_size_request_to_display_given_text (Gtk::Widget &w,
-                                                                     const gchar *text,
-                                                                     gint hpadding,
-                                                                     gint vpadding);
+       LIBGTKMM2EXT_API void set_size_request_to_display_given_text (Gtk::Widgetw,
+                                                                     const gchartext,
+                                                                     gint         hpadding,
+                                                                     gint         vpadding);
 
        LIBGTKMM2EXT_API void set_size_request_to_display_given_text_width (Gtk::Widget& w,
                                                                            const gchar* htext,
@@ -77,25 +77,27 @@ namespace Gtkmm2ext {
 
        LIBGTKMM2EXT_API void set_height_request_to_display_any_text (Gtk::Widget& w, gint vpadding);
 
-       LIBGTKMM2EXT_API void set_size_request_to_display_given_text (Gtk::Widget &w,
-                                                                     std::string const & text,
-                                                                     gint hpadding,
-                                                                     gint vpadding);
-       LIBGTKMM2EXT_API void set_size_request_to_display_given_text (Gtk::Widget &w,
-                                                                     const std::vector<std::string>&,
-                                                                     gint hpadding,
-                                                                     gint vpadding);
-       LIBGTKMM2EXT_API void set_size_request_to_display_given_text (Gtk::Widget &w,
-                                                                     const std::vector<std::string>&,
-                                                                     const std::string& hpadding,
-                                                                     gint vpadding);
+       LIBGTKMM2EXT_API void set_size_request_to_display_given_text (Gtk::Widget&       w,
+                                                                     std::string const& text,
+                                                                     gint               hpadding,
+                                                                     gint               vpadding);
+
+       LIBGTKMM2EXT_API void set_size_request_to_display_given_text (Gtk::Widget& w,
+                                                                     const std::vector<std::string>&,
+                                                                     gint hpadding,
+                                                                     gint vpadding);
+
+       LIBGTKMM2EXT_API void set_size_request_to_display_given_text (Gtk::Widget& w,
+                                                                     const std::vector<std::string>&,
+                                                                     const std::string& hpadding,
+                                                                     gint vpadding);
 
 
        LIBGTKMM2EXT_API Glib::RefPtr<Gdk::Pixbuf> pixbuf_from_string (const std::string& name,
-                                                                      const Pango::FontDescription& font,
-                                                                      int clip_width,
-                                                                      int clip_height,
-                                                                      Gdk::Color fg);
+                                                                      const Pango::FontDescription& font,
+                                                                      int clip_width,
+                                                                      int clip_height,
+                                                                      Gdk::Color fg);
 
        LIBGTKMM2EXT_API void anchored_menu_popup (Gtk::Menu* const menu,
                                                   Gtk::Widget* const anchor,
@@ -103,18 +105,16 @@ namespace Gtkmm2ext {
                                                   guint button, guint32 time);
 
        LIBGTKMM2EXT_API void set_popdown_strings (Gtk::ComboBoxText&,
-                                 const std::vector<std::string>&);
+                                                  const std::vector<std::string>&);
 
        LIBGTKMM2EXT_API void get_popdown_strings (Gtk::ComboBoxText&,
-                                 std::vector<std::string>&);
+                                                  std::vector<std::string>&);
 
        LIBGTKMM2EXT_API size_t get_popdown_string_count (Gtk::ComboBoxText&);
 
-       LIBGTKMM2EXT_API bool contains_value (Gtk::ComboBoxText&,
-                                 const std::string);
+       LIBGTKMM2EXT_API bool contains_value (Gtk::ComboBoxText&, const std::string);
 
-       LIBGTKMM2EXT_API bool set_active_text_if_present (Gtk::ComboBoxText&,
-                                 const std::string);
+       LIBGTKMM2EXT_API bool set_active_text_if_present (Gtk::ComboBoxText&, const std::string);
 
        template<class T> /*LIBGTKMM2EXT_API*/ void deferred_delete (void *ptr) {
                delete static_cast<T *> (ptr);
@@ -128,20 +128,20 @@ namespace Gtkmm2ext {
 
        LIBGTKMM2EXT_API Glib::RefPtr<Gdk::Window> window_to_draw_on (Gtk::Widget& w, Gtk::Widget** parent);
 
-        LIBGTKMM2EXT_API bool possibly_translate_keyval_to_make_legal_accelerator (uint32_t& keyval);
-        LIBGTKMM2EXT_API uint32_t possibly_translate_legal_accelerator_to_real_key (uint32_t keyval);
+       LIBGTKMM2EXT_API bool possibly_translate_keyval_to_make_legal_accelerator (uint32_t& keyval);
+       LIBGTKMM2EXT_API uint32_t possibly_translate_legal_accelerator_to_real_key (uint32_t keyval);
 
-        LIBGTKMM2EXT_API int physical_screen_height (Glib::RefPtr<Gdk::Window>);
-        LIBGTKMM2EXT_API int physical_screen_width (Glib::RefPtr<Gdk::Window>);
+       LIBGTKMM2EXT_API int physical_screen_height (Glib::RefPtr<Gdk::Window>);
+       LIBGTKMM2EXT_API int physical_screen_width (Glib::RefPtr<Gdk::Window>);
 
-        LIBGTKMM2EXT_API void container_clear (Gtk::Container&);
+       LIBGTKMM2EXT_API void container_clear (Gtk::Container&);
 
        /* C++ API for rounded rectangles */
 
-        LIBGTKMM2EXT_API void rounded_rectangle (Cairo::RefPtr<Cairo::Context> context, double x, double y, double w, double h, double r=10);
-        LIBGTKMM2EXT_API void rounded_top_rectangle (Cairo::RefPtr<Cairo::Context> context, double x, double y, double w, double h, double r=10);
-        LIBGTKMM2EXT_API void rounded_top_left_rectangle (Cairo::RefPtr<Cairo::Context> context, double x, double y, double w, double h, double r=10);
-        LIBGTKMM2EXT_API void rounded_top_right_rectangle (Cairo::RefPtr<Cairo::Context> context, double x, double y, double w, double h, double r=10);
+       LIBGTKMM2EXT_API void rounded_rectangle (Cairo::RefPtr<Cairo::Context> context, double x, double y, double w, double h, double r=10);
+       LIBGTKMM2EXT_API void rounded_top_rectangle (Cairo::RefPtr<Cairo::Context> context, double x, double y, double w, double h, double r=10);
+       LIBGTKMM2EXT_API void rounded_top_left_rectangle (Cairo::RefPtr<Cairo::Context> context, double x, double y, double w, double h, double r=10);
+       LIBGTKMM2EXT_API void rounded_top_right_rectangle (Cairo::RefPtr<Cairo::Context> context, double x, double y, double w, double h, double r=10);
        LIBGTKMM2EXT_API void rounded_top_half_rectangle (Cairo::RefPtr<Cairo::Context>, double x, double y, double w, double h, double r=10);
        LIBGTKMM2EXT_API void rounded_bottom_half_rectangle (Cairo::RefPtr<Cairo::Context>, double x, double y, double w, double h, double r=10);
        LIBGTKMM2EXT_API void rounded_right_half_rectangle (Cairo::RefPtr<Cairo::Context>, double x, double y, double w, double h, double r=10);
@@ -149,10 +149,10 @@ namespace Gtkmm2ext {
 
        /* C API for rounded rectangles */
 
-        LIBGTKMM2EXT_API void rounded_rectangle (cairo_t*, double x, double y, double w, double h, double r=10);
-        LIBGTKMM2EXT_API void rounded_top_rectangle (cairo_t*, double x, double y, double w, double h, double r=10);
-        LIBGTKMM2EXT_API void rounded_top_left_rectangle (cairo_t*, double x, double y, double w, double h, double r=10);
-        LIBGTKMM2EXT_API void rounded_top_right_rectangle (cairo_t*, double x, double y, double w, double h, double r=10);
+       LIBGTKMM2EXT_API void rounded_rectangle (cairo_t*, double x, double y, double w, double h, double r=10);
+       LIBGTKMM2EXT_API void rounded_top_rectangle (cairo_t*, double x, double y, double w, double h, double r=10);
+       LIBGTKMM2EXT_API void rounded_top_left_rectangle (cairo_t*, double x, double y, double w, double h, double r=10);
+       LIBGTKMM2EXT_API void rounded_top_right_rectangle (cairo_t*, double x, double y, double w, double h, double r=10);
        LIBGTKMM2EXT_API void rounded_top_half_rectangle (cairo_t*, double x, double y, double w, double h, double r=10);
        LIBGTKMM2EXT_API void rounded_bottom_half_rectangle (cairo_t*, double x, double y, double w, double h, double r=10);
        LIBGTKMM2EXT_API void rounded_right_half_rectangle (cairo_t*, double x, double y, double w, double h, double r=10);