all repos — fluxbox @ 313bc86431fb66231e835f7c01398cd566de3246

custom fork of the fluxbox windowmanager

added shape item
fluxgen fluxgen
commit

313bc86431fb66231e835f7c01398cd566de3246

parent

16d5dfd6f2c1359428ea02cd3c34fc37ac130e78

2 files changed, 8 insertions(+), 3 deletions(-)

jump to
M src/FbWinFrameTheme.ccsrc/FbWinFrameTheme.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWinFrameTheme.cc,v 1.4 2003/06/11 14:52:45 fluxgen Exp $ +// $Id: FbWinFrameTheme.cc,v 1.5 2003/07/10 11:38:12 fluxgen Exp $ #include "FbWinFrameTheme.hh" #include "App.hh"

@@ -56,7 +56,9 @@ m_button_focus_color(*this, "window.button.focus.picColor", "Window.Button.Focus.PicColor"),

m_button_unfocus_color(*this, "window.button.unfocus.picColor", "Window.Button.Unfocus.PicColor"), m_font(*this, "window.font", "Window.Font"), - m_textjustify(*this, "window.justify", "Window.Justify") { + m_textjustify(*this, "window.justify", "Window.Justify"), + m_shape_place(*this, "window.shape", "Window.Shape") { + // create GCs Display *disp = FbTk::App::instance()->display(); Window rootwin = RootWindow(disp, screen_num);
M src/FbWinFrameTheme.hhsrc/FbWinFrameTheme.hh

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWinFrameTheme.hh,v 1.5 2003/06/11 14:52:25 fluxgen Exp $ +// $Id: FbWinFrameTheme.hh,v 1.6 2003/07/10 11:38:12 fluxgen Exp $ #ifndef FBWINFRAMETHEME_HH #define FBWINFRAMETHEME_HH

@@ -30,6 +30,7 @@ #include "Text.hh"

#include "Color.hh" #include "FbTk/Theme.hh" #include "Subject.hh" +#include "Shape.hh" class FbWinFrameTheme: public FbTk::Theme { public:

@@ -86,6 +87,7 @@ inline Cursor moveCursor() const { return m_cursor_move; }

inline Cursor lowerLeftAngleCursor() const { return m_cursor_lower_left_angle; } inline Cursor lowerRightAngleCursor() const { return m_cursor_lower_right_angle; } + inline Shape::ShapePlace shapePlace() const { return *m_shape_place; } private: FbTk::ThemeItem<FbTk::Texture> m_label_focus, m_label_unfocus; FbTk::ThemeItem<FbTk::Texture> m_title_focus, m_title_unfocus;

@@ -99,6 +101,7 @@ FbTk::ThemeItem<FbTk::Color> m_button_focus_color, m_button_unfocus_color;

FbTk::ThemeItem<FbTk::Font> m_font; FbTk::ThemeItem<FbTk::Justify> m_textjustify; + FbTk::ThemeItem<Shape::ShapePlace> m_shape_place; GC m_label_text_focus_gc, m_label_text_unfocus_gc; GC m_button_pic_focus_gc, m_button_pic_unfocus_gc;