XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
notes_editor.h File Reference
#include <chitralekha.h>
#include <widgets/window.h>
#include <font.h>
Include dependency graph for notes_editor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _rich_char_
 
struct  _notes_editor_
 

Macros

#define FORMAT_BOLD   1
 
#define FORMAT_ITALIC   2
 
#define FORMAT_UNDERLINE   3
 
#define FORMAT_COLOR   4
 
#define FORMAT_SIZE_UP   5
 
#define FORMAT_SIZE_DOWN   6
 
#define FORMAT_LIST   7
 

Typedefs

typedef struct _rich_char_ RichChar
 
typedef struct _notes_editor_ ChNotesEditor
 

Functions

ChNotesEditor * ChCreateNotesEditor (ChWindow *win, int x, int y, int w, int h)
 
void ChNotesEditorSetText (ChNotesEditor *editor, const char *text)
 
char * ChNotesEditorGetText (ChNotesEditor *editor)
 
void ChNotesEditorApplyFormat (ChNotesEditor *editor, int formatType, uint32_t color)
 
void ChNotesEditorHandleKey (ChNotesEditor *editor, int ascii_code)
 

Macro Definition Documentation

◆ FORMAT_BOLD

#define FORMAT_BOLD   1

◆ FORMAT_COLOR

#define FORMAT_COLOR   4

◆ FORMAT_ITALIC

#define FORMAT_ITALIC   2

◆ FORMAT_LIST

#define FORMAT_LIST   7

◆ FORMAT_SIZE_DOWN

#define FORMAT_SIZE_DOWN   6

◆ FORMAT_SIZE_UP

#define FORMAT_SIZE_UP   5

◆ FORMAT_UNDERLINE

#define FORMAT_UNDERLINE   3

Typedef Documentation

◆ ChNotesEditor

typedef struct _notes_editor_ ChNotesEditor

◆ RichChar

typedef struct _rich_char_ RichChar

Function Documentation

◆ ChCreateNotesEditor()

ChNotesEditor * ChCreateNotesEditor ( ChWindow *  win,
int  x,
int  y,
int  w,
int  h 
)

◆ ChNotesEditorApplyFormat()

void ChNotesEditorApplyFormat ( ChNotesEditor *  editor,
int  formatType,
uint32_t  color 
)

◆ ChNotesEditorGetText()

char * ChNotesEditorGetText ( ChNotesEditor *  editor)

◆ ChNotesEditorHandleKey()

void ChNotesEditorHandleKey ( ChNotesEditor *  editor,
int  ascii_code 
)

◆ ChNotesEditorSetText()

void ChNotesEditorSetText ( ChNotesEditor *  editor,
const char *  text 
)