GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

GFC::Gdk::WindowAttr Class Reference

A GdkWindowAttr C++ wrapper class. More...

#include <gfc/gdk/window.hh>

List of all members.

Public Member Functions

Constructors
Methods

Detailed Description

A GdkWindowAttr C++ wrapper class.

WindowAttr is used to specify the attributes to use for a newly-created window. It handles the the attibute mask internally; you only need to set the attributes you want and pass the WindowAttr to a Gdk::Window constructor. You can re-use the same WindowAttr be resetting one or more of the attributes.


Constructor & Destructor Documentation

GFC::Gdk::WindowAttr::WindowAttr (  int  width,
int  height,
WindowType  type,
EventMaskField  event_mask = 0
) 
 

Construct a new WindowAttr object used to set the creation attributes for a new Gdk::Window.

Parameters:
width The width of the new window.
height The height of the new window.
type The window type to create; one of the types in the Gdk::WindowType enumeration.
event_mask The event mask for the new window; determines which events are reported for the window.

GFC::Gdk::WindowAttr::WindowAttr (  int  x,
int  y,
int  width,
int  height,
WindowType  type,
EventMaskField  event_mask = 0
) 
 

Construct a new WindowAttr object used to set the creation attributes for a new Gdk::Window.

Parameters:
x The X coordinate for the upper-left corner of the window.
y The Y coordinate for the upper-left corner of the window.
width The width of the new window.
height The height of the new window.
type The window type to create; one of the types in the Gdk::WindowType enumeration.
event_mask The event mask for the new window; determines which events are reported for the window.

GFC::Gdk::WindowAttr::WindowAttr (  const Rectangle &  allocation,
WindowType  type,
EventMaskField  event_mask = 0
) 
 

Construct a new WindowAttr object used to set the creation attributes for a new Gdk::Window.

Parameters:
allocation The x, y, width and height of the new window. Call Gtk::Widget::get_allocation().
type The window type to create; one of the types in the Gdk::WindowType enumeration.
event_mask The event mask for the new window; determines which events are reported for the window.


Member Function Documentation

void GFC::Gdk::WindowAttr::set_allocation (  const Rectangle &  allocation  ) 
 

Set the positon and size of the window.

Parameters:
allocation The x, y, width and height of the new window. Call Gtk::Widget::get_allocation().

void GFC::Gdk::WindowAttr::set_allocation (  int  x,
int  y,
int  width,
int  height
) 
 

Set the positon and size of the window.

Parameters:
x The X coordinate for the upper-left corner of the window.
y The Y coordinate for the upper-left corner of the window.
width The width of the new window.
height The height of the new window.

void GFC::Gdk::WindowAttr::set_colormap (  const Colormap &  colormap  ) 
 

Set the colormap for the window.

Parameters:
colormap A colormap.

void GFC::Gdk::WindowAttr::set_cursor (  const Cursor &  cursor  ) 
 

Set the cursor the window will use.

Parameters:
cursor A Cursor.

void GFC::Gdk::WindowAttr::set_events (  EventMaskField  event_mask  ) 
 

Set the events that will be reported for the window.

Parameters:
event_mask The event mask for the new window.

void GFC::Gdk::WindowAttr::set_input_only (   ) 
 

Sets the GDK_INPUT_ONLY flag.

Windows are GDK_INPUT_OUTPUT by default so that they can receive events and be displayed on the screen. Only use this method in special circumstances when events need to be stolen from another window or windows. Input only windows have no visible output, so they are handy for placing over the top of a group of windows in order to grab the events (or filter the events) from those windows.

void GFC::Gdk::WindowAttr::set_position (  int  x,
int  y
) 
 

Set the position of the window.

Parameters:
x The X coordinate for the upper-left corner of the window.
y The Y coordinate for the upper-left corner of the window.

void GFC::Gdk::WindowAttr::set_size (  int  width,
int  height
) 
 

Set the size of the window.

Parameters:
width The width of the new window.
height The height of the new window.

void GFC::Gdk::WindowAttr::set_title (  const String &  title  ) 
 

Set the title for a toplevel window.

Parameters:
title The window title text.

void GFC::Gdk::WindowAttr::set_type (  WindowType  type  ) 
 

Set the window type.

Parameters:
type The window type to create; one of the types in the Gdk::WindowType enumeration.

void GFC::Gdk::WindowAttr::set_visual (  const Visual &  visual  ) 
 

Set the Visual for the window.

Parameters:
visual a Visual.


The documentation for this class was generated from the following file:
Generated on Tue Aug 24 00:34:36 2004 for GFC-UI by doxygen 1.3.8