#include <udisp.hpp>
Inheritance diagram for UDisp:
Public Types | |
enum | Stat { CannotOpen = -1, NotOpened = 0, Opened = 1, OpenGL = 2 } |
Public Member Functions | |
UDisp (int disp_id, class UAppli &, const UStr &display_name) | |
UDisp (int disp_id, class UAppli &, class UConf &) | |
creates a new logical Display. | |
int | getID () const |
returns the ID of this logical display. | |
UAppli & | getAppli () const |
returns the corresponding Application Context. | |
const class UConf & | getConf () const |
returns the configuration of this Display. | |
int | getStatus () const |
returns connection status (see: enum UDisp::Stat). | |
virtual bool | isRealized () const |
is this Display initialized?. | |
virtual void | realize () |
realizes this display (allocates the X resources). | |
virtual void | add (class UWin *) |
virtual void | add (class UWin &) |
add a window (UFrame, UDialog, etc) to this logical display. | |
virtual void | remove (UWin &child, int remove_mode) |
virtual void | remove (UWin *child, int remove_mode) |
same as UGroup::remove(). | |
UFlow * | openFlow (int flow_id) |
creates a new event flow (or returns an existing flow if ID already used). | |
void | closeFlow (class UFlow *) |
[unstable]. | |
UFlow * | getFlow (int flow_id) |
returns the corresponding Event Flow (null otherwise). | |
unsigned int | getFlowCount () const |
const UFlowList & | getFlows () const |
int | setTrueColors (int depth_hint) |
int | setPseudoColors (int depth_hint) |
tries to set TrueColor or PseudoColor mode with this depth. | |
int | getScreenWidth () const |
int | getScreenHeight () const |
size of the Screen used by this UDisp. | |
int | getDepth () const |
depth of this specific UDisp. | |
int | getScreenDefaultDepth () const |
default depth of the Screen used by this UDisp. | |
int | getScreenNumber () const |
returns the number of the Screen of this UDisp. | |
int | getScreenCount () const |
const UStr & | getDisplayName () const |
name of the X server (default = null). | |
UNatDisp * | getNatDisp () const |
[impl] implementation dependant data. | |
void | deleteNotify (class UView *deleted_view) |
void | deleteNotify (class UGroup *deleted_group) |
[impl] notifies the UDisp that a view/a widget is being destroyed. |
this class modelizes the physical X Display. it is the base class of UAppli, the Application Context.
|
creates a new logical Display. Args: |
|
add a window (UFrame, UDialog, etc) to this logical display. notes:
Reimplemented in UAppli. |
|
returns the corresponding Event Flow (null otherwise). NB: the ID of the standard X event flow is 0. |
|
default depth of the Screen used by this UDisp. Note: this value may differ from getDepth() |
|
returns connection status (see: enum UDisp::Stat). value is > 0 if connected to an X server (and == UDisp::OpenGL if connected in OpenGL mode) |
|
realizes this display (allocates the X resources). this function does not need to be explicitely called except if you need to draw Graphics before calling the mainLoop. The UError exception is thrown if the UDisp can't be realized Reimplemented in UAppli. |
|
tries to set TrueColor or PseudoColor mode with this depth. Arguments:
|