From a3ab2dee9ec0ed86565b24ba3e982ee977739bd0 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 15 Sep 2013 18:10:10 +0200 Subject: [PATCH] CComponents: add member setCorner() This replaces setCornerType() and setCornerRadius() soon Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/c6b9fe432b4ceac521dff3617403d52bd777394f Author: Thilo Graf Date: 2013-09-15 (Sun, 15 Sep 2013) --- src/gui/components/cc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/components/cc.h b/src/gui/components/cc.h index e86b43799..ecfb9d87d 100644 --- a/src/gui/components/cc.h +++ b/src/gui/components/cc.h @@ -184,6 +184,8 @@ class CComponents inline virtual void setCornerType(const int& type){corner_type = type;}; ///set corner radius inline virtual void setCornerRadius(const int& radius){corner_rad = radius;}; + ///set corner radius and type + inline virtual void setCorner(const int& radius, const int& type = CORNER_ALL){corner_rad = radius; corner_type = type;}; ///get corner types inline virtual int getCornerType(){return corner_type;}; ///get corner radius