From 09940ed419054ce496e320ffd6c10bdd319b07af Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 7 Dec 2018 21:41:19 +0100 Subject: [PATCH] cc_item.cpp/h: move getPageNumber() into cpp file clean up --- src/gui/components/cc_item.cpp | 5 ++++- src/gui/components/cc_item.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gui/components/cc_item.cpp b/src/gui/components/cc_item.cpp index 0a8dc71c7..6d4c3dbf7 100644 --- a/src/gui/components/cc_item.cpp +++ b/src/gui/components/cc_item.cpp @@ -317,4 +317,7 @@ void CComponentsItem::setSelected(bool selected, const fb_pixel_t& sel_frame_col col_frame = cc_item_selected ? sel_frame_col : frame_col; } - +uint8_t CComponentsItem::getPageNumber() +{ + return cc_page_number; +} diff --git a/src/gui/components/cc_item.h b/src/gui/components/cc_item.h index 2d9aa67f5..08b4336ac 100644 --- a/src/gui/components/cc_item.h +++ b/src/gui/components/cc_item.h @@ -128,7 +128,7 @@ class CComponentsItem : public CComponents ///sets page location of current item, parameter as uint8_t, see: cc_page_number void setPageNumber(const uint8_t& on_page_number){cc_page_number = on_page_number;}; ///returns current number of page location of current item, see: cc_page_number - uint8_t getPageNumber(){return cc_page_number;}; + uint8_t getPageNumber(); ///set screen x-position, parameter as int void setXPos(const int& xpos);