FreeRDP
|
#include <winpr/crt.h>
#include <winpr/windows.h>
#include "wf_client.h"
#include "wf_floatbar.h"
#include "resource/resource.h"
#include "wf_gdi.h"
Macros | |
#define | TAG CLIENT_TAG("windows.floatbar") |
#define | TIMER_HIDE 1 |
#define | TIMER_ANIMAT_SHOW 2 |
#define | TIMER_ANIMAT_HIDE 3 |
#define | BUTTON_LOCKPIN 0 |
#define | BUTTON_MINIMIZE 1 |
#define | BUTTON_RESTORE 2 |
#define | BUTTON_CLOSE 3 |
#define | BTN_MAX 4 |
#define | BACKGROUND_W 576 |
#define | BACKGROUND_H 27 |
#define | BUTTON_OFFSET 5 |
#define | BUTTON_Y 2 |
#define | BUTTON_WIDTH 23 |
#define | BUTTON_HEIGHT 21 |
#define | BUTTON_SPACING 1 |
#define | LOCK_X (BACKGROUND_H + BUTTON_OFFSET) |
#define | CLOSE_X ((BACKGROUND_W - (BACKGROUND_H + BUTTON_OFFSET)) - BUTTON_WIDTH) |
#define | RESTORE_X (CLOSE_X - (BUTTON_WIDTH + BUTTON_SPACING)) |
#define | MINIMIZE_X (RESTORE_X - (BUTTON_WIDTH + BUTTON_SPACING)) |
#define | TEXT_X (BACKGROUND_H + ((BUTTON_WIDTH + BUTTON_SPACING) * 3) + 5) |
Functions | |
static BOOL | floatbar_kill_timers (wfFloatBar *floatbar) |
static BOOL | floatbar_animation (wfFloatBar *const floatbar, const BOOL show) |
static BOOL | floatbar_trigger_hide (wfFloatBar *floatbar) |
static BOOL | floatbar_hide (wfFloatBar *floatbar) |
static BOOL | floatbar_show (wfFloatBar *floatbar) |
static BOOL | button_set_locked (Button *button, BOOL locked) |
static BOOL | update_locked_state (wfFloatBar *floatbar) |
static int | button_hit (Button *const button) |
static int | button_paint (const Button *const button, const HDC hdc) |
static Button * | floatbar_create_button (wfFloatBar *const floatbar, const int type, const int resid, const int resid_act, const int x, const int y, const int h, const int w) |
static Button * | floatbar_create_lock_button (wfFloatBar *const floatbar, const int unlock_resid, const int unlock_resid_act, const int lock_resid, const int lock_resid_act, const int x, const int y, const int h, const int w) |
static Button * | floatbar_get_button (const wfFloatBar *const floatbar, const int x, const int y) |
static BOOL | floatbar_paint (wfFloatBar *const floatbar, const HDC hdc) |
static LRESULT CALLBACK | floatbar_proc (const HWND hWnd, const UINT Msg, const WPARAM wParam, const LPARAM lParam) |
static BOOL | floatbar_window_create (wfFloatBar *floatbar) |
void | wf_floatbar_free (wfFloatBar *floatbar) |
wfFloatBar * | wf_floatbar_new (wfContext *wfc, HINSTANCE window, DWORD flags) |
BOOL | wf_floatbar_toggle_fullscreen (wfFloatBar *floatbar, BOOL fullscreen) |
#define BACKGROUND_H 27 |
#define BACKGROUND_W 576 |
#define BTN_MAX 4 |
#define BUTTON_CLOSE 3 |
#define BUTTON_HEIGHT 21 |
#define BUTTON_LOCKPIN 0 |
#define BUTTON_MINIMIZE 1 |
#define BUTTON_OFFSET 5 |
#define BUTTON_RESTORE 2 |
#define BUTTON_SPACING 1 |
#define BUTTON_WIDTH 23 |
#define BUTTON_Y 2 |
#define CLOSE_X ((BACKGROUND_W - (BACKGROUND_H + BUTTON_OFFSET)) - BUTTON_WIDTH) |
#define LOCK_X (BACKGROUND_H + BUTTON_OFFSET) |
#define MINIMIZE_X (RESTORE_X - (BUTTON_WIDTH + BUTTON_SPACING)) |
#define RESTORE_X (CLOSE_X - (BUTTON_WIDTH + BUTTON_SPACING)) |
#define TAG CLIENT_TAG("windows.floatbar") |
FreeRDP: A Remote Desktop Protocol Implementation Windows Float Bar
Copyright 2013 Zhang Zhaolong zhang zl20 13@12 6.co m
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
#define TEXT_X (BACKGROUND_H + ((BUTTON_WIDTH + BUTTON_SPACING) * 3) + 5) |
#define TIMER_ANIMAT_HIDE 3 |
#define TIMER_ANIMAT_SHOW 2 |
#define TIMER_HIDE 1 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void wf_floatbar_free | ( | wfFloatBar * | floatbar | ) |
wfFloatBar* wf_floatbar_new | ( | wfContext * | wfc, |
HINSTANCE | window, | ||
DWORD | flags | ||
) |
BOOL wf_floatbar_toggle_fullscreen | ( | wfFloatBar * | floatbar, |
BOOL | fullscreen | ||
) |