Inheritance diagram for CmObject:
Public Methods | |
operator MOBJECT () | |
void | drawText (int x, int y, int w, int h, const char *text, MTFont font, CmColor *fgc, int alignment) |
void | drawNText (int x, int y, int w, int h, const char *text, MTFont font, CmColor *fgc, int alignment, int n) |
void | drawBGText (int x, int y, int w, int h, const char *text, MTFont font, CmColor *bgc, CmColor *fgc, int alignment) |
void | drawBGNText (int x, int y, int w, int h, const char *text, MTFont font, CmColor *bgc, CmColor *fgc, int alignment, int n) |
void | drawShadowedText (int x, int y, int w, int h, const char *text, MTFont font, int sh, CmColor *fg1, CmColor *fg2, int alignment) |
void | drawShadowedNText (int x, int y, int w, int h, const char *text, MTFont font, int sh, CmColor *fg1, CmColor *fg2, int alignment, int n) |
void | drawPoint (int x, int y, CmColor *col) |
void | drawLine (int x1, int y1, int x2, int y2, CmColor *col) |
void | drawPolyline (MPOINT *points, int n, CmColor *col) |
void | drawFilledPolyline (MPOINT *points, int n, CmColor *col) |
void | drawBox (int x, int y, int w, int h, CmColor *bgc) |
void | drawFilledBox (int x, int y, int w, int h, CmColor *bgc) |
void | drawCircle (int x, int y, int r, CmColor *col) |
void | drawFilledCircle (int x, int y, int r, CmColor *col) |
void | drawArc (int x, int y, int r, int a1, int a2, CmColor *col) |
void | drawFilledArc (int x, int y, int r, int a1, int a2, CmColor *c) |
void | drawImage (CmImage *gi, int img_x, int img_y, int w, int h, int x, int y) |
void | drawWindow (void) |
void | drawShadow (void) |
void | drawSubShadow (int x, int y, int w, int h, CmColor *tsc, CmColor *bsc, int thick) |
void | drawBorder (int x, int y, int w, int h, CmColor *col, int thick) |
void | drawXorLine (int x1, int y1, int x2, int y2) |
void | drawXorBox (int x, int y, int w, int h) |
void | setSensitive (void) |
void | setUnsensitive (void) |
void | setSensitivity (int true_false) |
void | setSelectable (void) |
void | setUnselectable (void) |
void | setAutoScrollWhenSelected (int TrueFalse) |
void | setBackgroundColor (CmColor *bgc) |
Sets the desired object background colors. | |
void | setForegroundColor (CmColor *fgc) |
Sets the desired object foreground color. | |
void | setColor (CmColor *bgc, CmColor *fgc) |
Sets the desired object foreground and background colors. | |
void | setBGColorFromParent (int true_false, int percentage) |
Enables/disables getting the object background color from the parent object. | |
void | setFGColorFromParent (int true_false) |
Enables/disables getting the object foreground color from the parent object. | |
void | setBackgroundRGB (unsigned r, unsigned g, unsigned b) |
void | setForegroundRGB (unsigned r, unsigned g, unsigned b) |
void | setText (const char *text) |
void | setName (const char *name) |
void | setFont (MTFont font, int resize_obj=0) |
void | setShadow (int type, int in=0, int out=0) |
void | setResize (int resize_w, int resize_h) |
void | setSize (int width, int height) |
Sets the object's width and height. | |
void | setMinSize (int width, int height) |
Sets the object's minimum size. | |
void | setWidth (int width) |
Sets the object's width. | |
void | setHeight (int height) |
Sets the object's height. | |
void | setCompositeSize (int width, int height) |
Sets the width and height of a composite object. | |
void | setCompositeWidth (int width) |
Sets the width of a composite object. | |
void | setCompositeHeight (int height) |
Sets the height of a composite object. | |
void | setPosition (int x, int y) |
Sets the (x,y) position of object relative to parent's cohordinates. | |
void | setX (int x) |
Sets the X cohordinate of object relative to parent's cohordinates. | |
void | setY (int y) |
Sets the Y cohordinate of object relative to parent's cohordinates. | |
void | setBackgroundImage (CmImage *gi, int mode) |
void | setBackgroundImageFile (const char *fname, int mode) |
void | setColorFromBackgroundImage (void) |
void | setBGImageMaskByCMapIndex (int id) |
void | setBGImageMaskByPixel (int x, int y) |
void | setBGImageMaskByRGB (int r, int g, int b) |
void | setSolid (void) |
void | setTransparent (void) |
void | setTransparency (CARD8 level) |
CARD8 | getTransparency (void) |
void | setAttachment (int top, int bottom, int left, int right) |
void | setOffset (int t_off, int b_off, int l_off, int r_off) |
void | setCursor (MTCursor cursor) |
void | setPopupHelp (const char *str, int delay, int duration) |
void | setLabelHelp (const char *str, CmObject *label) |
void | setUserData (void *ud) |
void | changePopupHelpText (const char *str) |
void | changeLabelHelpText (const char *str) |
void | topAttach (int att_type, int off, CmObject *obj) |
void | bottomAttach (int att_type, int off, CmObject *obj) |
void | leftAttach (int att_type, int off, CmObject *obj) |
void | rightAttach (int att_type, int off, CmObject *obj) |
void | align (int h_align, int v_align) |
void | getText (char *text) |
const char * | getName (void) |
void * | getUserData (void) |
MTFont | getFont (void) |
void | getShadow (int *type, int *in, int *out) |
int | isSensitive (void) |
int | isSelectable (void) |
int | isMapped (void) |
int | getWidth (void) |
int | getHeight (void) |
int | getCompositeWidth (void) |
int | getCompositeHeight (void) |
int | getX (void) |
int | getY (void) |
int | usesFGColorFromParent (void) |
int | usesBGColorFromParent (int *percentage_ret) |
CmColor * | getBackgroundColor (void) |
Returns the desired object background color. | |
CmColor * | getForegroundColor (void) |
Returns the object's foreground color. | |
CmContainer * | getParent (void) |
CmShell * | getShell (void) |
CmImage * | getBackgroundImage (void) |
void | resize (int w, int h) |
void | redraw (void) |
void | select (void) |
void | map (void) |
void | unmap (void) |
void | enableOptions (const char *name, CARD32 mask) |
void | saveOptions (void) |
Saves in the application's resource file all defined options. | |
void | unlink (int resize_obj) |
void | focusLink (CmObject *obj_to_link) |
void | reparent (CmContainer *new_parent, CmObject *where) |
void | link (CmContainer *parent, CmObject *where, int resize_parent) |
void | sendEvent (MEvent *pe) |
void | setEventCallback (CmCallback *pp, EVENT_CB ff, CARD32 mask) |
Protected Methods | |
void | reserved (void) |
virtual | ~CmObject (void) |
Protected Attributes | |
MOBJECT | obj |
EVENT_CB | eventCB |
Friends | |
void | _ObjectDestroyCB_ (MOBJECT p, void *a, void *ud) |
void | _EventPreProcessCB_ (MOBJECT p, MEvent *pe, void *ud) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns the desired object background color. The returned value can be different from the actual color the object uses to display itself in case it's partially transparent.
|
|
|
|
|
|
|
|
|
|
Returns the object's foreground color.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Saves in the application's resource file all defined options. The file is entirely rewritten using option values read at startup from the same file and all options eventually defined at run time using:
Reimplemented from CmMGUI. |
|
|
|
|
|
|
|
|
|
Sets the desired object background colors.
The actual background used to display the object depends on the object transparency level and the color or image background in the parent object.
|
|
|
|
|
|
|
|
Enables/disables getting the object background color from the parent object.
This function links the object background color to its parent color.
|
|
|
|
|
|
|
|
Sets the desired object foreground and background colors.
The actual background used to display the object depends on the object transparency level and the color or image background in the parent object.
|
|
|
|
Sets the height of a composite object. The object height is locked so it cannot be resized due to window resizing or forced attachments. The new height is applied to the main container that contitutes the composite object. For example, an OptionEdit object is constituted by a ColForm that contains an Edit and a PushButton (a SList is also part of the object but it's contained in a separate private Shell). By applying this method to a non-composite object, you get the same behaviour as calling setHeight().
|
|
Sets the width and height of a composite object. The object's size is locked so it cannot be resized due to window resizing or forced attachments. The new size is applied to the main container that contitutes the composite object. For example, an OptionEdit object is constituted by a ColForm that contains an Edit and a PushButton (a SList is also part of the object but it's contained in a separate private Shell). By applying this method to a non-composite object, you get the same behaviour as calling setSize().
|
|
Sets the width of a composite object. The object's width is locked so it cannot be resized due to window resizing or forced attachments. The new width is applied to the main container that contitutes the composite object. For example, an OptionEdit object is constituted by a ColForm that contains an Edit and a PushButton (a SList is also part of the object but it's contained in a separate private Shell). By applying this method to a non-composite object, you get the same behaviour as calling setWidth().
|
|
|
|
|
|
Enables/disables getting the object foreground color from the parent object.
This function links the object foreground color to its parent color.
|
|
|
|
Sets the desired object foreground color.
|
|
|
|
Sets the object's height. The object's height is locked so it cannot be resized vertically due to window resizing or forced attachments. By applying this method to a composite object, you actually lock the height of the 'terminal' object. For example, if you setWidth() an OptionEdit object you lock the height of the Edit object inside. If you need to setHeight() the entire OptionEdit object then you should use setCompositeHeight instead.
|
|
|
|
Sets the object's minimum size. All resizeable objects have a default minimum size. This method allows you to change that default. |
|
|
|
|
|
|
|
Sets the (x,y) position of object relative to parent's cohordinates. This method should be applied to objects created as children of the PosForm container. Object's Top and Left attachments are set to the container with appropriate offsets so the desired position is obtained. If the object is contained in a PosForm, then Right and Bottom attachments are set to None so the object's size will never change due to window resizing.
|
|
|
|
|
|
|
|
|
|
|
|
Sets the object's width and height. The object's size is locked so it cannot be resized due to window resizing or forced attachments. By applying this method to a composite object, you actually lock the size of the 'terminal' object. For example, if you setSize() an OptionEdit object you lock the size of the Edit object inside. If you need to setSize() the entire OptionEdit object then you should use setCompositeSize instead.
|
|
|
|
Reimplemented in CmMenu. |
|
|
|
|
|
|
|
|
|
|
|
Sets the object's width. The object's width is locked so it cannot be resized horizontally due to window resizing or forced attachments. By applying this method to a composite object, you actually lock the width of the 'terminal' object. For example, if you setWidth() an OptionEdit object you lock the size of the Edit object inside. If you need to setWidth() the entire OptionEdit object then you should use setCompositeWidth instead.
Reimplemented in CmStatusBar. |
|
Sets the X cohordinate of object relative to parent's cohordinates. This method should be applied to objects created as children of the PosForm container. Object's Left attachment is set to the container with an appropriate offset so the desired X position is obtained.
|
|
Sets the Y cohordinate of object relative to parent's cohordinates. This method should be applied to objects created as children of the PosForm container. Object's Top attachment is set to the container with an appropriate offset so the desired Y position is obtained.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in CmAbsList. |
|
|
|
|