Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

wftk::BorderedDialog Class Reference

A dialog with decorative borders. More...

#include <bordereddialog.h>

Inheritance diagram for wftk::BorderedDialog:

wftk::Dialog wftk::SingleContainer wftk::Widget wftk::ScreenArea wftk::MessageDialog wftk::ProgressDialog wftk::QuestionBox List of all members.

Public Member Functions

 BorderedDialog (const std::string &title="", const std::string &border_res_name="", const Font &font=Font::textFont())
 Constructor.
virtual ~BorderedDialog ()
 Destructor.

Protected Member Functions

virtual void draw (Surface &target, const Point &dest, const Region &mask)
 The area drawn to must lie within the given region.

Detailed Description

A dialog with decorative borders.

Subclass this class if you want to create your own dialog class.


Constructor & Destructor Documentation

wftk::BorderedDialog::BorderedDialog const std::string &  title = "",
const std::string &  border_res_name = "",
const Font &  font = Font::textFont()
[explicit]
 

Constructor.

Create a Dialog window.

Parameters:
title std::string containing the window title, defaults to ""
border_res_name std::string containing the name of the ressource to use for the frame. The ressources are
  • <name>_v for the vertical frames
  • <name>_h for the horizontal frames
  • <name>_edge for the corners
If any of those ressources aren't found, it is left out.
font which font to use, defaults to Font::textFont()


Member Function Documentation

void wftk::BorderedDialog::draw Surface target,
const Point offset,
const Region mask
[protected, virtual]
 

The area drawn to must lie within the given region.

This is protected so derived classes can call their parents' draw() in their own implementations.

Reimplemented from wftk::Widget.


The documentation for this class was generated from the following files:

Generated Tue Aug 9 18:40:26 2005.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.