Atrinik Client  4.0
Macros
Textwin text coordinates

Macros

#define TEXTWIN_TEXT_STARTX(_widget)   (3)
 
#define TEXTWIN_TEXT_STARTY(_widget)   (1)
 
#define TEXTWIN_TEXT_WIDTH(_widget)   ((_widget)->w - scrollbar_get_width(&TEXTWIN((_widget))->scrollbar) - (TEXTWIN_TEXT_STARTX((_widget)) * 2))
 
#define TEXTWIN_TEXT_HEIGHT(_widget)   ((_widget)->h - (TEXTWIN_TEXT_STARTY((_widget)) * 2) - textwin_tabs_height((_widget)) - (TEXTWIN((_widget))->tabs_num != 0 && textwin_tab_commands[TEXTWIN((_widget))->tabs[TEXTWIN((_widget))->tab_selected].type - 1] ? TEXTWIN((_widget))->tabs[TEXTWIN((_widget))->tab_selected].text_input.coords.h : 0))
 

Detailed Description

Coordinates used for the text in text window widgets.

Macro Definition Documentation

#define TEXTWIN_TEXT_HEIGHT (   _widget)    ((_widget)->h - (TEXTWIN_TEXT_STARTY((_widget)) * 2) - textwin_tabs_height((_widget)) - (TEXTWIN((_widget))->tabs_num != 0 && textwin_tab_commands[TEXTWIN((_widget))->tabs[TEXTWIN((_widget))->tab_selected].type - 1] ? TEXTWIN((_widget))->tabs[TEXTWIN((_widget))->tab_selected].text_input.coords.h : 0))

Maximum height of the text in the widget.

Definition at line 102 of file textwin.h.

#define TEXTWIN_TEXT_STARTX (   _widget)    (3)

Text starting X position.

Definition at line 96 of file textwin.h.

#define TEXTWIN_TEXT_STARTY (   _widget)    (1)

Text starting Y position.

Definition at line 98 of file textwin.h.

#define TEXTWIN_TEXT_WIDTH (   _widget)    ((_widget)->w - scrollbar_get_width(&TEXTWIN((_widget))->scrollbar) - (TEXTWIN_TEXT_STARTX((_widget)) * 2))

Maximum width of the text in the widget.

Definition at line 100 of file textwin.h.