Atrinik Client  4.0
Data Structures | Macros | Typedefs
textwin.h File Reference
#include <button.h>

Go to the source code of this file.

Data Structures

struct  textwin_tab_struct
 
struct  textwin_struct
 

Macros

#define TEXTWIN_TAB_NAME(_tab)   ((_tab)->name ? (_tab)->name : textwin_tab_names[(_tab)->type - 1])
 
#define TEXTWIN_TAB_HEIGHT   20
 
#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))
 
#define TEXTWIN_TEXT_INPUT_STARTX(_widget)   (1)
 
#define TEXTWIN_TEXT_INPUT_STARTY(_widget)   (TEXTWIN_TEXT_STARTY((_widget)) + TEXTWIN_TEXT_HEIGHT((_widget)))
 
#define TEXTWIN_TEXT_INPUT_WIDTH(_widget)   ((_widget)->w - TEXTWIN_TEXT_INPUT_STARTX((_widget)) * 2 - TEXTWIN_SCROLLBAR_WIDTH((_widget)))
 
#define TEXTWIN_SCROLLBAR_WIDTH(_widget)   (9)
 
#define TEXTWIN_SCROLLBAR_HEIGHT(_widget)   ((_widget)->h - (TEXTWIN_TEXT_STARTY((_widget)) * 2) - textwin_tabs_height((_widget)))
 
#define TEXTWIN_ROWS_VISIBLE(widget)   (TEXTWIN_TEXT_HEIGHT((widget)) / FONT_HEIGHT(TEXTWIN((widget))->font))
 
#define TEXTWIN_TEXT_FLAGS(widget)   (TEXT_WORD_WRAP | TEXT_MARKUP | TEXT_NO_FONT_CHANGE)
 

Typedefs

typedef struct textwin_tab_struct textwin_tab_struct
 
typedef struct textwin_struct textwin_struct
 

Detailed Description

Text window header file.

Definition in file textwin.h.

Macro Definition Documentation

#define TEXTWIN_ROWS_VISIBLE (   widget)    (TEXTWIN_TEXT_HEIGHT((widget)) / FONT_HEIGHT(TEXTWIN((widget))->font))

Get the maximum number of visible rows.

Definition at line 113 of file textwin.h.

#define TEXTWIN_TEXT_FLAGS (   widget)    (TEXT_WORD_WRAP | TEXT_MARKUP | TEXT_NO_FONT_CHANGE)

Get the base flags depending on the text window.

Definition at line 115 of file textwin.h.

Typedef Documentation

Custom attributes for text window widgets.