class documentation

class FlipSocialRun:

Constructor: FlipSocialRun(view_manager)

View In Hierarchy

Class to manage the FlipSocial application

Method __del__ Undocumented
Method __init__ Undocumented
Method draw_comments_view Draw the comments view
Method draw_explore_view Draw the explore view
Method draw_feed_item Draw a single feed item
Method draw_feed_message Draw the feed message with wrapping
Method draw_feed_view Draw the feed view
Method draw_login_view Draw the login view
Method draw_main_menu_view Draw the main menu view
Method draw_menu Generic menu drawer
Method draw_message_users_view Draw the message users view
Method draw_messages_view Draw the messages view
Method draw_post_view Draw the post view
Method draw_profile_view Draw the profile view
Method draw_registration_view Draw the registration view
Method draw_user_info_view Draw the user info view
Method get_message_user Get the message user at the specified messageUserIndex
Method get_selected_post Get the selected post at the specified postIndex
Method http_request_is_finished Check if the HTTP request is finished
Method run Run the FlipSocial run view
Method start Start the FlipSocial run view
Method stop Stop the FlipSocial run view
Method update_draw Update and draw the run view
Method update_input Update input state
Method user_request Send a user request to the server based on the request type
Instance Variable comment_is_valid Undocumented
Instance Variable comment_item_id Undocumented
Instance Variable comments_index Undocumented
Instance Variable comments_status Undocumented
Instance Variable current_menu_index Undocumented
Instance Variable current_profile_element Undocumented
Instance Variable current_view Undocumented
Instance Variable explore_index Undocumented
Instance Variable explore_status Undocumented
Instance Variable feed_item_id Undocumented
Instance Variable feed_item_index Undocumented
Instance Variable feed_iteration Undocumented
Instance Variable feed_status Undocumented
Instance Variable http Undocumented
Instance Variable input_held Undocumented
Instance Variable keyboard_ran Undocumented
Instance Variable last_input Undocumented
Instance Variable loading Undocumented
Instance Variable login_status Undocumented
Instance Variable max_characters Undocumented
Instance Variable message_user_index Undocumented
Instance Variable message_users_status Undocumented
Instance Variable messages_index Undocumented
Instance Variable messages_status Undocumented
Instance Variable original_color_bg Undocumented
Instance Variable original_color_fg Undocumented
Instance Variable password Undocumented
Instance Variable post_index Undocumented
Instance Variable post_status Undocumented
Instance Variable registration_status Undocumented
Instance Variable should_clear_screen Undocumented
Instance Variable should_return_to_menu Undocumented
Instance Variable user_info_status Undocumented
Instance Variable username Undocumented
Instance Variable view_manager Undocumented
Property is_active Check if the FlipSocialRun instance is active
Method __loading_start Start the loading animation with the given title
Method _fit_text_lines Limit wrapped text to the available lines
Method _wrap_text Wrap text to a maximum pixel width
Instance Variable __loading_started Undocumented
Instance Variable _loaded_data Undocumented
Instance Variable _started Undocumented
def __del__(self):

Undocumented

def __init__(self, view_manager):

Undocumented

def draw_comments_view(self, canvas):

Draw the comments view

def draw_explore_view(self, canvas):

Draw the explore view

def draw_feed_item(self, canvas, username: str, message: str, flipped: str, flips: str, date_created: str, comments: str, is_comment: bool = False):

Draw a single feed item

def draw_feed_message(self, canvas, user_message: str, x: int, y: int):

Draw the feed message with wrapping

def draw_feed_view(self, canvas):

Draw the feed view

def draw_login_view(self, canvas):

Draw the login view

def draw_main_menu_view(self, canvas):

Draw the main menu view

def draw_menu(self, canvas, selected_index: int, menu_items: list):

Generic menu drawer

def draw_message_users_view(self, canvas):

Draw the message users view

def draw_messages_view(self, canvas):

Draw the messages view

def draw_post_view(self, canvas):

Draw the post view

def draw_profile_view(self, canvas):

Draw the profile view

def draw_registration_view(self, canvas):

Draw the registration view

def draw_user_info_view(self, canvas):

Draw the user info view

def get_message_user(self) -> str:

Get the message user at the specified messageUserIndex

def get_selected_post(self) -> str:

Get the selected post at the specified postIndex

def http_request_is_finished(self) -> bool:

Check if the HTTP request is finished

def run(self, view_manager):

Run the FlipSocial run view

def start(self, view_manager) -> bool:

Start the FlipSocial run view

def stop(self, view_manager):

Stop the FlipSocial run view

def update_draw(self, draw):

Update and draw the run view

def update_input(self, input_key: int):

Update input state

def user_request(self, request_type: int):

Send a user request to the server based on the request type

comment_is_valid: bool =

Undocumented

comment_item_id: int =

Undocumented

comments_index: int =

Undocumented

comments_status: int =

Undocumented

current_menu_index: int =

Undocumented

current_profile_element: int =

Undocumented

current_view: int =

Undocumented

explore_index: int =

Undocumented

explore_status: int =

Undocumented

feed_item_id: int =

Undocumented

feed_item_index: int =

Undocumented

feed_iteration: int =

Undocumented

feed_status: int =

Undocumented

http: HTTP =

Undocumented

input_held: bool =

Undocumented

keyboard_ran: bool =

Undocumented

last_input: int =

Undocumented

loading: Loading =

Undocumented

login_status: int =

Undocumented

max_characters: int =

Undocumented

message_user_index: int =

Undocumented

message_users_status: int =

Undocumented

messages_index: int =

Undocumented

messages_status: int =

Undocumented

original_color_bg: int =

Undocumented

original_color_fg: int =

Undocumented

password =

Undocumented

post_index: int =

Undocumented

post_status: int =

Undocumented

registration_status: int =

Undocumented

should_clear_screen: bool =

Undocumented

should_return_to_menu: bool =

Undocumented

user_info_status: int =

Undocumented

username =

Undocumented

view_manager =

Undocumented

@property
is_active: bool =

Check if the FlipSocialRun instance is active

def __loading_start(self, canvas, title: str):

Start the loading animation with the given title

def _fit_text_lines(self, canvas, lines: list, max_lines: int, max_width: int) -> list:

Limit wrapped text to the available lines

def _wrap_text(self, canvas, text: str, max_width: int) -> list:

Wrap text to a maximum pixel width

__loading_started: bool =

Undocumented

_loaded_data =

Undocumented

_started: bool =

Undocumented