mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
[apps] Create an class window curve with with cursor
Change-Id: Ic90eccedeefc689858576e190fd5df1d3f8b30e3
This commit is contained in:
@@ -13,6 +13,7 @@ app_objs += $(addprefix apps/,\
|
||||
curve_view.o\
|
||||
curve_view_with_banner.o\
|
||||
curve_view_window.o\
|
||||
curve_view_window_with_cursor.o\
|
||||
data.o\
|
||||
data_controller.o\
|
||||
editable_cell_table_view_controller.o\
|
||||
|
||||
16
apps/curve_view_window_with_cursor.cpp
Normal file
16
apps/curve_view_window_with_cursor.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "curve_view_window_with_cursor.h"
|
||||
#include <math.h>
|
||||
|
||||
CurveViewWindowWithCursor::CurveViewWindowWithCursor() :
|
||||
m_xCursorPosition(NAN),
|
||||
m_yCursorPosition(NAN)
|
||||
{
|
||||
}
|
||||
|
||||
float CurveViewWindowWithCursor::xCursorPosition() {
|
||||
return m_xCursorPosition;
|
||||
}
|
||||
|
||||
float CurveViewWindowWithCursor::yCursorPosition() {
|
||||
return m_yCursorPosition;
|
||||
}
|
||||
16
apps/curve_view_window_with_cursor.h
Normal file
16
apps/curve_view_window_with_cursor.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef APPS_CURVE_VIEW_WINDOW_WITH_CURSOR_H
|
||||
#define APPS_CURVE_VIEW_WINDOW_WITH_CURSOR_H
|
||||
|
||||
#include "curve_view_window.h"
|
||||
|
||||
class CurveViewWindowWithCursor : public CurveViewWindow {
|
||||
public:
|
||||
CurveViewWindowWithCursor();
|
||||
float xCursorPosition();
|
||||
float yCursorPosition();
|
||||
protected:
|
||||
float m_xCursorPosition;
|
||||
float m_yCursorPosition;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user