JWM Source Documentation
|
Task list tray component. More...
Go to the source code of this file.
Functions | |
struct TrayComponentType * | CreateTaskBar () |
Create a new task bar tray component. | |
void | AddClientToTaskBar (struct ClientNode *np) |
Add a client to the task bar(s). | |
void | RemoveClientFromTaskBar (struct ClientNode *np) |
Remove a client from the task bar(s). | |
void | UpdateTaskBar (void) |
Update all task bars. | |
void | FocusNext (void) |
Focus the next client in the task bar. | |
void | FocusPrevious (void) |
Focus the previous client in the task bar. | |
void | SetMaxTaskBarItemWidth (struct TrayComponentType *cp, const char *value) |
Set the maximum width of task bar items. | |
void | SetTaskBarHeight (struct TrayComponentType *cp, const char *value) |
Set the preferred height of task bar items. | |
void | SetTaskBarLabeled (struct TrayComponentType *cp, char value) |
Set whether labels should be displayed (or icon only). | |
void | UpdateNetClientList (void) |
Update the _NET_CLIENT_LIST property. | |
#define | StartupTaskBar() (void)(0) |
void | InitializeTaskBar (void) |
Initialize task bar data. | |
void | ShutdownTaskBar (void) |
Shutdown the task bar. | |
void | DestroyTaskBar (void) |
Destroy task bar data. | |
#define StartupTaskBar | ( | ) | (void)(0) |
void AddClientToTaskBar | ( | ClientNode * | np | ) |
Add a client to the task bar(s).
np | The client to add. |
Definition at line 584 of file taskbar.c.
References Allocate, ClientNode::className, ClientEntry::client, TaskEntry::clients, Settings::groupTasks, ClientEntry::next, TaskEntry::next, ClientEntry::prev, TaskEntry::prev, RequireTaskUpdate(), settings, taskEntriesTail, and UpdateNetClientList().
Referenced by AddClientWindow().
|
read |
Create a new task bar tray component.
Definition at line 115 of file taskbar.c.
References Allocate, bars, TaskBarType::cp, Create(), TrayComponentType::Create, CreateTrayComponent(), Settings::doubleClickDelta, TaskBarType::itemHeight, TaskBarType::itemWidth, TaskBarType::labeled, TaskBarType::layout, LAYOUT_HORIZONTAL, TaskBarType::maxItemWidth, TaskBarType::mouseTime, TaskBarType::mousex, TaskBarType::mousey, TimeType::ms, TaskBarType::next, TrayComponentType::object, Settings::popupDelay, TrayComponentType::ProcessButtonPress, TrayComponentType::ProcessMotionEvent, ProcessTaskButtonEvent(), ProcessTaskMotionEvent(), RegisterCallback(), Resize(), TrayComponentType::Resize, TimeType::seconds, SetSize(), TrayComponentType::SetSize, settings, SignalTaskbar(), and TaskBarType::userHeight.
Referenced by ParseTaskList().
void DestroyTaskBar | ( | void | ) |
Destroy task bar data.
Definition at line 103 of file taskbar.c.
References TaskBarType::next, Release, SignalTaskbar(), and UnregisterCallback().
Referenced by Destroy().
void FocusNext | ( | void | ) |
Focus the next client in the task bar.
Definition at line 814 of file taskbar.c.
References ClientEntry::client, TaskEntry::clients, FocusGroup(), ClientEntry::next, TaskEntry::next, ShouldFocus(), ShouldFocusEntry(), STAT_ACTIVE, STAT_CANFOCUS, STAT_TAKEFOCUS, ClientNode::state, and ClientState::status.
Referenced by HandleKeyPress(), and ProcessTaskButtonEvent().
void FocusPrevious | ( | void | ) |
Focus the previous client in the task bar.
Definition at line 856 of file taskbar.c.
References ClientEntry::client, TaskEntry::clients, FocusGroup(), ClientEntry::next, TaskEntry::next, TaskEntry::prev, ShouldFocus(), ShouldFocusEntry(), STAT_ACTIVE, STAT_CANFOCUS, STAT_TAKEFOCUS, ClientNode::state, and ClientState::status.
Referenced by HandleKeyPress(), and ProcessTaskButtonEvent().
void InitializeTaskBar | ( | void | ) |
void RemoveClientFromTaskBar | ( | ClientNode * | np | ) |
Remove a client from the task bar(s).
np | The client to remove. |
Definition at line 624 of file taskbar.c.
References ClientEntry::client, TaskEntry::clients, ClientEntry::next, TaskEntry::next, ClientEntry::prev, TaskEntry::prev, Release, RequireTaskUpdate(), and UpdateNetClientList().
Referenced by RemoveClient().
void SetMaxTaskBarItemWidth | ( | TrayComponentType * | cp, |
const char * | value | ||
) |
Set the maximum width of task bar items.
cp | The task bar component. |
value | The maximum width. |
Definition at line 951 of file taskbar.c.
References _, Assert, JUNLIKELY, TaskBarType::maxItemWidth, TrayComponentType::object, and Warning().
Referenced by ParseTaskList().
void SetTaskBarHeight | ( | TrayComponentType * | cp, |
const char * | value | ||
) |
Set the preferred height of task bar items.
cp | The task bar component. |
value | The height. |
Definition at line 968 of file taskbar.c.
References _, JUNLIKELY, TrayComponentType::object, TaskBarType::userHeight, and Warning().
Referenced by ParseTaskList().
void SetTaskBarLabeled | ( | TrayComponentType * | cp, |
char | labeled | ||
) |
Set whether labels should be displayed (or icon only).
cp | The task bar component. |
value | 1 if labeled, 0 if no label is to be shown. |
Definition at line 982 of file taskbar.c.
References TaskBarType::labeled, and TrayComponentType::object.
Referenced by ParseTaskList().
void ShutdownTaskBar | ( | void | ) |
Shutdown the task bar.
Definition at line 94 of file taskbar.c.
References TaskBarType::buffer, display, JXFreePixmap, and TaskBarType::next.
Referenced by Shutdown().
void UpdateNetClientList | ( | void | ) |
Update the _NET_CLIENT_LIST property.
Definition at line 989 of file taskbar.c.
References AllocateStack, Assert, ATOM_NET_CLIENT_LIST, ATOM_NET_CLIENT_LIST_STACKING, atoms, ClientEntry::client, clientCount, TaskEntry::clients, display, FIRST_LAYER, JXChangeProperty, LAST_LAYER, ClientEntry::next, TaskEntry::next, ClientNode::next, nodes, ReleaseStack, rootWindow, and ClientNode::window.
Referenced by AddClientToTaskBar(), RemoveClientFromTaskBar(), and RestackClients().
void UpdateTaskBar | ( | void | ) |
Update all task bars.
Definition at line 662 of file taskbar.c.
References ComputeItemSize(), TaskBarType::cp, FONT_TASKLIST, GetStringHeight(), TaskBarType::itemHeight, JUNLIKELY, lastHeight, TaskBarType::layout, LAYOUT_VERTICAL, Max, TaskBarType::next, TaskEntry::next, Render(), TrayComponentType::requestedHeight, ResizeTray(), shouldExit, ShouldShowEntry(), TrayComponentType::tray, and TaskBarType::userHeight.
Referenced by Signal().
joewing.net / Projects / JWM