fix whitespace/indentation and compiler warnings
This commit is contained in:
parent
03dbf7857e
commit
e6b4c9f610
@ -63,17 +63,6 @@ static void get_closest_point_on_line(double xa, double ya, double xb, double yb
|
||||
// your closest point
|
||||
double t = atp_dot_atb / atb2;
|
||||
|
||||
// The vector perpendicular to a_to_b;
|
||||
// This step can also be combined with the next
|
||||
double perpendicular_x = -a_to_b_y;
|
||||
double perpendicular_y = a_to_b_x;
|
||||
|
||||
// Finding Q, the point "in the right direction"
|
||||
// If you want a mess, you can also combine this
|
||||
// with the next step.
|
||||
double xq = xp + perpendicular_x;
|
||||
double yq = yp + perpendicular_y;
|
||||
|
||||
// Add the distance to A, moving
|
||||
// towards B
|
||||
double x = xa + a_to_b_x * t;
|
||||
@ -142,11 +131,11 @@ Fader::Fader (Gtk::Adjustment& adj,
|
||||
, _min_pos_y (min_pos_y)
|
||||
, _max_pos_x (max_pos_x)
|
||||
, _max_pos_y (max_pos_y)
|
||||
, _default_value (adjustment.get_value())
|
||||
, _dragging (false)
|
||||
, _read_only (read_only)
|
||||
, _grab_window (0)
|
||||
, _touch_cursor (0)
|
||||
, _dragging (false)
|
||||
, _default_value (adjustment.get_value())
|
||||
, _read_only (read_only)
|
||||
{
|
||||
update_unity_position ();
|
||||
|
||||
|
@ -74,7 +74,6 @@ class LIBGTKMM2EXT_API Fader : public CairoWidget
|
||||
BindingProxy binding_proxy;
|
||||
|
||||
private:
|
||||
|
||||
const Glib::RefPtr<Gdk::Pixbuf> _face_pixbuf;
|
||||
const Glib::RefPtr<Gdk::Pixbuf> _active_face_pixbuf;
|
||||
const Glib::RefPtr<Gdk::Pixbuf> _underlay_pixbuf;
|
||||
@ -84,12 +83,9 @@ class LIBGTKMM2EXT_API Fader : public CairoWidget
|
||||
int _min_pos_y;
|
||||
int _max_pos_x;
|
||||
int _max_pos_y;
|
||||
|
||||
bool _hovering;
|
||||
|
||||
GdkWindow* _grab_window;
|
||||
Gdk::Cursor *_touch_cursor;
|
||||
|
||||
double _grab_start_mouse_x;
|
||||
double _grab_start_mouse_y;
|
||||
double _grab_start_handle_x;
|
||||
@ -98,7 +94,6 @@ class LIBGTKMM2EXT_API Fader : public CairoWidget
|
||||
double _last_drawn_y;
|
||||
bool _dragging;
|
||||
float _default_value;
|
||||
int _unity_loc;
|
||||
bool _read_only;
|
||||
|
||||
void adjustment_changed ();
|
||||
@ -108,4 +103,4 @@ class LIBGTKMM2EXT_API Fader : public CairoWidget
|
||||
|
||||
} /* namespace */
|
||||
|
||||
#endif /* __gtkmm2ext_fader_h__ */
|
||||
#endif /* __gtkmm2ext_fader_h__ */
|
||||
|
Loading…
Reference in New Issue
Block a user