discomfitor pushed a commit to branch master.
commit be9ee35f1b1df2d078f1e9ee408edd42abcd1302
Author: Mike Blumenkrantz <[email protected]>
Date: Thu May 30 13:56:02 2013 +0100
add e_border inline functions for getting client_inset w/h
---
src/bin/e_border.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/bin/e_border.h b/src/bin/e_border.h
index b827926..28357dc 100644
--- a/src/bin/e_border.h
+++ b/src/bin/e_border.h
@@ -842,6 +842,18 @@ extern EAPI int E_EVENT_BORDER_PROPERTY;
extern EAPI int E_EVENT_BORDER_FULLSCREEN;
extern EAPI int E_EVENT_BORDER_UNFULLSCREEN;
+static inline unsigned int
+e_border_inset_width_get(const E_Border *bd)
+{
+ return bd->client_inset.l + bd->client_inset.r;
+}
+
+static inline unsigned int
+e_border_inset_height_get(const E_Border *bd)
+{
+ return bd->client_inset.t + bd->client_inset.b;
+}
+
/* macro for finding misuse of changed flag */
#if 0
# define BD_CHANGED(BD) BD->changed = 1; INF("%s:%d - BD CHANGED: %p",
__FILE__, __LINE__, BD)
--
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1