diff options
author | fluxgen <fluxgen> | 2003-06-24 16:28:40 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-06-24 16:28:40 (GMT) |
commit | f58489b8e3206fe92618ddb45601259ed2b803a4 (patch) | |
tree | 7ba24b8baf5e2bed724422631d987e47fe0b292d | |
parent | 44fbcc447e957d63696e9e2654d9c52803474ebf (diff) | |
download | fluxbox_paul-f58489b8e3206fe92618ddb45601259ed2b803a4.zip fluxbox_paul-f58489b8e3206fe92618ddb45601259ed2b803a4.tar.bz2 |
added bevel width, border color and border width
-rw-r--r-- | src/SlitTheme.hh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/SlitTheme.hh b/src/SlitTheme.hh index 7266734..9a14557 100644 --- a/src/SlitTheme.hh +++ b/src/SlitTheme.hh | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: SlitTheme.hh,v 1.1 2003/06/20 01:25:26 fluxgen Exp $ | 22 | // $Id: SlitTheme.hh,v 1.2 2003/06/24 16:28:40 fluxgen Exp $ |
23 | 23 | ||
24 | #ifndef SLITTHEME_HH | 24 | #ifndef SLITTHEME_HH |
25 | #define SLITTHEME_HH | 25 | #define SLITTHEME_HH |
@@ -30,8 +30,11 @@ | |||
30 | class SlitTheme:public FbTk::Theme { | 30 | class SlitTheme:public FbTk::Theme { |
31 | public: | 31 | public: |
32 | explicit SlitTheme(Slit &slit):FbTk::Theme(slit.screen().screenNumber()), | 32 | explicit SlitTheme(Slit &slit):FbTk::Theme(slit.screen().screenNumber()), |
33 | m_slit(slit), | 33 | m_slit(slit), |
34 | m_texture(*this, "slit", "Slit") { | 34 | m_texture(*this, "slit", "Slit"), |
35 | m_border_width(*this, "slit.borderWidth", "Slit.borderWidth"), | ||
36 | m_bevel_width(*this, "slit.bevelWidth", "slit.bevelWidth"), | ||
37 | m_border_color(*this, "slit.borderColor", "Slit.BorderColor") { | ||
35 | // default texture type | 38 | // default texture type |
36 | m_texture->setType(FbTk::Texture::SOLID); | 39 | m_texture->setType(FbTk::Texture::SOLID); |
37 | } | 40 | } |
@@ -39,9 +42,14 @@ public: | |||
39 | m_slit.reconfigure(); | 42 | m_slit.reconfigure(); |
40 | } | 43 | } |
41 | const FbTk::Texture &texture() const { return *m_texture; } | 44 | const FbTk::Texture &texture() const { return *m_texture; } |
45 | const FbTk::Color &borderColor() const { return *m_border_color; } | ||
46 | int borderWidth() const { return *m_border_width; } | ||
47 | int bevelWidth() const { return *m_bevel_width; } | ||
42 | private: | 48 | private: |
43 | Slit &m_slit; | 49 | Slit &m_slit; |
44 | FbTk::ThemeItem<FbTk::Texture> m_texture; | 50 | FbTk::ThemeItem<FbTk::Texture> m_texture; |
51 | FbTk::ThemeItem<int> m_border_width, m_bevel_width; | ||
52 | FbTk::ThemeItem<FbTk::Color> m_border_color; | ||
45 | }; | 53 | }; |
46 | 54 | ||
47 | #endif // SLITTHEME_HH | 55 | #endif // SLITTHEME_HH |